Skip to content

Part of: Upload APK Online

16 KB Page Size Checker

Check whether an Android build supports 16 KB memory page sizes. Drop an APK, app bundle, AAR or .so file and see Google's three checks for every 64-bit library, with the fix for each failure. The file is read in your browser and not uploaded.

What the three checks mean

Google's rule applies to the 64-bit shared libraries (.so files) in the app. Each one has to pass all three checks. An app bundle adds a fourth thing to read: the alignment its config asks for in the APKs Google Play builds from it.

ELF segment alignment

Every LOAD segment in a 64-bit library must be aligned to at least 16 KB (2**14). A segment at 2**13, 2**12 or lower fails.

Zip alignment

A library stored uncompressed in the APK must start on a 16 KB boundary inside the zip. A compressed library is extracted at install, so its place in the zip does not matter.

RELRO

A library fails when its GNU_RELRO segment ends off a 16 KB boundary and writable data sits between that end and the next 16 KB boundary. Android makes the whole page read-only, so the app crashes with SIGSEGV when it writes to that data.

What this page can't know: how the app behaves at run time. Google recommends testing on a 16 KB device or emulator as well.

The Google Play deadline

“To ensure your app works correctly on the latest versions of Android, all apps targeting Android 15 (API level 35) and higher must support 16 KB memory page sizes on 64-bit devices on Google Play. Starting February 1, 2027, if your app updates don't support 16 KB memory page sizes, you won't be able to release these updates.”

From Google's 16 KB page size guide, checked on November 24, 2026.

The rule is written for apps targeting API level 35 and higher. Since August 31 2026, Google Play requires new apps and app updates to target Android 16 (API level 36) or higher, or API level 35 for Wear OS and Android Automotive apps, so those updates are covered. Android TV and Android XR apps may still target API level 34.

How to fix each failure

Google's tip: with AGP 8.5.1 or higher, NDK r28 or higher and 16 KB-compatible prebuilt dependencies, an app is 16 KB compatible by default.

ELF alignment

NDK r28 and higher compile 16 KB-aligned by default. On NDK r27 and lower, add two linker flags. With CMake:

target_link_options(${CMAKE_PROJECT_NAME} PRIVATE
    "-Wl,-z,max-page-size=16384"
    "-Wl,-z,common-page-size=16384"
)

With ndk-build, in Android.mk:

LOCAL_LDFLAGS += -Wl,-z,max-page-size=16384 -Wl,-z,common-page-size=16384

Prebuilt shared libraries must be recompiled the same way and imported again. Google also notes that NDK r26 and lower ship some libc++_shared.so files that are not 16 KB aligned.

Zip alignment

16 KB devices need uncompressed libraries on a 16 KB zip-aligned boundary. Upgrade to Android Gradle Plugin (AGP) 8.5.1 or higher. In AGP 8.3 to 8.5 apps are 16 KB aligned by default, but bundletool does not zipalign APKs by default, so an app can seem to work and still fail to install when Play builds it from a bundle. If you can't upgrade AGP, use compressed libraries:

packagingOptions {
    jniLibs {
        useLegacyPackaging true
    }
}

That is build.gradle; in build.gradle.kts the line is useLegacyPackaging = true. On AGP 8.0 or lower, also set android.bundle.enableUncompressedNativeLibs=false in gradle.properties. Google warns that compressed libraries make the app take more space once installed, because they are extracted from the APK and copied onto disk.

RELRO

Google says this typically happens when a library was built with NDK r27 and lower without the flags above. The fix is the same rebuild as for ELF alignment.

App bundle settings

If a bundle's config asks for PAGE_ALIGNMENT_4K, the APKs built from it get 4 KB aligned .so files in the zip. A bundle that names no alignment depends on the bundletool that built it: bundletool 1.17.0 and newer default to 16 KB, and older versions default to 4 KB. Either way the fix is to rebuild the bundle with AGP 8.5.1 or higher, or to switch to compressed libraries as above.

