Writing
Mobile English

Google Play's 16 KB Page Size Rule Will Block Your Release - Check It in CI

Android 15+ devices can run with 16 KB memory pages. Play already warns about misaligned native libraries and blocks updates from February 2027. Here is how to fail earlier, on purpose.

  • Published
  • 1 min read
On this page3 sections
  1. Why it happens
  2. The check
  3. Wire it into CI

Starting with Android 15, devices can run with 16 KB memory pages, and Google Play requires native libraries to be 16 KB page-aligned - today as a Play Console warning, from February 1, 2027 as a blocked release. Most teams will discover this at release time. That is the worst possible place to learn it.

Why it happens

Any .so file built with a toolchain assuming 4 KB pages can carry load segments aligned to 4 KB offsets. On a 16 KB device the loader cannot map them as built. Depending on the OS version, your app runs in a degraded compatibility mode or crashes on launch - or never ships at all.

The check

Alignment is verifiable with llvm-objdump against every .so inside the artifact:

bash
llvm-objdump -p lib/arm64-v8a/libfoo.so | grep LOAD
# align 2**14 (16384) = good. align 2**12 (4096) = rejection.

I wrapped this into a small CLI - alignmint (the script it installs is android-16kb-check) - that scans an APK or AAB and exits non-zero on misalignment. One design decision I insist on: “could not verify” gets its own exit code. A scanner that says “pass” when it actually means “I couldn’t look” is lying to your pipeline.

Wire it into CI

yaml
- name: Verify 16KB alignment
  run: android-16kb-check app-release.aab

Ten seconds per build. The alternative is finding out from Play Console, days into a release window, with a hotfix branch and a very quiet Slack channel.