~/talk

Embracing 16 KB Page Sizes in Android

Talkat droidcon London 2024 · 2024-10-31..11-01· [android]
links:none on file
slides:none on file

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

  1. 0:00Introduction
  2. 1:49What are page sizes and why they matter
  3. 8:05Memory pages and page tables
  4. 14:28Native code impact on page sizes
  5. 17:40Checking app compatibility
  6. 23:24Fixing native dependencies
  7. 30:48Testing with 16 KB pages
  8. 34:22Real-world experience
  9. 37:16Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.