共2种方法: 第一种: 有时很烦人,打开要启动的apk,通过adb命令(adb shell "dumpsys activity |grep Focuse") 获取到的应用包名 无法使用adb命令(adb shell am start -n com.ibroker.iBerHK ...
将设备 一般是手机 ,打开cmd指令输入以下指令 adb shell dumpsys window windows findstr Current 如下图所示, 之前的就是package,之后的就是当前的activity,如下图红线的部分。对于大多数的App,这个当前的activity就是am命令需要的launch activity, 但也有些应用启动时包含了欢迎页之类的,在你打开App的时候就自 ...
2019-06-28 10:44 0 1158 推荐指数:
共2种方法: 第一种: 有时很烦人,打开要启动的apk,通过adb命令(adb shell "dumpsys activity |grep Focuse") 获取到的应用包名 无法使用adb命令(adb shell am start -n com.ibroker.iBerHK ...
获取APP当前界面,有一个很好用的命令,连接手机后每次切换APP的界面即可获得。 adb shell dumpsys window windows | findstr “Current” ...
借鉴:https://blog.csdn.net/wangjicong_215/article/details/79744599 8.1之前 window 通过adb shell dumpsys activity | findstr “mFocus” Linux 通过adb shell ...
1.由包名获取apk路径 adb shell pm path io.ionic.starter 2.打开需要获取的APP,运行一下命令即可 adb shell dumpsys window | findstr mCurrentFocus ...
cmd命令中输入:adb shell dumpsys activity activities 在一连串的输出中找到Runing activities com.android.settings是包名. .HWSettings是activitie名称 转载请标明:https ...
在windows下:adb shell dumpsys activity | findstr "mFocusedActivity" 在linux下:adb shell dumpsys activity | grep "mFocusedActivity" 在uiautomator的java代码中 ...
使用dumpsys命令可以查看Android手机当前正在运行的Activity 如果结果不是想要找的Activity,可以去掉findstr过滤条件,这样会输出大量的信息,可以在结果中查找 ...
的 而不同的app ,也会有不同的Activity和Package,那么我们需要通过什么方式去 ...