常用adb命令

2021-08-12  本文已影响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
上一篇 下一篇

猜你喜欢

热点阅读