Skip to content
audiotale.net
Sign in
NewsNews

Android 18 Beta 1 (API 38): background memory limits, Camera1 removed, what to test

Google's first Android 18 Beta, released 3 December 2026, adds soft memory limits for background services and previews app-breaking changes for apps that target API level 38.

audiotale.net team

· 7 min read

Written by AI from the sources linked below. How we use AI

On this page
  1. Key points
  2. What to do
  3. What happened
  4. Background
  5. How it works
  6. What it means
  7. What we don't know yet
  8. What to watch next
  9. Sources

Google released Android 18 Beta 1 on 3 December 2026, according to the official release notes, and it changes how the platform treats background services. Apps that keep a foreground service running in the same process as their user interface now face per-process soft memory limits, and Google has already published the list of behaviour changes that will hit apps once they target API level 38. Android 18 is the annual major SDK release, so it is also the one that carries planned app-breaking changes.

Key points

  • Android 18 Beta 1 (build DP21.261120.006, security patch level 2026-11-05) was released on 3 December 2026 for supported Pixel devices and the 64-bit Android Emulator.
  • Android 18 is API level 38 and the annual major SDK release; Google targets the Platform Stability milestone (final SDK and NDK APIs) for February.
  • The Beta follows a biweekly update cadence, running in parallel with the end of the Android 17 QPR3 Beta.
  • Beta 1 introduces per-process soft memory limits for processes that have no visible UI and run enforced background roles such as dataSync, mediaPlayback and location foreground services.
  • Apps targeting API level 38 lose the old android.hardware.Camera API (Camera.open() throws a RuntimeException), and WebView blocks content:// URIs by default.

What to do

  • Try it: enroll a supported Pixel in the Android Beta for Pixel programme, or set up an Android 18 emulator image. Back up first.
  • If your device runs the Android 17 QPR3 Beta and you want the stable QPR3 release without wiping data, do not install the Beta 1 update. Google says to opt out on the Android Beta program site, ignore the downgrade update and wait for stable QPR3.
  • Test background services on a release build. Google says to use an R8-optimised release build, because debug builds inflate memory residency. Check the active limit with adb shell am memory-limiter status and adb shell dumpsys meminfo PACKAGE_NAME.
  • Search your code and dependencies for android.hardware.Camera, including old QR scanners, document capture SDKs and WebRTC wrappers, and move to Jetpack CameraX or camera2 before you raise targetSdkVersion to 38.
  • If you load content:// URIs in a WebView, call setAllowContentAccess(true) explicitly, and only for URIs you trust.

What happened

Google announced the first Beta on its Android Developers Blog and published matching release notes. The release notes list the release date as 3 December 2026 and the build as DP21.261120.006, with x86 (64-bit) and ARM (v8-A) emulator support, Google Play services 26.41.31 and a 2026-11-05 security patch level. The Android developer site says the Beta is "suitable for development, testing, and general use", with the caveat that Android 18 is still in active development and apps might not always work as expected.

The Beta is available on a long list of Pixel devices: Pixel 7, 7 Pro, 7a, Pixel Tablet, Pixel Fold, Pixel 8, 8 Pro, 8a, Pixel 9, 9 Pro, 9 Pro XL, 9 Pro Fold, 9a, Pixel 10, 10 Pro, 10 Pro XL, 10 Pro Fold, 10a, and the Pixel 11 family (11, 11 Pro, 11 Pro XL and 11 Pro Fold), per Google's "Get Android 18" page.

The headline feature for developers is memory management. Google's blog says Android 18 extends the memory roadmap "from catching extreme runaway leaks to helping keep background processes closer to their active working set", so that more apps stay warm in RAM and resume quickly. Beta 1 adds soft memory limits for background services. The other Beta 1 highlights Google lists are new Photo Picker capabilities including an inline camera tile, new system I/O APIs, a lock-free MessageQueue for all apps, default time-based garbage collection and verification updates in the Android Runtime (ART), and refinements for desktop windowing and adaptive form factors.

Background

Android 17 Beta 1 arrived in February 2026, according to 9to5Google's report on the new release, which notes that Android 18 Beta 1 comes much earlier than that. Google has moved to an always-on Android Canary channel, and Android 18 is the first major release that launches as a Beta under the biweekly model, with new features, APIs and fixes arriving by over-the-air update "as soon as they pass internal validation, rather than waiting for larger monthly milestones", in Google's words.

Google also describes a year of releases: Android 18 will receive a series of quarterly updates, and the release due in the second quarter of 2027 is the only quarterly one that introduces planned app-breaking behaviour changes. Android 18 itself is the only release in the cycle that updates Android's NDK.

How it works

The soft limits use Linux cgroup v2 memory.high controls and are tiered by device RAM. Google says they activate in stages during the Beta on devices with 4 GB, 6 to 8 GB, and 12 GB or more of RAM, and that exact limits vary by device and might change between Beta builds. Crossing a limit does not kill the app. After a brief grace period, the kernel reclaims cold file-backed pages and swaps idle anonymous pages to zRAM while keeping the active working set in memory.

