No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

wait_for_emulator 369B

1234567891011121314151617
  1. #!/bin/bash
  2. bootanim=""
  3. failcounter=0
  4. until [[ "$bootanim" =~ "stopped" ]]; do
  5. bootanim=`adb -e shell getprop init.svc.bootanim 2>&1`
  6. echo "$bootanim"
  7. if [[ "$bootanim" =~ "not found" ]]; then
  8. let "failcounter += 1"
  9. if [[ $failcounter -gt 3 ]]; then
  10. echo "Failed to start emulator"
  11. exit 1
  12. fi
  13. fi
  14. sleep 1
  15. done
  16. echo "Done"