Android "adb shell am monitor" 命令获取当前App的包名,持续监控

Android "adb shell am monitor" 命令获取当前App的包名,持续监控

C:\Users\zz>adb shell am monitor
Monitoring activity manager...  available commands:
(q)uit: finish monitoring
** Activity starting: com.google.android.apps.tachyon
** Activity starting: com.google.android.apps.tachyon
** Activity resuming: com.google.android.apps.tachyon
** Activity starting: com.google.android.apps.tachyon
** Activity resuming: com.google.android.apps.tachyon
** Activity starting: com.google.android.permissioncontroller
** Activity resuming: com.google.android.apps.tachyon

 

adb shell am monitor  可以持续监控App的包名,当切换应用时,如果包名有变化,就会立即在终端输出,蛮好用的!

 

posted @ 2021-12-07 09:35  行走的思想  阅读(2223)  评论(1编辑  收藏  举报