Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
MySecondApp
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
1
问题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
银宸大学计算机学院
教师群组
宋海霞-shx
androidTest
MySecondApp
提交
bd37537a
提交
bd37537a
8月 24, 2020
创建
作者:
宋海霞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新 android-wait-for-emulator.sh
上级
08658530
流水线
#119077
已取消 于阶段
用时 5 秒
变更
1
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
+3
-3
android-wait-for-emulator.sh
android-wait-for-emulator.sh
+3
-3
没有找到文件。
android-wait-for-emulator.sh
浏览文件 @
bd37537a
#!/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\0
33[0;33;1mEmulator is booting,please wait.
\0
33[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
"
\0
33[0;33;1m.
\0
33[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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论