| commit | 755e6db8afc391451b58d9c020523ab3c09f939c | [log] [tgz] |
|---|---|---|
| author | Godofredo Contreras <godofredoc@google.com> | Fri Jun 16 17:31:42 2023 +0000 |
| committer | CQ Bot Account <flutter-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jun 16 17:31:42 2023 +0000 |
| tree | 9db098d7e3b6748827413a4f03578053327cd10b | |
| parent | 45e2fdfe236fbc03b1d1b0d473c16ed0849acd00 [diff] |
Wait for emulator to boot. The recipe module was not waiting for the emulator to boot causing errors when trying to install applications as even when the device was discovered by adb it was still offline. Change-Id: I5fa3d5f640614a4765424dbe1af344dbfa77e9c7 Reviewed-on: https://flutter-review.googlesource.com/c/recipes/+/46040 Reviewed-by: Ricardo Amador <ricardoamador@google.com> Commit-Queue: Godofredo Contreras <godofredoc@google.com>
diff --git a/recipe_modules/android_virtual_device/resources/avd_setup.sh b/recipe_modules/android_virtual_device/resources/avd_setup.sh index c0c452d..340e0e4 100644 --- a/recipe_modules/android_virtual_device/resources/avd_setup.sh +++ b/recipe_modules/android_virtual_device/resources/avd_setup.sh
@@ -22,3 +22,5 @@ $1 shell settings put global development_settings_enabled 1 # Enable MTP file transfer $1 shell svc usb setFunctions mtp +# Wait for device to boot and unlock device's screen. +$1 wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done; input keyevent 82'