Skip to content

chore(android): align native libraries to 16 KB pages - #194

Merged
haribo merged 1 commit into
developfrom
chore/79-16kb-align
Aug 11, 2026
Merged

chore(android): align native libraries to 16 KB pages#194
haribo merged 1 commit into
developfrom
chore/79-16kb-align

Conversation

@haribo

@haribo haribo commented Aug 11, 2026

Copy link
Copy Markdown
Owner

Summary

Android 15 requires native .so LOAD segments aligned to a 16 KB max page size on 16 KB-page devices; the bundled libs were 4 KB-aligned (device compatibility warning, #79).

  • Our Rust lib: a workspace .cargo/config.toml links the Android targets with -Wl,-z,max-page-size=16384 (applies only to aarch64/x86_64-linux-android, built solely for the mobile crate — the host cargo test is unaffected).
  • JNA: bumped 5.14.05.15.0 (first 16 KB-aligned release).
  • androidx.graphics.path: already 16 KB-aligned in the current Compose BOM — no bump needed.

Verification (llvm-readelf -l on the packaged arm64 libs)

lib before after
libplain_note_mobile.so 0x1000 0x4000
libjnidispatch.so 0x1000 0x10000
libandroidx.graphics.path.so 0x4000

All LOAD segments now ≥ 16 KB. Final device confirmation (warning gone) pending — the phone disconnected mid-session; will install once reconnected.

Closes #79

@haribo
haribo merged commit f0fc1a2 into develop Aug 11, 2026
7 checks passed
@haribo
haribo deleted the chore/79-16kb-align branch August 11, 2026 08:08
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: make native libs 16 KB page-aligned (android 15)

1 participant