[Android] adb 命令 dumpsys activity , 用来看 task 中的activity。 (uninstall virus)

用“adb shell dumpsys activity命令再来查看一下系统运行的的任务,就会看到:

 

ACTIVITY MANAGER ACTIVITIES (dumpsys activity activities)
  Stack #0:
    Task id #1
      TaskRecord{42db5500 #1 A=com.google.android.googlequicksearchbox U=0 sz=1}
      Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10600000 cmp=com.google.android.googlequicksearchbox/com.google.android.launcher.GEL }
        Hist #0: ActivityRecord{42db39f8 u0 com.google.android.googlequicksearchbox/com.google.android.launcher.GEL t1}
          Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10000000 cmp=com.google.android.googlequicksearchbox/com.google.android.launcher.GEL }
          ProcessRecord{42db6348 1118:com.google.android.googlequicksearchbox/u0a19}

    Running activities (most recent first):
      TaskRecord{42db5500 #1 A=com.google.android.googlequicksearchbox U=0 sz=1}
        Run #0: ActivityRecord{42db39f8 u0 com.google.android.googlequicksearchbox/com.google.android.launcher.GEL t1}

    mResumedActivity: ActivityRecord{42db39f8 u0 com.google.android.googlequicksearchbox/com.google.android.launcher.GEL t1}

  Stack #1:
    Task id #47
      TaskRecord{42f32108 #47 A=com.baidu.dfc U=0 sz=1}
      Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.baidu.dfc/.module.mainhome.activity.HomeActivity bnds=[279,751][540,1071] }
        Hist #0: ActivityRecord{4310e1a0 u0 com.baidu.dfc/.module.mainhome.activity.HomeActivity t47}
          Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.baidu.dfc/.module.mainhome.activity.HomeActivity bnds=[279,751][540,1071] }
          ProcessRecord{425d5190 13633:com.baidu.dfc/u0a497}

    Task id #35
      TaskRecord{437f1720 #35 I=com.android.settings/.applications.InstalledAppDetailsTop U=0 sz=1}
      Intent { act=android.settings.APPLICATION_DETAILS_SETTINGS dat=package:com.baidu.dfc flg=0x10c08000 cmp=com.android.settings/.applications.InstalledAppDetailsTop }
        Hist #0: ActivityRecord{42d0dfa8 u0 com.android.settings/.applications.InstalledAppDetails t35}
          Intent { act=android.settings.APPLICATION_DETAILS_SETTINGS dat=package:com.baidu.dfc flg=0x10c08000 cmp=com.android.settings/.applications.InstalledAppDetails }

    Running activities (most recent first):
      TaskRecord{42f32108 #47 A=com.baidu.dfc U=0 sz=1}
        Run #0: ActivityRecord{4310e1a0 u0 com.baidu.dfc/.module.mainhome.activity.HomeActivity t47}

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值