Published December 5, 2026
Android 18 Beta 1 Arrives Early: Soft Memory Limits, a Lock-Free MessageQueue, and Stricter URI Grants
Android 18 Beta 1 began rolling out on December 4, build DP21.261120.006, months earlier than most teams planned for. Android 17 Beta 1 landed in February of this year. Android 18 Beta 1 landed in December of last year. The program now runs on a biweekly cadence in parallel with the tail of the Android 17 QPR3 beta, and Platform Stability, meaning final SDK and NDK APIs with largely final app-facing behavior, is targeted for February. The beta itself is API level 38.
Soft memory limits change what a background service can be
The largest behavioral change is per-process soft memory limits for apps running a background service with no visible UI. Limits roll out in stages across the beta and scale by service role and device RAM. Crossing one does not kill the process: the kernel evicts cold file-backed pages and compresses idle private heap pages into swap.
Covered roles are the ones plugins actually use: dataSync, mediaPlayback, location, connectedDevice, and specialUse, plus persistent system-bound services such as NotificationListenerService. With several active roles, the most generous limit applies. Visible UI stays exempt, including split-screen and picture-in-picture, as do camera, microphone, and phoneCall.
The developer guidance is where Flutter teams should pay attention, because a plugin keeping a decoded image cache alive inside a foreground service now has a new failure mode:
- Decode bitmaps to display size rather than full resolution, passing target dimensions into the decode path instead of scaling after.
- Release hidden UI caches in Activity.onStop, since TRIM_MEMORY_UI_HIDDEN is not dispatched while an active foreground or system-bound service keeps the process running.
- Call Service.stopSelf when background work finishes rather than parking the service for the next job.
- Move large downloads to WorkManager or user-initiated data transfer jobs.
- Consider isolating long-lived UI-free services in a lightweight worker process.
Testing is unglamorous but direct. adb shell am memory-limiter status reports active limits, and adb shell am memory-limiter manual -p PID SIZE_MB forces a specific budget so behavior under pressure is reproducible instead of depending on a low-memory device showing up.
ART and the runtime changes you will not see
ART enables time-based garbage collection triggering by default, adapting the concurrent GC cadence to allocation rate and elapsed time since the last collection, including reclaiming unused heap once an app goes idle. No code changes are required, but two profiling habits have to change. Manual idle System.gc calls are now counterproductive, and Runtime.totalMemory reports the heap growth limit rather than the live footprint. The live number is totalMemory minus freeMemory, or Heap Alloc in dumpsys meminfo.
The change with the widest blast radius is the lock-free MessageQueue. The legacy monitor-locked implementation is gone, so android.os.MessageQueue runs lock-free for every app regardless of targetSdkVersion. Code that reflects into private fields such as mMessages now receives null. That reaches custom main-thread watchdogs, frame monitors, and older UI testing libraries, and Espresso and Robolectric both need current versions.
ART also enforces OpenJDK 17 sealed class restrictions at class-load time, with violations rejected as VerifyError, and SDK JARs are built for Java 17. Pure Dart code is rarely affected, but bytecode instrumentation and dynamic DEX loading are. ART separately stops permitting monitor synchronization on value-based class instances for apps targeting API 38, so locking on an Integer or a Boolean is no longer possible.
The URI grant change that will reach Flutter plugins
Starting with Android 18, the system no longer adds implicit URI grants for ACTION_SEND and ACTION_SEND_MULTIPLE, nor for ACTION_IMAGE_CAPTURE and related capture intents. Beta 1 does not enforce the restriction yet, which makes this the right window to find affected call sites.
The fix is explicit flags: Intent.FLAG_GRANT_READ_URI_PERMISSION on send intents, and both read and write flags on capture intents. StrictMode's detectImplicitUriPermissionGrant, available since Android 17, flags the call sites. This lands on share and image picker plugins, and on any app that hands a content URI to another app without thinking about who owns the permission.
Adaptive UI, desktop windowing, and one build-breaking bug
Manufacturers can now customize the default system typeface through a standardized mechanism, so generic families such as sans-serif map to the configured font across System UI and apps. The practical instruction is unchanged: build flexible text layouts instead of hardcoded heights and line counts tuned to Roboto metrics. Desktop windowing gets rotation continuity, repositioning freeform windows proportionally and preserving tiled split layouts, which matters for foldables and for phones driving an external display.
One known issue stops work immediately if hit: app builds fail against the beta 38 SDK with build tools 38.0.0 rc1. Pin an older version such as 37.0.2. The Microsoft Teams onboarding flow is also broken in this build, worth knowing before anyone spends an afternoon debugging a freeze that is not theirs.
Images cover the Pixel 7 through Pixel 11 Pro Fold plus the emulator. A device on the Android 17 QPR3 beta that needs to reach stable QPR3 without a wipe should opt out and skip the Android 18 build rather than install it and downgrade later. For Flutter teams the useful work this month is narrow: run the existing suite against API 38, watch StrictMode for implicit URI grants, and check whether any plugin in the tree keeps a foreground service with a large cache behind it.