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

    1. Run Android Studio's APK Analyzer (or check_elf_alignment.sh) on the release build to list the libraries that fail.
    2. For your own C/C++ code: build with NDK r28+, or add -Wl,-z,max-page-size=16384.
    3. For prebuilt SDKs: update to the vendor's 16 KB-compatible release.
    4. 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 app

    References

    Related checks (M8)