注意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