Libraries from Flutter, React Native, Unity or an SDK

Linker flags only change what you build. Libraries such as libflutter.so, libhermes.so, libreactnativejni.so, libunity.so or libil2cpp.so come from the framework that built them, and an SDK's prebuilt .so comes from its maker. Google says some SDK prebuilts or versions aren't 16 KB compatible, and to check each SDK provider's website for the version to use. When one of these fails, the checker names the framework next to it.

Check it with Google's tools

The same checks from a terminal. Zip alignment of an APK: the line for each of your .so files should end in (OK), and the last line says “Verification successful” when every file in the APK is aligned:

zipalign -v -c -P 16 4 APK_NAME.apk

ELF alignment of one library. No LOAD line may show less than 2**14:

llvm-objdump -p SHARED_OBJECT_FILE.so | grep LOAD

RELRO of one library. Work out where GNU_RELRO ends (VirtAddr + MemSiz). It is a problem only when that end is not a multiple of 0x4000 and a writable (W) LOAD segment has data between it and the next multiple of 0x4000:

llvm-readelf -Wl SHARED_OBJECT_FILE.so | grep 'LOAD\|RELRO\|Type'

The alignment an app bundle asks for:

bundletool dump config --bundle=<my .aab> | grep alignment

Frequently Asked Questions

What is the 16 KB page size requirement, and when does it start?

Google Play requires apps targeting Android 15 (API level 35) and higher to support 16 KB memory page sizes on 64-bit devices. Starting February 1, 2027, if your app updates don't support 16 KB page sizes, you won't be able to release them. Support means every 64-bit native library passes three checks: ELF segment alignment, zip alignment inside the APK, and RELRO.

Does it affect an app without native code?

Google says an app that uses only Java or Kotlin code, including all its libraries and SDKs, already supports 16 KB devices. An app has native code if it uses the NDK, links a third-party native library or SDK, or is made with an app builder that uses native libraries. If the file has no .so files at all, this checker says so. Google still recommends testing on a 16 KB device or emulator.

Which libraries does the check count?

The 64-bit .so files in the library folders: the 64-bit ABI folders such as lib/arm64-v8a and lib/x86_64 in an APK, the same folders inside each module of an app bundle, and jni/ in an .aar. Google's rule covers 64-bit devices, so 32-bit libraries are listed but can't fail the file. An .so outside the library folders, for example under assets/, is listed for reference only.

How do I fix a library that fails?

For ELF alignment and RELRO, rebuild with NDK r28 or higher, which compiles 16 KB-aligned by default, or add -Wl,-z,max-page-size=16384 and -Wl,-z,common-page-size=16384 to the linker flags on NDK r27 and lower. Recompile any prebuilt libraries the same way. For zip alignment, upgrade to Android Gradle Plugin 8.5.1 or higher, or switch to compressed libraries, which Google warns take more space once installed.

Can I check an app bundle (.aab)?

Drop the .aab and the checker reads every module's libraries and the bundle's config. Google Play builds the APKs from that config: if it asks for 4 KB alignment for uncompressed libraries, the APKs built from it will not support 16 KB page sizes even when the libraries themselves pass. The fix is the same as for an APK, AGP 8.5.1 or higher or compressed libraries.

What if the failing library comes from Flutter, React Native, Unity or an SDK?

Your own linker flags only change the libraries you build. A library that ships with a framework or SDK, such as libflutter.so, libhermes.so, libunity.so or an SDK's prebuilt .so, has to come aligned from its maker. Google says to check each SDK provider's website for the version to use with 16 KB, then update to it. When one of these libraries fails, the checker names the framework next to it.

Is my file uploaded?

The check does not upload it. The checker reads the file in your browser and sends nothing from it to BetaDrop; the page only counts which result it showed. To confirm, open your browser's developer tools, choose the Network tab, then drop the file: the page loads its own checking script the first time, and no request carries your file. The only upload is the optional install link under an APK result, and it says so before you press it.