Skip to content

fix(android): add ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON for 16KB page size compliance - #4816

Open
kushdab wants to merge 1 commit into
trustwallet:masterfrom
kushdab:fix/android-16kb-page-size
Open

fix(android): add ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON for 16KB page size compliance#4816
kushdab wants to merge 1 commit into
trustwallet:masterfrom
kushdab:fix/android-16kb-page-size

Conversation

@kushdab

@kushdab kushdab commented Jun 30, 2026

Copy link
Copy Markdown

Summary

Closes #4643.

Google Play Store requires all apps targeting Android 15 (API 35) to support 16KB memory page sizes. Without the -DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON CMake flag, the native libTrustWalletCore.so fails the 16KB page alignment check and apps integrating wallet-core cannot publish updates.

Change

Adds the CMake flag to android/wallet-core/build.gradle:

- arguments "-DCMAKE_BUILD_TYPE=Release", "-DTW_UNITY_BUILD=ON"
+ arguments "-DCMAKE_BUILD_TYPE=Release", "-DTW_UNITY_BUILD=ON", "-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON"

This is the recommended approach from the Android developer docs for enabling flexible page size support in NDK/CMake builds.

Testing

After this change, building the Android library and running the 16KB page size verification tool (adb shell "/data/local/tmp/page_size_compat_test") should pass for arm64-v8a builds.

…e size compliance

Google Play now requires all apps targeting Android 15 (API 35) to
support 16KB memory page sizes. Without this flag the native
libTrustWalletCore.so fails alignment verification, blocking updates.

Fixes trustwallet#4643
@kushdab
kushdab requested review from a team and BSCSecChef as code owners June 30, 2026 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Android] Add 16KB Page Size Support for Google Play Compliance

1 participant