Android 18 Beta 1 Aims to Cut App Reloads With Background Memory Limits
The article's text, from Joho no Todai's page.
You pause a game to answer a message. When you come back, the game starts over from its splash screen. Google wants Android 18 to make switching between apps smoother.
In a post dated December 4, 2026, U.S. time, Google announced the first beta of Android 18. Google says apps, games, and on-device AI are demanding more from phones, yet mainstream models still have 4 GB to 8 GB of memory.
Foreground services such as music playback or data sync can keep running after you leave an app's screen. If a foreground service shares a process with the interface, it keeps the whole process at a higher priority even after the screen is closed.
The process stays resident to keep playing music, and images or graphics data for a screen that is no longer visible can stay in memory too. Google says data left over from unused screens is one reason other apps get pushed out of memory.
A process kept alive to play music can take up memory another app needs to stay ready. If Android can keep the service running while letting go of unneeded data, phones could behave better with the same amount of RAM.
Reclaiming memory while keeping apps alive
Android 17 introduced a hard limit to curb runaway memory use. It kills a process if reclaiming memory fails to bring usage below the limit. Android 18 will phase in soft limits for processes running certain services with no visible interface, helping them keep mainly the data they need for active work.
According to Google's documentation on behavior changes, Android uses the Linux kernel's cgroup v2 memory control memory.high. Crossing the soft limit alone does not kill a process.
After a short grace period above the limit, the kernel reclaims data that is rarely accessed. It frees RAM occupied by file-backed memory pages, such as unused code or assets, that can be loaded again from their original files. It moves idle private heap pages, which can hold objects allocated while the app runs, into zRAM, where they're stored in compressed form in RAM.
When an app needs discarded file-backed data again, it reads it from disk. If it needs compressed data, Android decompresses it. Reducing physical memory usage while keeping the process alive should make it less likely that Android needs to kill other apps.
The limit applies per process and depends on the device's RAM and the service's role. Examples include data sync, media playback, location, communication with connected devices, and notification listeners.
Processes with a visible app interface are exempt, including in split-screen or picture-in-picture. A process that only displays an overlay on top of another app (SYSTEM_ALERT_WINDOW) without a foreground activity, meaning a visible app screen, does not qualify for that exemption. Camera, microphone, and phone call services are also exempt in the initial beta. A process with multiple roles gets the least restrictive applicable limit, and any exempt role exempts the process.
The limits will roll out over the beta to devices with 4 GB, 6 GB to 8 GB, and 12 GB or more of RAM. Specific thresholds also depend on the device configuration and may change with beta updates.
On Android 18, the limits apply whenever an app meets the conditions, regardless of the target API level it was built for. Developers should account for the fact that existing apps are affected too.
Can playback and location updates stay responsive?
Reclaiming leftover UI data should have little effect if the running service never uses it. Google says most affected apps will need no code changes.
The situation changes if the service itself needs more memory than the limit allows. It may need pages that were reclaimed, causing repeated reads from files or decompression.
Google says that processes that consistently need substantially more memory than the soft limit may see higher CPU and power use, degraded background performance, slower resumes, or app hangs. It asks developers to test for symptoms such as audio dropouts and delayed location updates.
If memory pressure becomes a problem, Google recommends freeing image caches and similar data in Activity.onStop() when the interface is no longer visible, and avoiding keeping large amounts of data in memory at once. Developers should also be aware that Android does not send TRIM_MEMORY_UI_HIDDEN, which signals that the UI is hidden, while a foreground service keeps running.
Another option is to move services that don't need a visible interface into a dedicated process. Google recommends doing so where appropriate because some frameworks would duplicate the runtime and increase memory use.
Being able to resume another app quickly matters, and so does keeping music and location updates uninterrupted. The new limits will work better when developers can separate unused UI data from what their services need.
Time also determines when unused objects are collected
Android 18 also improves the Android Runtime (ART), which runs apps. It changes when garbage collection reclaims memory from objects no longer reachable through references in the program.
Previously, the timing of garbage collection depended mainly on how much memory had been allocated. App launches and screen transitions can create many objects in a short period. If allocations then stop, objects that are no longer reachable can linger in memory.
The new behavior considers how much time has passed since the last collection alongside the allocation rate. It first rolled out on Pixel devices running Android 17 and is enabled by default in Android 18 Beta 1.
Google says Pixel beta tests saw fewer app terminations due to low memory and fewer cold starts, meaning launches from scratch, on devices with limited RAM. The interface also ran more smoothly without increasing battery use.
With soft limits, the OS reclaims pages that are rarely used. With garbage collection, ART makes memory from unreachable objects available for reuse. Together, these changes reduce the amount of RAM tied up by unused data at both the OS and runtime levels.
Older apps also get the lock-free queue
Android is also changing MessageQueue, which feeds work to the thread that handles operations such as input and drawing. In the old implementation, multiple threads could compete for the lock that protected the queue, affecting responsiveness.
Android 17 introduced a lock-free MessageQueue for apps targeting API level 37 or higher. The new implementation updates the queue's shared state without an exclusive lock. Android 18 Beta 1 removes the old implementation and uses the new one regardless of the target API level.
In a technical post dated February 17, 2026, U.S. time, Google reported that the time an app's main thread spent waiting on locks fell by 15% in internal Android 17 beta testing.
The number of frames that missed their rendering deadline fell by 4% in apps and by 7.7% in the system UI and launcher. The time from app launch to the first rendered frame fell by 9.1% at the 95th percentile, the cutoff for the slowest 5%.
Extending the change draws on the results from Android 17 and could improve performance in older apps too. Apps or SDKs targeting API level 36 or lower that use reflection to read private MessageQueue fields are affected. In Android 18, fields such as mMessages return null.
What Android can do before adding more RAM
Google's release notes list December 3, 2026, U.S. time, as the release date for Beta 1. Google plans to update the beta roughly every two weeks, reach platform stability for APIs and other behavior in February 2027, and ship the stable release in the second quarter of 2027.
Because the soft limits are rolling out in stages during the beta, installing Beta 1 does not guarantee that the feature is active on every eligible device.
Android can change what it does with unused data without changing the amount of RAM a phone has. The appeal is in putting memory toward the work users need done. If compression and reclamation slow things down, users will feel the cost.
If switching apps means fewer reloads and the music keeps playing, updating the OS will make a difference on a phone you already know how to use.