Scope matters. A process is in scope only while it has no visible UI and runs one of the enforced roles: the connectedDevice, dataSync, health, location, mediaPlayback, mediaProjection, remoteMessaging, specialUse and systemExempted foreground service types, plus bound NotificationListenerService and system PrivateComputeCore services. In the initial Beta builds, camera, fileManagement, mediaProcessing, microphone, phoneCall and shortService foreground services, CompanionDeviceService and VoiceInteractionService are unconstrained. Processes with a visible activity, split-screen or Picture-in-Picture window are exempt. Setting android:largeHeap="true" does not raise these limits.

Google's advice, in order: replace persistent services with OS alternatives where they fit (WorkManager or user-initiated data transfer jobs for dataSync, batched sensors or Health Connect for step counting, CompanionDeviceManager for presence scanning); release hidden UI memory in Activity.onStop, because TRIM_MEMORY_UI_HIDDEN is not dispatched while a foreground service keeps the process alive; and only as a last step move UI-free work into a secondary process. The release notes warn that Flutter, React Native, .NET MAUI and Unity apps should avoid a second process because it duplicates the runtime.

Other runtime changes in Beta 1 apply to every app:

  • Lock-free MessageQueue: the monitor-locked implementation is removed regardless of targetSdkVersion. Code that reflects into private fields such as mMessages receives null for apps targeting API level 36 or lower, and Google tells developers to move custom main-thread watchdogs to public Looper logging or ProfilingManager.
  • Time-based garbage collection: ART adapts concurrent GC to allocation rate and the time since the last collection, so manual idle System.gc() calls should be avoided.
  • Zero-tap sign-in restoration: apps with sign-in should integrate the Jetpack Credential Manager RestoreCredentials API so a session is restored silently on a new device. Google says Play policy enforcement begins on 1 April 2027.

Changes that apply only when you target Android 18 (API level 38):

  • Camera1 turndown: android.hardware.Camera.open() throws a RuntimeException and getNumberOfCameras() returns 0.
  • WebView: the default of WebSettings.getAllowContentAccess() flips from true to false, so content:// loads fail with ERR_ACCESS_DENIED unless you opt back in.
  • Implicit URI grants: the system stops adding implicit grants for ACTION_SEND, ACTION_SEND_MULTIPLE and capture intents. Beta 1 does not enforce this yet; turn on detectImplicitUriPermissionGrant in StrictMode to find affected intents.
  • Haptics fallback: the framework now translates legacy vibration APIs to a supported fallback on hardware that lacks native support.
  • PackageManager: queries with MATCH_UNINSTALLED_PACKAGES, MATCH_ARCHIVED_PACKAGES or MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS return only system apps actually installed for the queried user, unless MATCH_ANY_USER is added.

Also new: global keyboard shortcuts (Meta+Back or Meta+F1 and the Shift variants) that cycle focus across all windows, which take precedence over any app shortcut bound to the same keys, and a Rust PNG codec in Skia in place of libpng.

What it means

For app developers the practical risk is split in two. The memory limits and the MessageQueue change hit every app running on Android 18, whatever it targets, so a service-heavy app can behave differently on users' phones before you touch targetSdkVersion. The Camera1, WebView and URI-grant changes wait until you target API level 38, which gives teams with a long backlog some breathing room but not much: Google plans the final SDK and NDK APIs for February.

Google's own testing notes make a point worth repeating: Android vitals reports anonymous RSS plus swap, whereas the platform limits measure resident anonymous memory plus resident file cache and exclude swap, so Vitals numbers should not be copied directly as a target ceiling.

Apps most exposed are those that keep a heavy UI process alive behind a small background service, such as music players, trackers and sync tools. Google says most apps that exceed a limit only because of inactive screens left behind after going Home need no code change, because the system can reclaim those idle pages cleanly. Apps that show real pressure (audio glitches, delayed Bluetooth or location updates, sluggish warm resume, or ApplicationExitInfo.REASON_MEMORY_LIMITER exits) should act.

What we don't know yet

  • The exact per-role limits: Google says they vary by device RAM and configuration and may change across Beta builds as thresholds are calibrated.
  • When the stable release ships. Google gives February for Platform Stability and says there will be "several months" before final release, but no stable date.
  • Which behaviour changes will be adjusted during the biweekly Beta drops. Some, such as the implicit URI grant restriction, are not enforced in Beta 1.

What to watch next

  • The first biweekly Beta update, roughly two weeks after 3 December, and whether the default role limits activate on more devices.
  • The February Platform Stability milestone, when the SDK and NDK APIs are final and Play publishing opens for compatible apps.
  • The Q2 2027 quarterly release, the only quarterly one planned to include app-breaking behaviour changes.
  • The 1 April 2027 Play policy date for sign-in restoration.

Sources

Written by

audiotale.net team

The official account of the people who run audiotale.net: announcements, conversation starters and the newsroom's drafts. Posts written with AI say so. Every other account here is a real person.