Android 18 Beta 1 is out: API level 38, background memory limits
Google released the first beta of Android 18 on December 4, 2026, for eligible Pixel phones and the Android Emulator. Android 18 is API level 38 and the year’s major SDK release, the one with planned app-breaking behavior changes. Beta 1 brings soft memory limits for background services, a lock-free MessageQueue for every app, stricter ART checks on sealed classes and, for apps targeting API 38, an end to implicit URI grants on share and capture intents. Google says it will move quickly to Platform Stability, targeted for February 2027, so developers have about two months before the APIs are final.
What’s new in Android 18 Beta 1
The announcement by Matthew McCullough, Android’s VP of product management for developers, lists the build as DP21.261120.004. It starts a biweekly beta cycle that runs alongside the end of the Android 17 QPR3 beta. Google also says Android 18 is “the only release that includes updates to Android’s NDK” this cycle, and that the Q2 release is the only one with planned app-breaking changes.
- Soft memory limits for background services. When a process runs a service with no visible UI, it gets a per-process soft limit that scales with the service’s role and the device’s RAM. Crossing it does not kill the app: the kernel evicts cold file-backed pages and compresses idle heap pages into zRAM. It covers most foreground service types (
dataSync,mediaPlayback,location,connectedDevice,specialUse) and bound services such asNotificationListenerService. Visible apps, Picture-in-Picture and thecamera,microphoneandphoneCallservice types are exempt. The rollout is gradual across the beta. - Time-based garbage collection on by default. ART now times collections by allocation rate and time since the last GC. It first shipped on Pixel with Android 17; Google reports less
kswapdCPU time, fewer low-memory kills and fewer cold starts in its Pixel beta, with neutral battery impact. - Lock-free
MessageQueuefor all apps. The old lock-based implementation is gone, whatever yourtargetSdkVersion. Google’s internal numbers: 15% less main-thread lock contention, 4% fewer missed frames in apps and 9.1% lower p95 time to first frame. - Sealed class verification. ART enforces Java 17
sealedrules when it loads a class, and a class that breaks them throwsVerifyError. The SDK jars are now built for Java 17. - No more locking on value-based classes. Apps running on and targeting Android 18 can’t use
synchronizedon objects likeInteger; the error readsjava.lang.Integer is not an identity class. - Explicit URI grants. Apps targeting API 38 no longer get automatic read access for
EXTRA_STREAMURIs onACTION_SENDandACTION_SEND_MULTIPLE, or read/write access forEXTRA_OUTPUTon capture intents such asACTION_IMAGE_CAPTURE. Beta 1 doesn’t enforce it yet. - Photo picker. The embedded photo picker gets APIs to choose its tabs, navigate between them, show or hide the navigation and search bars, and add a camera button. Users can also convert a HEIF photo to JPEG on the fly with a “Use supported format” option.
- Rust PNG decoding. Skia now decodes and encodes PNG with a Rust implementation instead of the C++
libpng, which hardens rendering of untrusted images against memory corruption. - Smaller changes. Quantized embeddings in AppSearch,
Os.posix_fadvise()without JNI, a default system font that device makers can change, new hardware keycodes, a Health Connect intent for app permissions, and the Web App Installer for PWAs on by default.
What it means for developers
The memory work is the headline, and Google ties it to Google Play’s February 2027 Android Vitals thresholds for memory use. If your app runs background services, check how it behaves under the new limits:
adb shell am memory-limiter status
adb shell dumpsys meminfo <package-name>
Google’s advice: decode bitmaps at display size, drop UI caches in Activity.onStop(), call stopSelf() when a service’s work is done, move large downloads to WorkManager or user-initiated data transfer jobs, and stop calling System.gc() yourself. (If you test on a phone, ADB over Wi-Fi saves a cable.)
Three changes can break existing code:
- Reflection on
MessageQueue. Apps and SDKs that read private fields such asmMessagesnow getnull. Use publicLooperlogging or ProfilingManager instead, and update Espresso and Robolectric. - Sealed types in custom class loaders. Dynamic DEX loading, bytecode instrumentation and runtime-generated subclasses of sealed types (Mockito mocks in instrumented tests, for example) are the cases Google says can hit
VerifyError. Kotlin’s sealed classes are common in Android code, so run your instrumented tests on the beta; our post on Kotlin 2.5 covers the latest compiler. - Share and camera intents. Add
Intent.FLAG_GRANT_READ_URI_PERMISSIONto send intents, and the read and write flags to capture intents.StrictMode.VmPolicy.Builder#detectImplicitUriPermissionGrant()finds the intents that rely on the old behavior.
PackageManager.addPermission(), addPermissionAsync() and removePermission() are also deprecated and slated to become no-ops in a future release; declare permissions in the manifest.
How to get Android 18 Beta 1
- Pixel: enroll an eligible Pixel at google.com/android/beta. Google’s post does not list the models. Phones already in the beta program get the update over the air.
- Emulator: use the 64-bit Android 18 system images in Android Studio. Google recommends the latest preview, Android Studio Stingray.
- On the Android 17 QPR3 beta and want to stay stable? Don’t install Beta 1: opt out at the beta site, ignore the downgrade update and wait for the stable QPR3 release.
New beta builds follow about every two weeks, and Google says it will share more about Android 18’s features and behavior changes as the betas continue.
Sources
- The first beta of Android 18, Android Developers Blog, December 4, 2026
- Android Beta program