Adb命令大全

 主页   资讯   文章   代码   电子书 

dumpsys 相关命令

获取当前Activity

Linux:

adb shell dumpsys activity | grep "mFocusedActivity"

Windows:

adb shell dumpsys activity  | findstr "mFocusedActicity"

获取当前Window

adb shell dumpsys window w | grep \/  |  grep name=