#!/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