adb start-server emulator -avd virtual_dev -writable-system -no-window -no-audio -memory 4096 & 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