You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
awesome-adb/related/dumpsys.md

27 lines
435 B

# dumpsys 相关命令
<!-- vim-markdown-toc GFM -->
* [获取当前Activity](#获取当前activity)
* [获取当前Window](#获取当前window)
<!-- vim-markdown-toc -->
### 获取当前Activity
Linux:
```sh
adb shell dumpsys activity | grep "mFocusedActivity"
```
Windows:
```sh
adb shell dumpsys activity | findstr "mFocusedActicity"
```
### 获取当前Window
```sh
adb shell dumpsys window w | grep \/ | grep name=
```