2025-09-29 16:32:27 +02:00

14 lines
434 B
Bash

set -x
rm -f /opt/android-sdk-linux/.android/avd/virtual_dev.avd/*.lock
adb start-server
emulator -avd virtual_dev -writable-system -no-window -no-audio -memory 4096 -grpc 8888 &
adb wait-for-device
adb emu avd snapshot load configured
adb wait-for-device
# set the date on the emulator for the ssl to work properly
adb shell su root "date $(date +%m%d%H%M%G.%S)"
adb shell su root "am broadcast -a android.intent.action.TIME_SET"