diff --git a/scripts/emulator-monitoring.sh b/scripts/emulator-monitoring.sh index 7f0d5cc..7fabfd0 100644 --- a/scripts/emulator-monitoring.sh +++ b/scripts/emulator-monitoring.sh @@ -16,7 +16,7 @@ function update_state() { # Waits for the emulator to boot and writes # state updates on the standard output. function wait_for_boot() { - update_state "booting" + update_state "ANDROID_BOOTING" # Waiting for the ADB server to start. while [ -n "$(adb wait-for-device > /dev/null)" ]; do @@ -30,5 +30,5 @@ function wait_for_boot() { COMPLETED=$(adb shell getprop sys.boot_completed | tr -d '\r') sleep 5 done - update_state "booted" + update_state "ANDROID_READY" } \ No newline at end of file diff --git a/scripts/start-emulator.sh b/scripts/start-emulator.sh index 64cde38..b49ee06 100644 --- a/scripts/start-emulator.sh +++ b/scripts/start-emulator.sh @@ -38,4 +38,4 @@ emulator \ -no-window \ -no-snapshot-save \ -qemu \ - -enable-kvm || update_state "stopped" + -enable-kvm || update_state "ANDROID_STOPPED"