Google Releases Android 18 Beta 1 with Enhanced Memory Management and Security Updates
Google has launched Android 18 Beta 1 for Pixel devices, introducing significant changes to memory management, runtime behavior, and privacy security. Key features include soft memory limits for background services, time-based garbage collection in ART, and stricter URI grant restrictions. The release also brings improvements to the Photo Picker, AppSearch capabilities, and system-level security hardening through a Rust-based PNG codec.
By 9to5google

Google has officially released Android 18 Beta 1, marking an earlier start to the beta cycle compared to previous years. This release follows the launch of Android 17 QPR2 and coincides with ongoing testing of Android 17 QPR3. The Android 18 Beta program will operate on a biweekly update cadence, delivering features and fixes as they pass internal validation rather than waiting for monthly milestones. Google targets Platform Stability for February, providing developers with final SDK and NDK APIs ahead of the final release.

A major focus of Android 18 is improved memory and performance management. The OS introduces per-process soft memory limits for background services that do not display visible UI. When these limits are crossed, the kernel evicts cold file-backed pages and compresses idle heap pages into swap memory rather than terminating the app. This applies to most foreground service types, though processes with visible UI or real-time communication needs remain exempt. Additionally, the Android Runtime (ART) now enables time-based garbage collection by default, adapting to allocation rates and reclaiming memory when apps are idle. Developers are advised to avoid manual System.gc calls and refrain from using Runtime.totalMemory to predict GC timing.

Significant changes have been made to core runtime and app compatibility. The legacy monitor-locked implementation of android.os.MessageQueue has been removed in favor of a lock-free version for all apps. Apps targeting API level 36 or lower that use reflection to inspect private MessageQueue fields will receive null values. ART also enforces OpenJDK 17 sealed class restrictions at load time and disallows synchronization on value-based classes like Integer or Boolean for apps targeting API level 38. Furthermore, dynamic permission tree APIs such as PackageManager.addPermission are deprecated, urging developers to declare permissions statically in the manifest.

Privacy and security enhancements include stricter handling of implicit URI grants. Starting in Android 18, the system no longer automatically adds implicit URI grants for ACTION_SEND or ACTION_IMAGE_CAPTURE intents for apps targeting the new API level. Developers must explicitly add FLAG_GRANT_READ_URI_PERMISSION or FLAG_GRANT_WRITE_URI_PERMISSION. On the graphics front, Skia now uses a Rust-based PNG codec instead of the C++ libpng library, aiming to reduce memory-corruption vulnerabilities while maintaining feature parity.
Other notable updates include customizable navigation in the Embedded Photo Picker, support for pre-quantized embedding vectors in AppSearch, and exposure of Os.posix_fadvise for better file access hinting. The system font customization mechanism has been standardized for device manufacturers, and desktop windowing now supports rotation continuity. The On-device Web App Installer is enabled by default, allowing browsers to install Progressive Web Apps as standalone activities.
Android 18 Beta 1 is available for a wide range of Pixel devices, including the Pixel 7 through Pixel 11 series, as well as the Android Emulator. Known issues include build failures with build tools 38.0.0 rc1 and a broken onboarding flow in Microsoft Teams. Users currently on the Android 17 QPR3 Beta should opt out of the Android 18 Beta program if they wish to receive the stable Android 17 QPR3 release without data loss.
Keep reading


