Use legacy JNI packaging for ARM64 Android E2E APKs - #58103
Closed
cortinico wants to merge 1 commit into
Closed
Conversation
cortinico
marked this pull request as ready for review
August 24, 2026 17:39
|
@cortinico has imported this pull request. If you are a Meta employee, you can view this in D117222109. |
|
@cortinico merged this pull request in 4f9f24e. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Follow-up to #58092.
Android API 35 x86_64 emulator images expose both
x86_64andarm64-v8athroughlibndk_translation.so. SoLoader 0.12.1 only searches the first ABI when loading uncompressed native libraries directly from the APK, causing ARM64-only RNTester and template apps to crash while loadinglibreactnative.so.Enable legacy JNI packaging through a CI-only Gradle init script so Android extracts the ARM64 libraries and the existing SoLoader
ApplicationSoSourcecan load them. This applies only to dry-run RNTester builds and Android template E2E builds. Nightly and release packaging is unchanged.Failure evidence: https://github.com/react/react-native/actions/runs/32741094253
Changelog:
[INTERNAL] [FIXED] - Extract native libraries for ARM64 Android E2E APKs running through NDK translation.
Test Plan:
./node_modules/.bin/prettier --check .github/actions/build-android/action.yml .github/workflows/e2e-android-templateapp.yml— passed.yamlNode package — passed.bash -n— passed..github/workflow-scripts/legacy-jni-packaging.gradlewith the Groovy compiler bundled with Gradle 9.4.1 — passed.