From e7f38c26e25309dd74d5c4937d82f3a751669147 Mon Sep 17 00:00:00 2001 From: g32zhu Date: Thu, 23 Apr 2026 09:29:25 +0900 Subject: [PATCH] fix(android): add 16KB page size support for Google Play compliance Add -DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON to CMake arguments so that libangle_android_graphic_jni.so is compiled with 16KB ELF segment alignment. NDK 27 and older default to 0x1000 (4KB) PT_LOAD alignment, which is incompatible with 16KB-page kernels on Android 15+. Google Play requires all apps to support 16KB pages by May 31 2026. The flag instructs the NDK linker to emit 0x4000 (16KB) PT_LOAD alignment, which is backward-compatible with 4KB-page devices. Fixes #49 --- flutter_angle/android/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flutter_angle/android/build.gradle b/flutter_angle/android/build.gradle index 6beb3a2..32b07b7 100644 --- a/flutter_angle/android/build.gradle +++ b/flutter_angle/android/build.gradle @@ -39,7 +39,7 @@ android { externalNativeBuild { cmake { cppFlags '-std=c++14' - arguments "-DANDROID_STL=c++_shared" + arguments "-DANDROID_STL=c++_shared", "-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON" version "3.31.4" } }