28 lines
677 B
Bash
28 lines
677 B
Bash
adb start-server
|
|
|
|
emulator -avd virtual_dev -writable-system -no-window -no-audio -memory 4096 &
|
|
|
|
adb wait-for-device
|
|
bash /preconf/install_frida.sh
|
|
bash /preconf/install_adidreader.sh
|
|
bash /preconf/install_culebra.sh
|
|
|
|
# Open google maps once, skip all the screens, and give it gps permissions
|
|
adb shell am start-activity com.google.android.apps.maps
|
|
sleep 8
|
|
adb shell input tap 268 49
|
|
sleep 4
|
|
adb shell input tap 290 323
|
|
sleep 6
|
|
adb shell input tap 147 413
|
|
sleep 10
|
|
adb shell am stop-app com.google.android.apps.maps
|
|
|
|
adb emu avd snapshot save configured
|
|
|
|
adb emu kill
|
|
#to let the host know it finished installing
|
|
install -m 777 /dev/null /preconf/finished
|
|
|
|
tail -f /dev/null
|