Skip to content

Instantly share code, notes, and snippets.

@iskugor
Last active November 29, 2021 08:07
Show Gist options
  • Save iskugor/9070f87c1680750acfeae56d9e9da91b to your computer and use it in GitHub Desktop.
Save iskugor/9070f87c1680750acfeae56d9e9da91b to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
OUT=`${ANDROID_SDK_ROOT}/platform-tools/adb shell getprop init.svc.bootanim`
RES="stopped"
while [[ ${OUT:0:7} != 'stopped' ]]; do
OUT=`${ANDROID_SDK_ROOT}/platform-tools/adb shell getprop init.svc.bootanim`
echo 'Waiting for emulator to fully boot...'
sleep 5
done
echo "Emulator booted!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment