Recent

Author Topic: Google Play Store requires 16KB native library alignment from Android 15  (Read 481 times)

Manlio

  • Full Member
  • ***
  • Posts: 169
  • Pascal dev
On the Google Play Store dashboard I'm reading that starting with Android 15 it is recommended to "Recompile your app with 16 KB native library alignment". Failure to do that may cause apps to fail to load the library, or to just crash.

I started studying the matter but I didn't make much progress. Is there anyone who knows how to do that?

Thank you!!

manlio mazzon gmail

neuro

  • Jr. Member
  • **
  • Posts: 72
https://developer.android.com/guide/practices/page-sizes
Support 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"

nicelybrewed

  • New member
  • *
  • Posts: 7
Has anyone tested this to get 16KB alignment in LAMW?

 

TinyPortal © 2005-2018