rentgendroid/pre_android/preconf/docker-entrypoint.sh
Andrii Dokhniak c64c17d86e adid && coord
2025-05-25 16:38:52 +02:00

15 lines
470 B
Bash

adb start-server
emulator -avd virtual_dev -writable-system -no-window -no-audio &
bash /preconf/install_culebra.sh
# Save the ad id while the emulator is still up
su root cat /data/data/com.google.android.gms/shared_prefs/adid_settings.xml | xmllint --xpath 'string(//map/string[@name="adid_key"])' - > /adid
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