add scritp

This commit is contained in:
Jean-Marie Mineau 2025-03-28 09:43:21 +01:00
commit df5cca3183
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
6 changed files with 90 additions and 0 deletions

19
emulator_first_boot.sh Normal file
View file

@ -0,0 +1,19 @@
#!/usr/bin/bash
# For some reason, the emulator will only boot in debug mode. Why? no fucking clue, ask google.
# Anyway, once booted a snapshot is created that will be used for the next times that will work
# without debug-init.
BASENAME='root34'
MAX_EMU=10
sdkmanager "${IMG}"
# kill all emulators:
# for e in $(adb devices | grep emulator | sed 's/\t.*//'); do adb -s $e emu kill; done
for i in $(seq 1 "${MAX_EMU}"); do
emulator -avd "${BASENAME}-${i}" -no-window -no-metrics -debug-init -logcat '*:v' &
done
#for i in $(seq 17 32); do
# emulator -avd "${BASENAME}-${i}" -no-window -no-metrics -debug-init -logcat '*:v' &
#done