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

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