adb shell dumpsys 命令
来源:互联网 发布:8月份上海房产成交数据 编辑:程序博客网 时间:2024/05/01 03:03
Android has an interesting command called dumpsys to dump some system information. Even described on adb manual I think that some points should be reinforced. In order to get the complete status just run (will produce a large output):
adb shell dumpsys
Also you can apply filters to running services:
1 SurfaceFlinger2 accessibility
3 account
4 activity
5 alarm
6 appwidget
7 audio
8 backup
9 battery
10 batteryinfo
11 bluetooth
12 bluetooth_a2dp
13 clipboard
14 connectivity
15 content
16 cpuinfo
17 device_policy
18 devicestoragemonitor19 diskstats
20 dropbox
21 entropy
22 ethernet
23 hardware
24 input_method
25 iphonesubinfo
26 isms
27 keybar
28 location
29 media.audio_flinger
30 media.audio_policy
31 media.camera
32 media.player
33 meminfo
34 mount
35 netstat
36 network_management37 notification
38 package
39 permission
40 phone
41 power
42 search
43 sensorservice
44 simphonebook
45 statusbar
46 telephony.registry
47 throttle
48 uimode
49 usagestats
50 vibrator
51 wallpaper
52 wifi
53 window
Some examples:
adb shell dumpsys wifi
adb shell dumpsys cpuinfo
I suggest you try other items on the list above and be creative using all the power of Unix pipes. Example, to get all memory allocated by each process you can do something like:
adb shell dumpsys meminfo | grep "allocated:" | awk '{total = total + $5}END{print total}'
adb shell dumpsys activity>d:\123.txt还可以使用管道命令:adb shell dumpsys activity|moreadb shell dumpsys activity|find "Running activities"
可以查看任务栈信息:
Running activities (most recent first):
TaskRecord{4079cc08 #14 A android.task.music}
Run #4: HistoryRecord{40723730 com.android.music/.TrackBrowserActivity}
Run #3: HistoryRecord{406dc9e0 com.android.music/.AlbumBrowserActivity}
TaskRecord{406c1708 #2 A com.android.launcher}
Run #2: HistoryRecord{406bff78 com.android.launcher/com.android.launcher2.Launcher}
TaskRecord{40777cd0 #11 A android.task.mms}
Run #1: HistoryRecord{406d0470 com.android.mms/.ui.ComposeMessageActivity}
Run #0: HistoryRecord{406cf898 com.android.mms/.ui.ConversationList}
这个命令对看Android源代码也会有很大的帮助,因为可以看出当前手机屏幕的Activity的名称。
- adb shell dumpsys 命令
- adb shell dumpsys 命令
- adb shell dumpsys命令
- adb shell dumpsys 命令
- adb shell dumpsys 命令
- adb shell dumpsys 命令
- adb shell dumpsys 命令
- adb shell dumpsys命令
- [转]adb shell dumpsys 命令
- adb shell dumpsys 命令 查看内存
- adb shell dumpsys命令 查看内存
- adb shell dumpsys 命令 查看内存
- adb shell dumpsys 命令 查看内存
- Android adb shell dumpsys的一些命令
- adb shell dumpsys 命令 查看内存
- adb shell dumpsys 命令 查看内存
- adb shell dumpsys 命令 查看内存
- adb shell dumpsys 命令 查看内存
- sql、html疑问
- Struts2慢慢学之一
- java例程练习(转换流)
- 我的OpenCV学习笔记(13):计算直方图,利用查找表拉伸直方图,直方图均衡
- 点击tomcat出现 unable to open service tomcat
- adb shell dumpsys 命令
- 程序设计就跟我们平时头脑想的是一样的[如何按生日的年月日计算年龄(周岁)]
- 基础服务开发实例
- USACO Stringsobits, 还是得搬出动态规划来
- 笔试面试中C/C++重要知识点整理(不定期更新)
- 将整形转化为二进制存放着数组中
- 素数判定
- 分享我用Qt写的游戏组队群聊系统
- ActionServlet类未找到