美文网首页
常用adb命令

常用adb命令

作者: 大冷月 | 来源:发表于2021-08-12 09:22 被阅读0次

1.查看当前Activity

adb shell dumpsys window | findstr mCurrentFocus

2.查看当前activity栈

1.查看当前Activity信息
# adb shell dumpsys activity activities

2.查看最近Activity信息
# adb shell dumpsys activity recents

3.查看Activity的相关信息(输入包名则查看具体包名的Activity信息):
# adb shell dumpsys activity [包名]

4.查看某个Activity
# adb shell com.xx.XXActivity

5.查看当前进程
# adb shell dumpsys activity processes
//

3.打印指定TAG的日志到文本

adb logcat -s TAG名称 > d://log.txt

相关文章

网友评论

      本文标题:常用adb命令

      本文链接:https://www.haomeiwen.com/subject/nztcmhtx.html