From 84a467888c17620178926f8e57ec8e6b3a77cc5b Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 30 Jun 2026 03:30:34 +0000 Subject: [PATCH] fix(e2e): use documented hide_error_dialogs setting on API 29 Replace non-standard adb settings keys (show_anr_messages, anr_dialogs_disabled, anr_show_background) that may be no-ops on the API 29 emulator with Settings.Global.HIDE_ERROR_DIALOGS, the AOSP key used by CTS ANR tests to suppress system error dialogs. Addresses Devin review on PR #358. Co-authored-by: Perry --- .github/workflows/e2e.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index aec406f..7d8c40c 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -205,11 +205,11 @@ jobs: disable-animations: true script: | # Expo's heavier UI can trigger a system-level ANR dialog on the - # low-memory GitHub Actions emulator. Disable ANR prompts before - # installing the app so Maestro is not blocked by emulator noise. - adb shell settings put secure show_anr_messages 0 - adb shell settings put global anr_dialogs_disabled true - adb shell settings put global anr_show_background false + # low-memory GitHub Actions emulator. hide_error_dialogs is the + # documented AOSP global setting (Settings.Global.HIDE_ERROR_DIALOGS) + # used by CTS/Input ANR tests to suppress error dialogs on API 29+. + # Maestro still dismisses any dialog that slips through (_setup.yaml). + adb shell settings put global hide_error_dialogs 1 adb install ${{ matrix.dir }}/android/app/build/outputs/apk/release/app-release.apk maestro test --env APP_ID="${{ matrix.bundle_id }}" .maestro/flows/ci-master.yaml