adb查看手机当前启动App的应用名和包名

原文链接:https://blog.csdn.net/hxy199421/article/details/81199245

注意1:方法2 的命令在windows 的cmd下回报错,可以先进入adb shell 在建入后面的内容

注意2 :方法1和2 需要在应用正好在启动时查询

 

方法1.adb shell dumpsys window w |findstr \/ |findstr name=   

转载地址:https://blog.csdn.net/hxy199421/article/details/81199245

 

方法2.  adb shell dumpsys activity | grep -i run

转载地址:https://yq.aliyun.com/articles/465890

 

方法3 .adb logcat | grep Displayed (windows在adb shell 下键入:logcat | grep Displayed),显示当前显示的应用

转载自:https://blog.csdn.net/weixin_36886116/article/details/83026435

 

 

方法4: 

1.打开app

2.adb logcat>D:/log.txt

3.对app做一些操作

4.ctrl+c 中断

5.查看D:/log.txt,搜索:Displayed

 

转载自:https://www.cnblogs.com/fnng/p/7350900.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章