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.
17 lines
361 B
17 lines
361 B
#!/bin/bash
|
|
echo "Waiting for emulator to start..."
|
|
|
|
bootanim=""
|
|
failcounter=0
|
|
until [[ "$bootanim" =~ "stopped" ]]; do
|
|
bootanim=`adb -e shell getprop init.svc.bootanim 2>&1`
|
|
let "failcounter += 1"
|
|
# Timeout after 5 minutes.
|
|
if [[ $failcounter -gt 300 ]]; then
|
|
echo "Can not find device after 5 minutes..."
|
|
exit 1
|
|
fi
|
|
sleep 1
|
|
done
|
|
|