提交 1a087a7c 创建 作者: 宋海霞's avatar 宋海霞

更新 android-wait-for-emulator.sh

上级 07dd9f49
#!/bin/bash #!/bin/bash
function wait_emulator_to_be_ready() { function wait_emulator_to_be_ready() {
echo "Emulator is booting,please waiting."
boot_completed=false boot_completed=false
while [ "$boot_completed" == false ]; do while [ "$boot_completed" == false ]; do
status=$(adb wait-for-device shell getprop sys.boot_completed | tr -d '\r') status=$(adb wait-for-device shell getprop sys.boot_completed | tr -d '\r')
echo "Boot Status: $status" echo -n ". "
if [ "$status" == "1" ]; then if [ "$status" == "1" ]; then
boot_completed=true boot_completed=true
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论