Embracing 16 KB Page Sizes in Android
summary
Android 15 introduces 16 KB page sizes and apps with native .so files must be rebuilt or risk crashes; rebuilding means updating to Gradle plugin 8.5.1+, adding the CMake/NDK flag for flexible page sizes, and rerunning APK Analyzer plus Google's alignment script to find incompatible libs (example: libjingle/WebRTC). Expect ~4x fewer page faults, ~1s faster boot and up to 17–30% faster app launch (measured examples), at the cost of ~9% more RAM; test on emulator or a wiped Pixel with the dev toggle enabled.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:49What are page sizes and why they matter
- 8:05Memory pages and page tables
- 14:28Native code impact on page sizes
- 17:40Checking app compatibility
- 23:24Fixing native dependencies
- 30:48Testing with 16 KB pages
- 34:22Real-world experience
- 37:16Summary
related talks
21mPrepare your app for the 16 KB page migration
18m16k page size support
13mCultivating Your App: Planting the Seeds for Android 16 Success
15m16KB Page Size Support
17mWhat I found when I look into your APK
01h 06mOptimize your apps for Android (Go edition)
36mAndroid memory and games
38mOptimize your app performance for the next generation of Android
