[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}

 

posted @ 2016-01-15 20:58  demoblog  阅读(4639)  评论(0编辑  收藏  举报