Run Android E2E with ARM64 APKs (#58092)

Summary:
Build only the `arm64-v8a` Android ABI for dry-run CI artifacts and run the ARM64 RNTester and template-app APKs on an API 35 `google_apis` x86_64 emulator using the system images built-in NDK translation support.

This also makes the Maestro emulator API level and target configurable, logs the device ABI/native-bridge configuration, and updates local RNTester artifact selection to use the ARM64 split.

Release and nightly publication builds continue to build all supported Android ABIs.

## Changelog:

[INTERNAL] [CHANGED] - Run Android E2E tests with ARM64 APKs through NDK translation.

Pull Request resolved: https://github.com/react/react-native/pull/58092

Test Plan:
- `node --check .github/workflow-scripts/maestro-android.js` — passed.
- `node --check scripts/release-testing/test-release-local.js` — passed.
- Parsed all modified YAML files with the `yaml` Node package — passed.
- `./node_modules/.bin/prettier --check <modified files>` — passed.
- `git diff --check HEAD~3..HEAD` — passed.
- `actionlint` reported only existing repository metadata warnings for the custom `4-core-ubuntu` label and the missing description in the local `yarn-install` action.
- `yarn test .github/workflow-scripts/__tests__/maestro-android-test.js --runInBand` could not start because the local dependency tree is missing `flow-parser`; restoring dependencies was blocked by HTTP 503 responses from the npm registry.
- The draft CI run should validate ARM64 APK installation, Hermes startup, and the complete Maestro suites through `libndk_translation.so`.

Reviewed By: Abbondanzo

Differential Revision: D117195078

Pulled By: cortinico

fbshipit-source-id: a78f2127f04e80c3b5ca4c95d2024dffb92ff122
This commit is contained in:
Nicola Corti authored and meta-codesync[bot] committed 2026-08-24 07:46:44 -07:00
1 parent 3f9cc72309
commit 25ebffd1f7
7 files changed
+47 -17

No files matched your search

@@ -29,6 +29,22 @@ const MAESTRO_LOG_DIRECTORY = '/tmp/MaestroLogs';
const DIAGNOSTIC_COMMAND_TIMEOUT = 15000;
const STATE_VERSION = 1;
function logAndroidAbiConfiguration() {
const properties = [
'ro.product.cpu.abi',
'ro.product.cpu.abilist',
'ro.dalvik.vm.native.bridge',
];
console.info('Android ABI configuration:');
for (const property of properties) {
const value = childProcess
.execFileSync('adb', ['shell', 'getprop', property], {encoding: 'utf8'})
.trim();
console.info(`- ${property}: ${value || '<empty>'}`);
}
}
function collectFlows(flowPath) {
if (!fs.existsSync(flowPath) || !fs.lstatSync(flowPath).isDirectory()) {
return [flowPath];
@@ -279,6 +295,8 @@ async function main(args = process.argv.slice(2)) {
console.info(`TEST_STATE_PATH: ${statePath}`);
console.info('==============================\n');
logAndroidAbiConfiguration();
console.info('Install app');
childProcess.execSync(`adb install ${appPath}`, {stdio: 'ignore'});