Skip to content

Commit

Permalink
Instead of waiting for boot_complete just ls
Browse files Browse the repository at this point in the history
  • Loading branch information
supervacuus authored Nov 11, 2023
1 parent 94d9a8d commit 865a34f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/start-android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."

0 comments on commit 865a34f

Please sign in to comment.