- Create a android emulator with some name ex: Nexus_5
- launch emulator
- wait for device to be recognised
- if device launch failed try again
#!/bin/bashc=1while [ $c -le 5 ]dops | grep "player" | awk '{print $1}' | xargs killadb kill-serverplayer --vm-name Nexus_5 &sleep 2adb start-serversleep 30res=`adb get-state`;echo $resif [ $res = "device" ]thenbreakelseecho "repeat simulator launch"fic=$(($c+1))done
To install genymotion check here - http://www.mobiletestworld.com/2014/02/install-genymotion-fastest-android-emulator-on-mac.html
No comments:
Post a comment