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

更新 android-wait-for-emulator.sh

上级 b568ce41
#!/bin/bash
function wait_emulator_to_be_ready() {
echo -e "\n\033[0;33;1mEmulator is booting,please wait.\033[0m\n"
boot_completed=false
while [ "$boot_completed" == false ]; do
status=$(adb wait-for-device shell getprop sys.boot_completed | tr -d '\r')
echo "Boot Status: $status"
echo -e -n "\033[0;33;1m. \033[0m"
if [ "$status" == "1" ]; then
boot_completed=true
echo " "
else
sleep 1
fi
done
}
function disable_animation() {
adb shell "settings put global window_animation_scale 0.0"
adb shell "settings put global transition_animation_scale 0.0"
adb shell "settings put global animator_duration_scale 0.0"
}
sleep $1
wait_emulator_to_be_ready
sleep 1
disable_animation
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论