Skip to content

fix: support 16 KB page size for Android 15+#493

Merged
barrydeen merged 1 commit into
mainfrom
fix/16kb-page-size
Apr 23, 2026
Merged

fix: support 16 KB page size for Android 15+#493
barrydeen merged 1 commit into
mainfrom
fix/16kb-page-size

Conversation

@barrydeen

Copy link
Copy Markdown
Owner

Summary

  • Disable jniLibs.useLegacyPackaging so native libraries are stored uncompressed and page-aligned in the APK.
  • Bump secp256k1-kmp 0.16.0 → 0.19.0 and kmp-tor-resource 408.12.0 → 408.16.4; prior versions shipped ELFs with 4 KB LOAD alignment.
  • After the change, all 13 .so files in the release APK report 2**14 (16 KB) LOAD alignment.

Test plan

  • ./gradlew assembleRelease succeeds
  • objdump -p on each packaged lib/arm64-v8a/*.so reports alignment 2**14
  • Install on a 16 KB-page device/emulator and smoke test (tor, secp signing, DMs)

Disable legacy jniLibs packaging so native libraries are stored
uncompressed and page-aligned in the APK. Bump secp256k1-kmp to 0.19.0
and kmp-tor-resource to 408.16.4 since the prior versions shipped
ELF binaries with 4 KB LOAD alignment. All 13 .so files in the release
APK now report 2**14 alignment.
@barrydeen
barrydeen merged commit 0b0d30d into main Apr 23, 2026
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.

1 participant