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

更新 android-wait-for-emulator.sh

上级 08658530
流水线 #119077 已取消 于阶段
用时 5 秒
#!/bin/bash #!/bin/bash
function wait_emulator_to_be_ready() { function wait_emulator_to_be_ready() {
echo "Emulator is booting,please waiting." echo -e "\n\033[0;33;1mEmulator is booting,please wait.\033[0m\n"
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 -n ". " echo -e -n "\033[0;33;1m. \033[0m"
if [ "$status" == "1" ]; then if [ "$status" == "1" ]; then
boot_completed=true boot_completed=true
...@@ -24,7 +24,7 @@ function disable_animation() { ...@@ -24,7 +24,7 @@ function disable_animation() {
adb shell "settings put global animator_duration_scale 0.0" adb shell "settings put global animator_duration_scale 0.0"
} }
sleep 50 sleep $1
wait_emulator_to_be_ready wait_emulator_to_be_ready
sleep 1 sleep 1
disable_animation disable_animation
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论