Support for 16kb memory page size on Android

Hi everyone :waving_hand:

Android is bringing support for 16kb page sizes to the ecosystem.
Google Play communicated a deadline for all apps targeting Android 15+ devices must support 16kb page size by November 1st, 2025.

UE 5.6.0 is released with support for 16kb page size.
UE 4.27 is released in 4.27-plus branch.

For UE 5.6.0 we will only support useLegacyPackaging=true for 16kb page size, bExtractNativeLibs should set to True in the relevant Engine.ini

Every dynamic library (.so) in .apk/.aab needs to be updated with new linker flags for correct section alignment. Please consider rebuilding your dynamic libraries in time if you’re a plugin developer.

You can use %NDKROOT%\toolchains\llvm\prebuilt\windows-x86_64\bin\llvm-readelf.exe --program-headers file.so to check if your .so is compatible, 16kb alignment will show up as 0x4000 or higher, while 4kb alignment will be 0x1000. Rebuild your libraries with NDK r27c or later if possible.

See the documentation how to test your apps on Pixel 8 or 9 series phones.

Let me know if you have any questions.

I’m using UE 4.27 now,can I continue to use the NDK r21e 16 KB version to generate libue4.so that supports google 16kb page size

Tones of third party .so are still in 4K page size? So we just leave them alone while updating UE4 realted cpp .so?


for instace, this is the google anlaysis on our app where a bunch of 3rd party libs are remain 4KB page size.
1, re-compile these lib requires source code which we don’t have
2, we cannot gurantee vendor to provide 16KB lib on time