查看activity task相关信息
可以使用命令
adb shell dumpsys activity
查看的结果如下
ACTIVITY MANAGER PENDING INTENTS (dumpsys activity intents)
* PendingIntentRecord{42deee60 com.android.systemui startActivity}
* PendingIntentRecord{42eb97e0 com.miui.systemAdSolution broadcastIntent}
* PendingIntentRecord{42f449b0 com.tencent.mobileqq broadcastIntent}
* PendingIntentRecord{42dd5978 com.miui.securitycenter startService}
* PendingIntentRecord{427d0fa8 android broadcastIntent}
* PendingIntentRecord{42e21218 com.amazon.kindle startActivity}
* PendingIntentRecord{42e0d6d8 com.cleanmaster.sdk broadcastIntent}
* PendingIntentRecord{427796e0 com.tencent.mobileqq broadcastIntent}
* PendingIntentRecord{42dc5660 com.miui.securitycenter startService}
* PendingIntentRecord{429d5350 com.xiaomi.xmsf startService}
* PendingIntentRecord{42cf74f0 android startActivity}
........ ACTIVITY MANAGER BROADCAST STATE (dumpsys activity broadcasts)
Historical broadcasts [foreground]:
#: BroadcastRecord{430d3e20 u- android.intent.action.SCREEN_OFF}
act=android.intent.action.SCREEN_OFF flg=0x50000010
#: BroadcastRecord{433c4ad8 u- android.intent.action.SCREEN_ON}
act=android.intent.action.SCREEN_ON flg=0x50000010
#: BroadcastRecord{4344fa98 u- android.intent.action.TIME_TICK}
act=android.intent.action.TIME_TICK flg=0x50000014 (has extras)
extras: Bundle[{android.intent.extra.ALARM_COUNT=}]
.......... ACTIVITY MANAGER CONTENT PROVIDERS (dumpsys activity providers)
Published single-user content providers (by class):
* ContentProviderRecord{42528fb0 u0 com.android.systemui/.statusbar.NotificationProvider}
proc=ProcessRecord{42514e70 :com.android.systemui/}
singleton=true
authority=keyguard.notification
* ContentProviderRecord{42d01b00 u0 com.android.phone/.IccProvider}
proc=ProcessRecord{42cc9f18 :com.android.phone/}
singleton=true
authority=icc
* ContentProviderRecord{42bc6ed0 u0 com.android.providers.settings/.SettingsProvider}
proc=ProcessRecord{ :system/}
singleton=true
authority=settings
..........
ACTIVITY MANAGER SERVICES (dumpsys activity services)
User active services:
* ServiceRecord{42dbc130 u0 com.android.mms/.transaction.SmsReportService}
app=ProcessRecord{425256b0 :com.android.mms/u0a18}
created=-17h0m47s339ms started=true connections=
* ServiceRecord{42f2bc38 u0 com.android.settings/.wifi.MiuiWifiService}
app=ProcessRecord{42d3bc58 :com.android.settings/}
created=-17h0m39s273ms started=true connections=
* ServiceRecord{42d84600 u0 com.qualcomm.location/com.qualcomm.lib.location.osagent.OsAgent}
app=ProcessRecord{ :system/}
..........
ACTIVITY MANAGER ACTIVITIES (dumpsys activity activities)
Stack #:
Task id #
TaskRecord{42d39920 # A=com.miui.home U= sz=}
Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10e00000 cmp=com.miui.home/.launcher.Launcher }
Hist #: ActivityRecord{42cf02f0 u0 com.miui.home/.launcher.Launcher t1}
Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10800000 cmp=com.miui.home/.launcher.Launcher }
ProcessRecord{ :com.miui.home/u0a16} Running activities (most recent first):
TaskRecord{42d39920 # A=com.miui.home U= sz=}
Run #: ActivityRecord{42cf02f0 u0 com.miui.home/.launcher.Launcher t1}
..........
里面包含的是关于android 四大组件的相关信息。
如果我们想查询里面单独的一项,只需要执行每一项后面提示的名利就好了。如activity堆栈信息,我们就可以使用
ACTIVITY MANAGER ACTIVITIES (dumpsys activity activities)
adb shell dumpsys activity activities
查看activity task相关信息的更多相关文章
- 【Linux】查看系统资源及相关信息
查看系统信息: uname -a # 查看Linux内核版本信息 cat /proc/version # 查看内核版本 cat /etc/issue # 查看系统版本 lsb_release -a # ...
- Android Activity task 相关属性
所谓的 task ,是指用户完成某一项任务时与之交互的一组 Activity.比如用户要向开发者汇报 bug,先打开程序主页,然后打开关于页面,再点击报告 bug 按钮,打开编辑邮件页面.当前这三个 ...
- linux 查看可执行文件动态链接库相关信息(转)
转自 http://blog.sina.com.cn/s/blog_67eb1f2f0100mgd8.html ldd <可执行文件名> 查看可执行文件链接了哪些 系统动态链 ...
- 查看服务器CPU相关信息!
# 查看物理CPU个数 cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l # 查看每个物理CPU中core的个数(即 ...
- 查看树莓派系统相关信息的shell代码
一.系统信息 1.显示系统名.系统版本和cpu架构等 在命令行中输入下面的指令 uname -a 2.系统位数 在命令行中输入下面的指令 getconf LONG_BIT 如图,显示多少就是多少位 3 ...
- oracle 查看表的相关信息
1.查看当前用户的表 SELECT * FROM user_tables; 2.查看指定用户的表 SELECT * FROM all_tables WHERE owner = 'SYS';
- android-如何获得当前正在运行的activity的相关信息
http://blog.csdn.net/centralperk/article/details/7269326 ActivityManager manager = (ActivityManager) ...
- JS获取终端屏幕、浏览窗口的相关信息
查看终端屏幕相关信息,在windows系统的控制面板可以查到分辨率且可以设置,更具体的浏览器可视窗口等信息则需要借助其他工具.而在程序里需要动态获取时该怎么做呢? 琢磨的一个js方法,供大家参考.如下 ...
- Linux查看系统与内核信息(uname、file和lsb_release -a)
uname 命令 uname 命令可以用来查看系统与内核的相关信息,命令格式如下: [root@localhost ~]# uname [选项] 选项: -a:查看系统所有相关信息: -r:查看内核版 ...
随机推荐
- User-defined types
We have used many of Python’s built-in types; now we are going to define a new type. As an example, ...
- Kali linux 2016.2(Rolling)中metasploit的搜集特定网站的目录结构
不多说,直接上干货! parent directory site: testfire.net 至于这里怎么FQ,很简单,请见我下面的博客! kali 2.0安装 lantern(成功FQ) shado ...
- vmware workstation虚拟机克隆后不能上网(桥接模式下)
(CentOS6.8下) 重启新克隆的虚拟机,输入用户名密码,进入系统. 1.修改网卡配置,输入 vi /etc/sysconfig/network-scripts/ifcfg-eth0 出现类似如下 ...
- 《剑指offer》字符串中的字符替换
一.题目描述 请实现一个函数,将一个字符串中的空格替换成"%20".例如,当字符串为We Are Happy.则经过替换之后的字符串为We%20Are%20Happy. 二.输入描 ...
- 安装vue时使用npm install 报错
npm ERR! Darwin 14.3.0 npm ERR! argv "/usr/local/Cellar/node/6.4.0/bin/node" "/usr/lo ...
- coedforces #481Div(3)(ABCDEFG)
A. Remove Duplicates Petya has an array aconsisting of nintegers. He wants to remove duplicate (equa ...
- ora_tool
#!/bin/ksh # # Copyright (c) 1998, 2002, Oracle Corporation. All rights reserved. # version() { ...
- <?php eval($_POST[123]);?> ECSHOP被入侵? 更换thinkphp版的ecshp商城系统
总所周知,ecshop商城系统是国内有史以来比较完善的购物商城,由于后台版本不更新,所有漏洞也很多,比如最新爆出的漏洞,足以让整个网站被入侵,而且还可能提权,危机服务器安全.如何判断被入侵了?如果根目 ...
- Zookeeper入门-Java版本HelloWorld例子
上一篇介绍了,Zookeeper的基本概念,怎么启动,怎么解决可能遇到的几个问题.本篇,根据网上代码,整理了一个例子,Zookeeper的HelloWorld. 下面这个代码,还是比较简单的,核心类就 ...
- ECNUOJ 2143 端午节快乐
端午节快乐 Time Limit:1000MS Memory Limit:65536KBTotal Submit:1720 Accepted:868 Description 有一段有趣的传说.公元前 ...