rentgendroid/pre_android/preconf/docker-entrypoint.sh
Andrii Dokhniak f458b38ffd upd
2025-07-08 10:13:24 +02:00

24 lines
611 B
Bash

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