rentgendroid/pre_android/preconf/docker-entrypoint.sh
migueldar a4c63e5ad4 created new image to improve waiting times
Reviewers: kuba-orlik

Subscribers: kuba-orlik

Differential Revision: https://hub.sealcode.org/D1364
2024-03-06 08:45:48 +01:00

15 lines
437 B
Bash

hashed_name=`openssl x509 -inform PEM -subject_hash_old -in /ca-cert.cer | head -1`
adb start-server
emulator -avd virtual_dev -writable-system -no-window -no-audio &
cp /ca-cert.cer /$hashed_name.0
bash /preconf/install_cert.sh $hashed_name.0
bash /preconf/install_culebra.sh
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