adb获取包名以及当前运行的activity

1.由包名获取apk路径

adb shell pm path io.ionic.starter

2.打开需要获取的APP,运行一下命令即可

adb shell dumpsys window | findstr mCurrentFocus

posted @ 2019-02-21 19:37  黒貓  阅读(8822)  评论(0编辑  收藏  举报