Loading
0

雷电模拟器应用操作

假设启动名为test1的模拟器, 以抖音为例 :

判断应用是否安装:

ldconsole adb --name test1 --command "shell pm list packages|grep com.ss.android.ugc.aweme"

启动应用:

ldconsole runapp --name test1 --packagename com.ss.android.ugc.aweme

退出应用:

ldconsole killapp --name test1 --packagename com.ss.android.ugc.aweme

查看应用版本:

ldconsole adb --name test1 --command "shell dumpsys package com.ss.android.ugc.aweme|grep versionName"

检测应用是否运行:

ldconsole adb --name test1 --command "shell pidof com.ss.android.ugc.aweme"

检测应用界面是否活动:

ldconsole adb --name test1 --command "shell dumpsys activity|grep mFocusedActivity|grep com.ss.android.ugc.aweme"

是否在Android桌面:

ldconsole adb --name test1 --command "shell dumpsys activity|grep mFocusedActivity|grep com.android.launcher"

最后编辑于:2020/1/5作者: joycode

我不入地狱,谁入地狱?

评论已关闭