fix: align the llama native library for Android 16 KiB pages #2

Open
Blendman974 wants to merge 1 commits from fix/android-16k-pages into main
pull from: fix/android-16k-pages
Owner

The llama JNI library was linked with 4 KiB ELF alignment, causing Android's 16 KiB compatibility warning. Set the linker page sizes to 16 KiB and add an APK checker for ELF LOAD/RELRO alignment.

Includes five checker regression tests and validation instructions. This fix is independent of the Nix environment.

Validation: independent npm test and TypeScript checks; checker unit tests, all seven packaged native libraries and APK ZIP alignment verified on the combined release. Execution on an actual 16 KiB-page device remains unverified.

Independent branch check: 1,061 tests passed, 2 skipped, 0 failed; tsc --noEmit passed.

The llama JNI library was linked with 4 KiB ELF alignment, causing Android's 16 KiB compatibility warning. Set the linker page sizes to 16 KiB and add an APK checker for ELF LOAD/RELRO alignment. Includes five checker regression tests and validation instructions. This fix is independent of the Nix environment. Validation: independent npm test and TypeScript checks; checker unit tests, all seven packaged native libraries and APK ZIP alignment verified on the combined release. Execution on an actual 16 KiB-page device remains unverified. Independent branch check: 1,061 tests passed, 2 skipped, 0 failed; `tsc --noEmit` passed.
Blendman974 added 1 commit 2026-11-06 03:32:28 +00:00
fix: support Android 16 KiB pages in native llama library
Secret scan / gitleaks (pull_request) Canceled after 0s
Tests / test (pull_request) Canceled after 0s
Tests / test-kotlin (pull_request) Canceled after 0s
Tests / stats-server (pull_request) Canceled after 0s
Tests / evenhub-extensions (pull_request) Canceled after 0s
75bceb3b92
Some required checks failed
Secret scan / gitleaks (pull_request) Canceled after 0s
Tests / test (pull_request) Canceled after 0s
Tests / test-kotlin (pull_request) Canceled after 0s
Tests / stats-server (pull_request) Canceled after 0s
Tests / evenhub-extensions (pull_request) Canceled after 0s
You are not authorized to merge this pull request.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fix/android-16k-pages:fix/android-16k-pages
git checkout fix/android-16k-pages
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Blendman974/faceclaw#2