Creuto is now an OpenAI Select Partner Read More
Android 18 behavior changes hit apps on any targetSdk: background memory limits and a lock-free MessageQueue. What to test before Platform Stability.

Two of the Android 18 behavior changes ignore your targetSdkVersion entirely. Background services now run under soft memory limits, and MessageQueue is lock-free for every app, so an app still targeting API 36 can regress on the first Android 18 device. This post sets out what to test, in what order, and what can wait for targetSdk 38.
Google shipped Android 18 Beta 1 on 4 December 2026 as API level 38, the annual major SDK release that "includes planned app-breaking behavior changes". The same post says Google is "moving quickly" to Platform Stability, targeted for February, after which you get "several months before the final release" to finish testing. That makes December and January the cheap window to find problems.
The split that matters for budgeting is whether a change waits for you to raise targetSdk or lands as soon as a user updates their phone. As of 6 December 2026, Google's behavior changes page and the Beta 1 post put the main items like this.
| Change | Who it affects | How to find it |
|---|---|---|
| Soft memory limits on background roles | All apps, any targetSdk | adb shell am memory-limiter status, dumpsys meminfo |
Lock-free MessageQueue | All apps, any targetSdk | Reflection on mMessages returns null |
WebView content:// blocked by default | targetSdk 38 | ERR_ACCESS_DENIED on load |
| No implicit URI grants on send and capture intents | targetSdk 38 | StrictMode detectImplicitUriPermissionGrant() |
| Camera1 disabled | targetSdk 38 | Camera.open() throws |
No synchronized on value-based classes | targetSdk 38 | dex2oat warnings in logcat |
Android 18 does not kill a background service for crossing its new limit. The platform applies RAM-tiered soft limits using cgroup v2 memory.high to processes with no visible UI that run an elevated background role. After a short grace period above the limit, the kernel reclaims cold file-backed pages and swaps idle anonymous pages to zRAM. Setting android:largeHeap="true" does not raise the ceiling.
The enforced roles on the behavior changes page are the connectedDevice, dataSync, health, location, mediaPlayback, mediaProjection, remoteMessaging, specialUse and systemExempted foreground service types, plus a bound NotificationListenerService. The Beta 1 blog post lists a shorter set of examples, so plan against the docs page, not the announcement. camera, microphone, phoneCall and shortService stay unconstrained in the initial Beta builds.
The cost shows up as symptoms, not crashes. Google names audio glitches, delayed Bluetooth or location updates, sluggish warm resume and ApplicationExitInfo.REASON_MEMORY_LIMITER exits, and warns that processes staying well above their limit can see higher CPU and battery use and ANRs. A delivery app's location service or a fitness app's health service is exactly the shape this targets.
Do not trust a clean run. The limits activate in stages during the Beta on 4 GB, 6-8 GB and 12 GB-plus devices, so an unthrottled test may only mean the rollout has not reached your phone. Google's procedure:
adb shell am memory-limiter status, then check the Limit row where Limit Source is Process role in adb shell dumpsys meminfo PACKAGE_NAME.Limit: none, sweep ceilings down with adb shell am memory-limiter manual PID 120MB. Keep the MB suffix: bare integers of 20 and above are parsed as bytes.adb shell am memory-limiter manual PID none. The manual command sets the hard limit too, so going below your working set can kill the process.adb shell am send-trim-memory PROCESS RUNNING_LOW.Two details catch teams out. Android suppresses TRIM_MEMORY_UI_HIDDEN while a foreground service is active, so release image caches and off-screen views in Activity.onStop instead. And do not reuse your Android vitals memory number as the target: vitals reports anonymous RSS plus swap, while the platform limit counts resident anonymous memory plus file cache and excludes swap. Our post on Google Play memory limits covers the vitals side.
The Beta 1 post suggests moving long-lived sync or messaging services into a lightweight worker process such as android:process=":bg". The behavior changes page adds the caveat the announcement leaves out: Flutter, React Native, .NET MAUI and Unity apps should not move their non-Kotlin runtime into a second process, because that duplicates the runtime. Keep secondary workers in Kotlin or Java, or stay single-process. For dataSync, Google's first suggestion is to move transfers to WorkManager or user-initiated data transfer jobs.
Android 17 made MessageQueue lock-free only for apps targeting API 37. In Android 18 Beta 1, the legacy implementation is removed and every app runs lock-free regardless of targetSdkVersion. From Android 17's beta traces, Google cites a 15% cut in main-thread time spent in lock contention and a 9.1% reduction in p95 time from startup to first frame.
The catch is reflection. Code that reads private fields such as mMessages now gets null. That code rarely lives in your app; it lives in main-thread watchdogs, frame monitors, ANR reporters and older test libraries. Google's advice is to move to public Looper logging or ProfilingManager, and to update Espresso and Robolectric. Your audit is a dependency list, not a grep of your own source.
The rest of the list waits for you. Each item below is from the targetSdk 38 behavior changes, and each has a cheap detection step you can run today.
WebSettings.getAllowContentAccess() flips from true to false. A WebView that loads a content:// URI, or HTML embedding one in an image or iframe, fails with ERR_ACCESS_DENIED. The fix is setAllowContentAccess(true), but only for URIs you intend to load; hybrid apps that render local receipts or attachments are the usual suspects.
ACTION_SEND, ACTION_SEND_MULTIPLE and ACTION_IMAGE_CAPTURE-style intents no longer get automatic grants. Senders add FLAG_GRANT_READ_URI_PERMISSION, plus the write flag for capture intents, and receivers must handle a missing grant. Per the Beta 1 post, Beta 1 does not enforce this yet, so turn on StrictMode detectImplicitUriPermissionGrant() or the MissingExplicitUriGrant lint check in AGP 9.5.0 now rather than waiting for a crash.
android.hardware.Camera.open() throws a RuntimeException and getNumberOfCameras() returns 0. Google points at legacy QR scanners, document-capture SDKs and WebRTC wrappers, which again makes this a dependency audit. Separately, synchronized on an Integer or Boolean throws. The page notes React Native fixed its instances in v0.87.0, backported to v0.86.2, so React Native teams have an upgrade to schedule.
Android 18 Platform Stability is targeted for February 2027, with Beta builds every two weeks until then. Google Play has not published a targetSdk 38 deadline; our note on target API level 37 explains why we do not guess these dates.
The all-apps changes deserve the budget now, because they need no release from you to reach users. The targetSdk items are mostly mechanical once found. One more item sits outside both: the zero-tap sign-in restoration requirement, which Google estimates at under a day for apps already on Credential Manager, with Play enforcement from 1 April 2027.
This is the wrong place to spend if your app runs no foreground services and embeds no monitoring SDK. Then the targetSdk 38 list is your whole job, and it can wait for Platform Stability.
Put one Pixel or 64-bit emulator on Beta 1 this week. Run your release build through the memory-limiter sweep with your background service active, list every SDK that touches MessageQueue, Camera1 or WebView, and switch on StrictMode for URI grants. That gives you a sized backlog before February instead of a surprise after it.
We build Android apps in Flutter and React Native, and the Škoda dealer training platform we shipped used Flutter, so the framework caveat on process splitting is one we read closely. If your team needs a hand running this audit or fixing what it finds, our Android app development team can work through the background-service and SDK changes with you.
Android 18 does not terminate a background service just for crossing its soft memory limit. After a short grace period the kernel reclaims cold file-backed pages and swaps idle memory to zRAM. Services whose working set stays well above the limit can still suffer slowdowns, higher battery use, ANRs or REASON_MEMORY_LIMITER exits.
Two Android 18 changes affect every app whatever its targetSdkVersion: RAM-tiered soft memory limits on processes running background foreground-service roles with no visible UI, and the lock-free MessageQueue, which makes reflection into private fields such as mMessages return null. Zero-tap sign-in restoration is a separate requirement with Play enforcement from April 2027.
Testing Android 18 memory limits starts with an R8-optimized release build on a Beta 1 device. Run adb shell am memory-limiter status, read the Limit row in dumpsys meminfo, and if no limit is active yet, sweep ceilings with adb shell am memory-limiter manual using an MB suffix, then clear the override.
Android 18 Platform Stability is targeted for February 2027, according to Google's Beta 1 announcement of 4 December 2026. At that milestone Google plans to deliver final SDK and NDK APIs and largely final app-facing behaviors, leaving several months of testing before the final release. Beta builds arrive roughly every two weeks until then.
Ready to take the first step towards unlocking opportunities, realizing goals, and embracing innovation? We're here and eager to connect.