Skip to content

Fix Android 16 KB alignment by removing Flipper#415

Merged
cristhianescobar merged 1 commit intodevelopmentfrom
codex/android-16kb-alignment
Mar 9, 2026
Merged

Fix Android 16 KB alignment by removing Flipper#415
cristhianescobar merged 1 commit intodevelopmentfrom
codex/android-16kb-alignment

Conversation

@cristhianescobar
Copy link
Member

Summary

  • disable legacy JNI packaging in the Android app so packaged native libraries are emitted correctly for 16 KB page-size devices
  • remove the Flipper and SoLoader debug stack, which was pulling in arm64 native libraries with 4 KB ELF LOAD alignment (libflipper.so, libcrypto.so, libevent*.so, libfbjni.so, and Flipper's libc++_shared.so)
  • remove stale Aligned16KB lint baseline entries that still referenced raw Gradle-cache artifacts instead of the packaged APK

Validation

  • ./gradlew :android:app-newm:assembleDevelopmentDebug
  • ./gradlew :android:app-newm:lintVitalProductionRelease
  • inspected the rebuilt app-newm-development-debug.apk and confirmed the Flipper native libraries are no longer packaged
  • checked the remaining lib/arm64-v8a/*.so binaries in the debug APK and found no ELF LOAD segment alignment below 0x4000
  • zipalign -c -P 16 -v 4 android/app-newm/build/outputs/apk/development/debug/app-newm-development-debug.apk

@cristhianescobar cristhianescobar requested a review from a team as a code owner March 9, 2026 21:27
@cristhianescobar cristhianescobar merged commit ee54172 into development Mar 9, 2026
7 checks passed
@cristhianescobar cristhianescobar deleted the codex/android-16kb-alignment branch March 9, 2026 21:48
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