From f3ec29e6ad3051222a570c27bdfbe68c85f0c40b Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Thu, 23 Feb 2023 23:07:44 +0100 Subject: [PATCH] devops: use default Android emulator gpu (#21170) Signed-off-by: Max Schmitt --- utils/avd_start.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/utils/avd_start.sh b/utils/avd_start.sh index 31221a4721..a1b9bf61fd 100755 --- a/utils/avd_start.sh +++ b/utils/avd_start.sh @@ -11,9 +11,7 @@ fi bash $PWD/utils/avd_stop.sh echo "Starting emulator" -# On normal macOS GitHub Action runners, the host GPU is not available. So 'swiftshader_indirect' would have to be used. -# Since we (Playwright) run our tests on a selfhosted mac, the host GPU is available, so we use it. -nohup ${ANDROID_HOME}/emulator/emulator -avd android33 -no-audio -no-window -gpu host -no-boot-anim -no-snapshot & +nohup ${ANDROID_HOME}/emulator/emulator -avd android33 -no-audio -no-window -no-boot-anim -no-snapshot & ${ANDROID_HOME}/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done; input keyevent 82' ${ANDROID_HOME}/platform-tools/adb devices echo "Emulator started"