diff --git a/android/libs/api.aar b/android/libs/api.aar index 16b8f31..df1441b 100644 Binary files a/android/libs/api.aar and b/android/libs/api.aar differ diff --git a/run_build_tool_android.sh b/run_build_tool_android.sh index c393347..7afc900 100755 --- a/run_build_tool_android.sh +++ b/run_build_tool_android.sh @@ -4,4 +4,7 @@ gomobile init || go install golang.org/x/mobile/cmd/gomobile@latest gomobile init echo "Binding Bitbox to Android" -gomobile bind -o $1 -target=android -androidapi 24 . +# Force 16 KB ELF page alignment on the emitted .so libraries. Android 15+ +# devices can use 16 KB memory pages and Google Play rejects bundles whose +# native code is only 4 KB aligned. `-extldflags` reaches the NDK linker. +gomobile bind -ldflags="-extldflags=-Wl,-z,max-page-size=16384" -o $1 -target=android -androidapi 24 .