high · M8 · MASVS-CODE-1 · PTKD-REVIEW-PLAY-16KB-PAGES
Native library not aligned for 16 KB pages
Google Play requires new apps and updates that target Android 15+ to support devices with 16 KB memory pages. A 64-bit native library whose LOAD segments are aligned to 4 KB cannot be loaded on those devices, so the app crashes at start, and Play refuses the upload.
How it is exploited
A photo app bundles an old image-processing SDK built with NDK r23. Its libfilter.so has 4 KB aligned LOAD segments. On a Pixel running a 16 KB page kernel the app crashes on launch with dlopen failed, and Play Console refuses the release because the bundle does not support 16 KB devices.
Why it matters
A blocked release on Google Play and crashes on every 16 KB page device.
How to fix it
- Run Android Studio's APK Analyzer (or check_elf_alignment.sh) on the release build to list the libraries that fail.
- For your own C/C++ code: build with NDK r28+, or add -Wl,-z,max-page-size=16384.
- For prebuilt SDKs: update to the vendor's 16 KB-compatible release.
- Use AGP 8.5.1+ so uncompressed .so files are 16 KB zip-aligned, then test on the 16 KB emulator image.
Does your app have this?
PTKD checks your build or your source project for PTKD-REVIEW-PLAY-16KB-PAGES and every other check in this knowledge base.
Scan your appReferences
Related checks (M8)
- JavaScript obfuscation in the build
- Export compliance (ITSAppUsesNonExemptEncryption) not declared
- HealthKit app that also ships an ads SDK
- Hardcoded unlock or promo code
- Purchases SDK configured with an empty or test key
- Purchase screen falls back to made-up prices or 'coming soon' text
- False-urgency copy on a purchase screen
- Hardcoded price on a purchase screen