Android 18 Beta 1 adds soft memory limits and a lock-free MessageQueue

The API level 38 beta also moves ART to time-based garbage collection and expands the Photo Picker, with behavior changes that can crash apps.

Share

Published 3 min read

Promotional image: The first beta of Android 18
Image: Divulgação/Android

In brief

  • Android 18 Beta 1 (API level 38) adds per-process soft memory limits for background services and a lock-free MessageQueue for all apps.
  • ART now triggers garbage collection by time by default, and the Photo Picker gains new options.
  • The release includes behavior changes that can make apps crash.
  • Eligible Pixel devices and 64-bit Android Emulator images get the beta, with updates every two weeks.

Android 18 Beta 1 (API level 38) introduces per-process soft memory limits for background services and a lock-free MessageQueue for all apps. The limits cover services with no visible UI, scale with service role and device RAM, and roll out gradually during the beta.

Android 18 (API level 38) is the annual major SDK release, and it includes behavior changes that can make apps crash. The beta also changes ART garbage collection to a time-based default and adds new Photo Picker options.

Apps that receive capture intents must handle the case where the sender did not grant access through FLAG_GRANT_WRITE_URI_PERMISSION. Layouts should also avoid fixed container heights, hard line counts and calculations based on Roboto glyph metrics, because manufacturers can now customize the default system font through a standardized platform mechanism.

ART now checks sealed classes: a sealed class cannot also be marked final, and direct subtypes must be listed as permitted subclasses. Apps that load DEX code dynamically, use custom ClassLoader implementations or rely on bytecode instrumentation tools may be affected. PackageManager.addPermission(), addPermissionAsync() and removePermission() are deprecated, and apps should declare permissions statically in AndroidManifest.xml.

Runtime.totalMemory() now reports the heap growth limit, so it should not be used to predict GC timing, and manual idle System.gc() calls are discouraged.

Skia now uses a Rust PNG implementation instead of the C++ libpng to decode and encode PNGs and ICO files with embedded PNG. The aim is to keep pixel and feature parity and help protect apps from memory corruption vulnerabilities when rendering untrusted images.

Crossing a soft limit does not kill the app: the kernel evicts cold file-backed pages and compresses idle private heap pages into zRAM. The limits apply to most foreground service types and persistent system-bound services, and the most generous limit applies when a process holds several roles. Processes with visible UI, including split-screen and Picture-in-Picture, plus camera, microphone and phoneCall services, stay exempt. A new adb shell am memory-limiter command checks status and sets a manual override.

Google says Pixel beta testing showed lower kswapd CPU time, fewer low-memory app kills and fewer cold startups on memory-constrained phones with ART's time-based collection, with neutral battery impact.

The embedded Photo Picker gains restricted tab navigation through setAllowedNavigationTabs(), control over the navigation and search bars in expanded mode, and an inline camera tile enabled with setCameraButtonEnabled(true). AppSearch can index pre-quantized embeddings, and apps can open Health Connect permission settings with ACTION_SHOW_HEALTH_PERMISSIONS. The on-device Web App Installer is now enabled by default.

Beta 1 arrives over the air on eligible Pixel devices and on 64-bit Android Emulator system images, with drops every two weeks once they pass internal validation. Developers can test background services under the soft limits, the lock-free MessageQueue (especially in pre-API-37 apps or SDKs that reflect on MessageQueue), ART sealed-class verification and StrictMode implicit URI grant detection.

Screenshot 2026-12-03 at 11.55.39 AM.png
Image: Divulgação/Android
Screenshot 2026-12-03 at 11.56.40 AM.png
Image: Divulgação/Android

Pixel users on the Android 17 QPR3 beta who want the stable release should skip the Beta 1 update, opt out at google.com/android/beta, ignore the downgrade OTA update and wait for the public stable QPR3 release.

Full release notes

