From 865a34f2a813c25a9e2e08758655a8d011792b6b Mon Sep 17 00:00:00 2001 From: Mischan Toosarani-Hausberger Date: Sat, 11 Nov 2023 17:40:30 +0100 Subject: [PATCH] Instead of waiting for boot_complete just ls --- scripts/start-android.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/start-android.sh b/scripts/start-android.sh index d313c00ed..6b7fecb5d 100755 --- a/scripts/start-android.sh +++ b/scripts/start-android.sh @@ -17,7 +17,7 @@ echo "Starting emulator..." # Start emulator in background nohup $ANDROID_HOME/emulator/emulator -avd $AVD_EMULATOR_NAME -no-snapshot > /dev/null 2>&1 & -$ANDROID_HOME/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done; input keyevent 82' +$ANDROID_HOME/platform-tools/adb wait-for-device shell 'ls' $ANDROID_HOME/platform-tools/adb devices echo "Emulator started."