set -xe rm -f /opt/android-sdk-linux/.android/avd/virtual_dev.avd/*.lock adb start-server cat > /simple.gpx << EOF Simple Waypoint EOF emulator -avd virtual_dev -writable-system -no-window -no-audio & adb wait-for-device adb emu avd snapshot load configured # emulator -grpc 5556 -avd virtual_dev -snapshot configured -no-window -no-audio -no-metrics -debug-no > /dev/null & # adb wait-for-device export PATH=$PATH:/root/culebraDependencies cd /root/culebra ./culebratester2 start-server & #wait for the server to start while ! curl http://localhost:9987/v2/uiDevice/screenshot > /dev/null 2> /dev/null; do sleep 0.1 done