https://developer.android.com/guide/practices/page-sizesSupport 16 KB page sizes
16 KB Google Play compatibility requirement
Starting November 1st, 2025, all new apps and updates to existing apps submitted to Google Play and targeting Android 15+ devices must support 16 KB page sizes.
--------------------------
Android NDK r28 and higher
NDK version r28 and higher compile 16 KB-aligned by default.
--------------------------
Android NDK r27
To support compiling 16 KB-aligned shared libraries with Android NDK version r27 and higher, you need to update your ndk-build, build.gradle, build.gradle.kts, or linker flags as follows:
In your Application.mk:
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true
--------------------------
Android NDK r26 and lower
Update your Android.mk to enable 16 KB ELF alignment:
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"