Changes from the official notes (1)
AreaChangeBeforeAfter
Photo picker gets new features, including an inline camera tile
New system I/O APIs
> MessageQueueLock-free MessageQueue for all apps
Android Runtime (ART): changes to default generational garbage collection and verification settings
Ongoing improvements to desktop windowing and devices of varied sizes, dimensions or configurations
लगातार होने वाले सुधार और Android 18 का रिलीज़ साइकलहर दो हफ़्ते में नियमित तौर पर अपडेट: नई सुविधाएं, एपीआई, और स्थिरता से जुड़ी गड़बड़ियों को ठीक करने के लिए, बीटा वर्शन में समय-समय पर ओवर-द-एयर (ओटीए) अपडेट मिलते हैं. ये अपडेट, इंटरनल वैलिडेशन पास करने के बाद ही मिलते हैं. इसके लिए, आपको महीने के आखिर तक इंतज़ार नहीं करना पड़ता.
लगातार होने वाले सुधार और Android 18 का रिलीज़ साइकलAndroid 18 beta 1 starts as the Android 17 QPR3 beta cycle winds down, letting you test the next platform
लगातार होने वाले सुधार और Android 18 का रिलीज़ साइकलSimpler CI and OTA testing on supported Pixel devices or 64-bit Android Emulator
मेमोरी अपडेट की मदद से ऐप्लिकेशन को तेज़ और अप-टू-डेट रखना > बीटा 1 में, बैकग्राउंड में चलने वाली सेवाओं के लिए मेमोरी की सॉफ़्ट लिमिटPer-process soft memory limit for background services; exceeding it doesn't kill the app and the kernel reclaims pages
मेमोरी अपडेट की मदद से ऐप्लिकेशन को तेज़ और अप-टू-डेट रखना > बीटा 1 में, बैकग्राउंड में चलने वाली सेवाओं के लिए मेमोरी की सॉफ़्ट लिमिटLimits apply to most foreground service types and persistent system services; with multiple active roles, the most lenient limit applies
मेमोरी अपडेट की मदद से ऐप्लिकेशन को तेज़ और अप-टू-डेट रखना > बीटा 1 में, बैकग्राउंड में चलने वाली सेवाओं के लिए मेमोरी की सॉफ़्ट लिमिटExempt: processes showing visible UI (including split-screen and picture-in-picture), real-time capture and communication service types (camera, microphone, phoneCall)
मेमोरी अपडेट की मदद से ऐप्लिकेशन को तेज़ और अप-टू-डेट रखना > बीटा 1 में, बैकग्राउंड में चलने वाली सेवाओं के लिए मेमोरी की सॉफ़्ट लिमिटGuidance: release hidden UI state promptly under memory pressure
मेमोरी अपडेट की मदद से ऐप्लिकेशन को तेज़ और अप-टू-डेट रखना > बीटा 1 में, बैकग्राउंड में चलने वाली सेवाओं के लिए मेमोरी की सॉफ़्ट लिमिटGuidance: architect for the workload
मेमोरी अपडेट की मदद से ऐप्लिकेशन को तेज़ और अप-टू-डेट रखना > Android 17 के मेमोरी आर्किटेक्चर पर आधारितAndroid 17: per-app memory usage limits and generational GC in ART
मेमोरी अपडेट की मदद से ऐप्लिकेशन को तेज़ और अप-टू-डेट रखना > Android 17 के मेमोरी आर्किटेक्चर पर आधारित > MemoryBudgetManagerApp memory budgets (MemoryBudgetManager, Android 17 QPR2) allow stricter targets for foreground, perceptible and background
मेमोरी अपडेट की मदद से ऐप्लिकेशन को तेज़ और अप-टू-डेट रखना > Android 17 के मेमोरी आर्किटेक्चर पर आधारित > ApplicationExitInfoAndroid 17 QPR2 adds REASON_MEMORY_LIMITER to ApplicationExitInfo and adds REASON_ANOMALY for exits caused by file descriptor, thread or binder leaks
मेमोरी अपडेट की मदद से ऐप्लिकेशन को तेज़ और अप-टू-डेट रखना > Android 17 के मेमोरी आर्किटेक्चर पर आधारित > LiteRTAndroid 17 QPR2 adds NPU memory preemption and buffer reuse under LiteRT and AICore, plus in-process memory-safe software audio decoders for FLAC and MP3
मेमोरी अपडेट की मदद से ऐप्लिकेशन को तेज़ और अप-टू-डेट रखना > एआरटी में डिफ़ॉल्ट रूप से, समय के आधार पर गारबेज कलेक्शन ट्रिगर होने की सुविधाLower CPU time spent on memory swapping (kswapd) in Pixel beta tests
मेमोरी अपडेट की मदद से ऐप्लिकेशन को तेज़ और अप-टू-डेट रखना > एआरटी में डिफ़ॉल्ट रूप से, समय के आधार पर गारबेज कलेक्शन ट्रिगर होने की सुविधाFewer low-memory app kills in Pixel beta tests
मेमोरी अपडेट की मदद से ऐप्लिकेशन को तेज़ और अप-टू-डेट रखना > एआरटी में डिफ़ॉल्ट रूप से, समय के आधार पर गारबेज कलेक्शन ट्रिगर होने की सुविधाFewer cold app starts on low-memory phones in Pixel beta tests
मेमोरी अपडेट की मदद से ऐप्लिकेशन को तेज़ और अप-टू-डेट रखना > एआरटी में डिफ़ॉल्ट रूप से, समय के आधार पर गारबेज कलेक्शन ट्रिगर होने की सुविधाBetter UI performance with no battery impact in Pixel beta tests
मेमोरी अपडेट की मदद से ऐप्लिकेशन को तेज़ और अप-टू-डेट रखना > एआरटी में डिफ़ॉल्ट रूप से, समय के आधार पर गारबेज कलेक्शन ट्रिगर होने की सुविधा > System.gc()Avoid manual idle System.gc() calls: ART's time-based collector reclaims unreachable allocations with less CPU overhead
मेमोरी अपडेट की मदद से ऐप्लिकेशन को तेज़ और अप-टू-डेट रखना > एआरटी में डिफ़ॉल्ट रूप से, समय के आधार पर गारबेज कलेक्शन ट्रिगर होने की सुविधा > Runtime.totalMemory()Don't use Runtime.totalMemory() to estimate GC timing: it now reports the heap growth limit
कोर रनटाइम और ऐप्लिकेशन के साथ काम करने की सुविधा > एआरटी में सील की गई क्लास की पुष्टि करनाART now verifies at load time that a sealed class is not marked final
कोर रनटाइम और ऐप्लिकेशन के साथ काम करने की सुविधा > एआरटी में सील की गई क्लास की पुष्टि करनाART now verifies that classes or interfaces directly extending a sealed superclass or implementing a sealed interface are among its permitted subclasses
कोर रनटाइम और ऐप्लिकेशन के साथ काम करने की सुविधा > एआरटी में सील की गई क्लास की पुष्टि करनाART now verifies that a sealed supertype is defined by the same ClassLoader as its permitted subtypes
कोर रनटाइम और ऐप्लिकेशन के साथ काम करने की सुविधा > एआरटी में सील की गई क्लास की पुष्टि करनाART now verifies that subtypes in a different package from the sealed supertype are declared public
कोर रनटाइम और ऐप्लिकेशन के साथ काम करने की सुविधा > एआरटी में सील की गई क्लास की पुष्टि करनाApps that load DEX code dynamically may be affected by sealed class verification
कोर रनटाइम और ऐप्लिकेशन के साथ काम करने की सुविधा > एआरटी में सील की गई क्लास की पुष्टि करनाApps using custom ClassLoader implementations may be affected by sealed class verification
कोर रनटाइम और ऐप्लिकेशन के साथ काम करने की सुविधा > एआरटी में सील की गई क्लास की पुष्टि करनाApps that use a sealed type and subtypes loaded by different ClassLoaders may be affected
कोर रनटाइम और ऐप्लिकेशन के साथ काम करने की सुविधा > एआरटी में सील की गई क्लास की पुष्टि करनाApps relying on bytecode instrumentation tools that modify sealed hierarchies may be affected
कोर रनटाइम और ऐप्लिकेशन के साथ काम करने की सुविधा > एसडीके के बंद होने और कंपाइल के समय क्लीनअप की सुविधा > PackageManager.addPermission()PackageManager.addPermission(), addPermissionAsync() and removePermission() are deprecated and will stop working in the future; declare permissions statically in AndroidManifest.xml
मीडिया और फ़ोटो पिकर > एंबेड किए गए फ़ोटो पिकर में, नेविगेशन के नए विकल्प जिन्हें पसंद के मुताबिक बनाया जा सकता है > EmbeddedPhotoPickerFeatureInfo.Builder.setAllowedNavigationTabs()Programmatic, restricted tab navigation in the embedded photo picker via setAllowedNavigationTabs() and navigateTo()
मीडिया और फ़ोटो पिकर > एंबेड किए गए फ़ोटो पिकर में, नेविगेशन के नए विकल्प जिन्हें पसंद के मुताबिक बनाया जा सकता है > EmbeddedPhotoPickerUiCustomizationParamsControl whether the navigation bar and search bar show in the embedded picker's expanded mode
मीडिया और फ़ोटो पिकर > एंबेड किए गए फ़ोटो पिकर में, नेविगेशन के नए विकल्प जिन्हें पसंद के मुताबिक बनाया जा सकता है > setCameraButtonEnabledInline camera tile in the media grid and search status callbacks in the embedded picker
उपयोगकर्ता के डिवाइस पर मौजूद कॉन्टेंट में खोजना और सिस्टम का i/o > AppSearch में पहले से क्वांटाइज़ की गई एंबेडिंग और मल्टी-साइनर पैकेज > EmbeddingVector.QuantizedDataAppSearch can index and retrieve pre-quantized embeddings with scale and minValue
उपयोगकर्ता के डिवाइस पर मौजूद कॉन्टेंट में खोजना और सिस्टम का i/o > AppSearch में पहले से क्वांटाइज़ की गई एंबेडिंग और मल्टी-साइनर पैकेज > PackageIdentifierNew PackageIdentifier(String, Listbyte[]>) constructor grants schema access to apps signed by multiple certificates
अडैप्टिव यूज़र इंटरफ़ेस (यूआई), डिवाइस के साइज़, डाइमेंशन या कॉन्फ़िगरेशन, और सिस्टम इंटिग्रेशन > डेस्कटॉप विंडोइंग और इनपुट से जुड़े सुधारIn desktop windowing, rotating the device repositions freeform windows proportionally within visible bounds
अडैप्टिव यूज़र इंटरफ़ेस (यूआई), डिवाइस के साइज़, डाइमेंशन या कॉन्फ़िगरेशन, और सिस्टम इंटिग्रेशन > डेस्कटॉप विंडोइंग और इनपुट से जुड़े सुधारNew hardware input keycodes, including context-aware USB HID support
अडैप्टिव यूज़र इंटरफ़ेस (यूआई), डिवाइस के साइज़, डाइमेंशन या कॉन्फ़िगरेशन, और सिस्टम इंटिग्रेशन > Health Connect और वेब ऐप्लिकेशन > HealthConnectManager.ACTION_SHOW_HEALTH_PERMISSIONSApps can launch Health Connect permission settings with ACTION_SHOW_HEALTH_PERMISSIONS
अडैप्टिव यूज़र इंटरफ़ेस (यूआई), डिवाइस के साइज़, डाइमेंशन या कॉन्फ़िगरेशन, और सिस्टम इंटिग्रेशन > Health Connect और वेब ऐप्लिकेशनOn-device web app installation is now enabled by default and the developer options toggle is removed
Android 18 का इस्तेमाल शुरू करनाgoogle.com/android/beta पर जाकर, बीटा प्रोग्राम से ऑप्ट आउट करें
Android 18 का इस्तेमाल शुरू करनाIgnore the downgrade OTA update
Android 18 का इस्तेमाल शुरू करनाWait for the public stable release of Android 17 QPR3
Android 18 का इस्तेमाल शुरू करनाTest your existing app on a Pixel or Android Emulator running Android 18 Beta 1
Android 18 का इस्तेमाल शुरू करनाCompile against the Preview SDK, integrate with CI and try the new APIs
Android 18 का इस्तेमाल शुरू करनाReport issues and requests through the developer feedback page
Android 18 का इस्तेमाल शुरू करना > बातचीत में शामिल होंHashtag #Android (not a change)
Android 18 का इस्तेमाल शुरू करना > बातचीत में शामिल होंHashtag #beta (not a change)
Android 18 का इस्तेमाल शुरू करना > बातचीत में शामिल होंHashtag #Android 18 (not a change)
Android 18 का इस्तेमाल शुरू करना > बातचीत में शामिल होंAuthor byline (not a change)
Android 18 का इस्तेमाल शुरू करना > बातचीत में शामिल होंLink to another post (not a change)
Android 18 का इस्तेमाल शुरू करना > बातचीत में शामिल होंLink to another post (not a change)
Android 18 का इस्तेमाल शुरू करना > बातचीत में शामिल होंLink to another post (not a change)
> Photo PickerNew Photo Picker capabilities, including an inline camera tile
New system I/O APIs
> MessageQueueA lock-free MessageQueue for all apps
> Android Runtime (ART)Default time-based garbage collection and verification updates in ART
Continued refinements for desktop windowing and adaptive form factors
Continuous improvement and the Android 18 release cycleRegular biweekly drops bring new features, APIs and stability fixes via OTA once they pass internal validation
Source: Android
Changes from the official notes (2)
AreaChangeBeforeAfter
Continuous improvement and the Android 18 release cycleAndroid 18 Beta 1 begins while the Android 17 QPR3 Beta cycle wraps up
Continuous improvement and the Android 18 release cycleOn a supported Pixel device or 64-bit emulator, drops arrive automatically
Keeping apps fast and warm with memory updates > Soft memory limits for background services in Beta 1Crossing a soft limit doesn't terminate the app: the kernel evicts cold pages and compresses idle heap pages into zRAM
Keeping apps fast and warm with memory updates > Soft memory limits for background services in Beta 1 > Covered rolesLimits apply to most foreground service types and persistent system-bound services
Keeping apps fast and warm with memory updates > Soft memory limits for background services in Beta 1Processes with visible UI and camera, microphone and phoneCall services remain exempt
Keeping apps fast and warm with memory updates > Soft memory limits for background services in Beta 1Recommended: release hidden UI state, decode bitmaps at display size and call stopSelf() when done
Keeping apps fast and warm with memory updates > Soft memory limits for background services in Beta 1Recommended: match architecture to workload (media, 3D games, downloads, long-lived services)
Keeping apps fast and warm with memory updates > Building on Android 17's memory architectureAndroid 17 introduced per-app hard memory limits and generational GC in ART
Keeping apps fast and warm with memory updates > Building on Android 17's memory architecture > MemoryBudgetManagerApp Memory Budgets (Android 17 QPR2) let apps declare memory targets per state via MemoryBudgetManager
Keeping apps fast and warm with memory updates > Building on Android 17's memory architecture > ApplicationExitInfoAndroid 17 QPR2 expanded ApplicationExitInfo with REASON_MEMORY_LIMITER and REASON_ANOMALY
Keeping apps fast and warm with memory updates > Building on Android 17's memory architectureAndroid 17 QPR2 added NPU memory preemption, idle NotificationListenerService freezing and in-process memory-safe audio decoders
Keeping apps fast and warm with memory updates > Time-based garbage collection triggering by default in ARTReduced CPU time spent swapping memory (kswapd) in Pixel Beta testing
Keeping apps fast and warm with memory updates > Time-based garbage collection triggering by default in ARTFewer low-memory app kills in Pixel Beta testing
Keeping apps fast and warm with memory updates > Time-based garbage collection triggering by default in ARTFewer cold app startups on memory-constrained phones in Pixel Beta testing
Keeping apps fast and warm with memory updates > Time-based garbage collection triggering by default in ARTSmoother UI performance with neutral battery impact in Pixel Beta testing
Keeping apps fast and warm with memory updates > Time-based garbage collection triggering by default in ART > System.gc()Avoid manual idle System.gc() calls: ART's time-based collector reclaims unreachable allocations automatically
Keeping apps fast and warm with memory updates > Time-based garbage collection triggering by default in ART > Runtime.totalMemory()Runtime.totalMemory() now reports the heap growth limit; don't use it to predict GC timing
Core Runtime and App Compatibility > Sealed class verification in ARTART verifies that a sealed class is not also marked final
Core Runtime and App Compatibility > Sealed class verification in ARTART verifies that any class or interface extending or implementing a sealed supertype is listed in its permitted subclasses
Core Runtime and App Compatibility > Sealed class verification in ARTART verifies that a sealed supertype is defined by the same ClassLoader as its permitted subtype
Core Runtime and App Compatibility > Sealed class verification in ARTART verifies that subtypes in a different package from a sealed supertype are declared public
Core Runtime and App Compatibility > Sealed class verification in ARTApps that dynamically load DEX code may be affected by sealed class verification
Core Runtime and App Compatibility > SDK deprecations and compile-time cleanup > PackageManagerPackageManager.addPermission(), addPermissionAsync() and removePermission() are deprecated and slated to become no-ops in a future release
Media and Photo Picker > New customizable navigation options in the Embedded Photo Picker > EmbeddedPhotoPickerFeatureInfoProgrammatic and restricted tab navigation in the Embedded Photo Picker via setAllowedNavigationTabs(), navigateTo() and onNavigationCompleted()
Media and Photo Picker > New customizable navigation options in the Embedded Photo Picker > EmbeddedPhotoPickerUiCustomizationParamsCustomize whether the navigation bar or search bar appears when the embedded picker expands
Media and Photo Picker > New customizable navigation options in the Embedded Photo PickerInline camera button tile in the media grid and search status callbacks in the Embedded Photo Picker
On-Device Search and System I/O > Pre-quantized embeddings and multi-signer packages in AppSearch > Pre-quantized embedding vectorsAppSearch indexes and retrieves pre-quantized embeddings with scale and minValue parameters
On-Device Search and System I/O > Pre-quantized embeddings and multi-signer packages in AppSearch > Multi-signer PackageIdentifierNew PackageIdentifier(String, Listbyte[]>) constructor and getMultiSignerSha256Certificates() grant schema visibility to apps signed by multiple active certificates
Adaptive UI, Form Factors, and System Integration > Desktop windowing and input refinementsRotating a device during a desktop windowing session now proportionally repositions freeform windows and preserves left/right tiled splits
Adaptive UI, Form Factors, and System Integration > Health Connect and web apps > HealthConnectManager.ACTION_SHOW_HEALTH_PERMISSIONSApps can open the Health Connect permissions page with HealthConnectManager.ACTION_SHOW_HEALTH_PERMISSIONS
Adaptive UI, Form Factors, and System Integration > Health Connect and web apps > Web App InstallerThe Web App Installer service is enabled by default, with the Developer options toggle removed, letting browsers install PWAs as Trusted Web Activities
Get started with Android 18Opt out at google.com/android/beta
Get started with Android 18Ignore the downgrade OTA update
Get started with Android 18Wait for the stable public Android 17 QPR3 release.
Get started with Android 18Test your active working set and runtime compatibility: Install your current app on a Pixel device or Android Emulator running Android 18 Beta 1 to evaluate background services under soft memory limits (adb shell am memory-limiter status), calibrate App Memory Budgets, and test against universal lo…
Get started with Android 18Compile against the preview SDK, integrate with your CI workflows, and try out new APIs.
Keeping apps fast and warm with memory updates > Soft memory limits for background services in Beta 1Per-process soft memory limits for services with no visible UI, scaled by service role and device RAM, rolling out gradually during the Beta
Keeping apps fast and warm with memory updates > Soft memory limits for background services in Beta 1 > memory-limiterNew adb shell am memory-limiter command to check status and set a manual limit override
Under the hood > Rust PNG codec in Skia > SkiaAndroid's graphics stack now uses a Rust PNG implementation in Skia instead of the C++ libpng library to decode and encode PNGs and PNG-embedded ICO fileslibpng (C++)implementação Rust de PNG
Adaptive UI, Form Factors, and System Integration > Standardized default system font customizationDevice manufacturers can now customize the default system typeface through a standardized platform mechanism
Source: Android
Share

Sources for this story

How we know: information from an official source (Android), checked on December 5, 2026.

  1. OfficialThe first beta of Android 18 (opens in a new tab)Android, accessed December 5, 2026
  2. OfficialThe first beta of Android 18 (opens in a new tab)Android, accessed December 5, 2026

Topics

More in Tech