Skip to content

Commit c9d5101

Browse files
committed
Disable emulator acceleration on CI hosts
1 parent a52c32a commit c9d5101

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

scripts/build-android-app.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,13 +1158,18 @@ ba_log "Starting headless Android emulator $AVD_NAME on port $EMULATOR_PORT"
11581158
ANDROID_AVD_HOME="$AVD_HOME" "$EMULATOR_BIN" -avd "$AVD_NAME" -port "$EMULATOR_PORT" \
11591159
-no-window -no-snapshot -no-snapshot-load -no-snapshot-save -wipe-data \
11601160
-gpu swiftshader_indirect -no-audio -no-boot-anim \
1161-
-accel on -camera-back none -camera-front none -skip-adb-auth \
1161+
-accel off -no-metrics -camera-back none -camera-front none -skip-adb-auth \
11621162
-feature -Vulkan -netfast -skin 1080x1920 -memory 2048 -cores 2 \
11631163
-writable-system -selinux permissive >"$EMULATOR_LOG" 2>&1 &
11641164
EMULATOR_PID=$!
11651165
trap stop_emulator EXIT
11661166

1167-
sleep 5
1167+
for _ in {1..60}; do
1168+
if "$ADB_BIN" -s "$EMULATOR_SERIAL" get-state >/dev/null 2>&1; then
1169+
break
1170+
fi
1171+
sleep 1
1172+
done
11681173

11691174
detect_emulator_serial() {
11701175
local deadline current_devices serial existing

0 commit comments

Comments
 (0)