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的包名,当切换应用时,如果包名有变化,就会立即在终端输出,蛮好用的!