rentgendroid/android/conf/start_culebra.sh
Andrii Dokhniak cab43f63ce mitmproxy
2025-08-30 18:27:49 +02:00

23 lines
557 B
Bash

set -x
function culebra_loop() {
export PATH=$PATH:/root/culebraDependencies
cd /root/culebra
while true; do
./culebratester2 start-server
done
}
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 &
adb wait-for-device
adb emu avd snapshot load configured
# 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 "am broadcast -a android.intent.action.TIME_SET"
culebra_loop