adb shell dumpsys activity
1 需求
- 查询当前运行activity
- adb shell dumpsys activity | findstr mFocusedApp
- adb shell dumpsys activity | findstr mFocusedWindow
- adb shell dumpsys activity top
- adb shell dumpsys window | findstr mCurrentFocus
2 语法
Activity manager dump options:[-a] [-c] [-p PACKAGE] [-h] [WHAT] ...WHAT may be one of:a[ctivities]: activity stack stater[recents]: recent activities stateb[roadcasts] [PACKAGE_NAME] [history [-s]]: broadcast statebroadcast-stats [PACKAGE_NAME]: aggregated broadcast statisticsi[ntents] [PACKAGE_NAME]: pending intent statep[rocesses] [PACKAGE_NAME]: process stateo[om]: out of memory managementperm[issions]: URI permission grant stateprov[iders] [COMP_SPEC ...]: content provider stateprovider [COMP_SPEC]: provider client-side states[ervices] [COMP_SPEC ...]: service stateallowed-associations: current package association restrictionsas[sociations]: tracked app associationsexit-info [PACKAGE_NAME]: historical process exit informationlmk: stats on low memory killerlru: raw LRU process listbinder-proxies: stats on binder objects and IPCssettings: currently applied config settingsservice [COMP_SPEC]: service client-side statepackage [PACKAGE_NAME]: all state related to given packageall: dump all activitiestop: dump the top activityWHAT may also be a COMP_SPEC to dump activities.COMP_SPEC may be a component name (com.foo/.myApp),a partial substring in a component name, ahex object identifier.-a: include all available server state.-c: include client state.-p: limit output to given package.--checkin: output checkin format, resetting data.--C: output checkin format, not resetting data.--proto: output dump in protocol buffer format.--autofill: dump just the autofill-related state of an activity
3.X 示例:获取当前运行activity的名字
adb shell dumpsys activity | findstr mFocusedApp
adb shell dumpsys activity | findstr mFocusedWindow
备注:前面两个命令是锁屏前,后面两个命令是锁屏后
adb shell dumpsys activity activities
adb shell dumpsys window | findstr mCurrentFocus
4 参考资料
adb shell dumpsys activity相关推荐
- 打印Activity任务栈脚本:adb shell dumpsys activity
#!/bin/bash while [ 1 ] do echo"****************************<-----开始----->*************** ...
- Android adb shell dumpsys activity broadcasts分析
adb shell dumpsys activity 中的broadcasts信息 通过adb shell dumpsys activity打印中的第二项就是broadcasts信息: ACTIVIT ...
- Android之adb shell dumpsys activity获取task里面的所有actitiy
android 如何在开启一个activity的时候清除所有前面的Activity intent intent = new Intent();intent.addFlag(Intent.FLAG_AC ...
- adb shell dumpsys 使用命令和来源
一.概述 adb shell dumpsys 在Android开发中经常要用到,平时都是零碎的积累,用到什么的时候就 记录下来,最近看了一些资料,发现可以汇总所有的命令,当带某个参数的时候,就可以查看 ...
- adb shell dumpsys package
1 需求 获取手机中声明的所有权限 perm[issions]: dump permissions 获取手机中申请指定权限的所有应用 permission [name ...]: dump decla ...
- Android内存泄漏查找和解决adb shell dumpsys meminfo packagement
1.通过adb shell dumpsys meminfo packageName来查看内存使用状况 在没有打开应用的情况下,该命令返回的数据是这样的: 2.打开这个应用的MainActivity,再 ...
- adb shell dumpsys简单介绍
以下内容来自stack overflow上的一个提问,因为个人英语水平所限,就不翻译了,将主要内容整理如下,方便查阅.简而言之,介绍了如下内容 dumpsys可以用来检测系统的服务信息 列出dumps ...
- adb shell dumpsys 命令 查看内存
android程序内存被分为2部分:native和dalvik,dalvik就是我们平常说的java堆,我们创建的对象是在这里面分配的,而bitmap是直接在native上分配的,对于内存的限制是 n ...
- 【转载】adb shell dumpsys 查看内存
android程序内存被分为2部分:native和dalvik,dalvik就是我们平常说的java堆,我们创建的对象是在这里面分配的,而bitmap是直接在native上分配的,对于内存的限制是 n ...
最新文章
- 制定和实施网络安全事件响应计划(1)
- [转]ORACLE日期时间函数大全
- sqlalchemy与mysql映射
- Java基础学习总结(134)——JDK 11 是否值得更新的思考
- 杂志订阅管理系统c语言实训报告,C语言程序设计报告—杂志订阅管理软件、、.doc...
- feed43使用教程
- 单机手机消消乐php游戏源码,JS叠房子消消乐小游戏代码
- php社交项目源代码,PHP交友聊天源码,社交网络网站源代码,带即时聊天,带聊天室功能,带原生APP源码...
- 第十五届全国大学生智能车全国总决赛获奖信息-创意组获奖信息
- 数据库设计遵循三大范式
- 理科生学计算机数字媒体方向,文科生,理科生,分别可以报哪些专业?5分钟了解文理报考大方向...
- 【php学习之路】微信公众帐号
- 快速记忆之简单词语联想记忆
- ORACLE 获取配置信息 USERENV函数
- 第十七届全国大学生智能汽车竞赛创意组-百度智慧交通(丝绸之路)
- Python中以字母r/R,或字母u/U 开头的字符串
- 一款支持大恒相机、IDS相机、普通USB相机和机械手的标定工具
- 证明:y=cos(x)在区间x∈(-∞,+∞)是连续的
- 使用innobackupex备份mysql数据库
- 电脑监控专家-专业的电脑监控软件
热门文章
- 夜深人静写算法(四十三)- 线性DP
- 利用python+selenium带上cookies自动登录bilibili
- Interspeech 2022丨FFSVC 2022 远场说话人识别比赛
- 从Python字符串中删除表情符号
- 分享99个ASP办公 OA源码,总有一款适合您
- Jiangsheng的CSDN Digest (Oct 2005)
- android 动态设置布局LayoutParams
- Xcode 真机调试: AVAudioPlayer 模拟器有声音,真机耳机有声音,扬音器没有声音的解决办法
- golang 使用gops进行程序监控
- cas20205-29-2|2,3,3-三甲基-1-丙基-3H-吲哚碘|2,3,3-trimethyl-1-propylindol-1-ium,iodide齐岳生物