原文: http://www.coding.com.br/android/android-dumpsys/

android: dumpsys

Android has an interesting command called dumpsys to dump some system information. Even described onadb 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 SurfaceFlinger

2 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 devicestoragemonitor

19 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_management

37 notification

38 package

39 permission

40 phone

41 power

42 search

43 sensor

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}'
于是要是输出系统崩溃的log,可以输入如下命令:adb shell dumpsys dropbox system_app_crash --print >>f:/log.txt

更多相关文章

  1. Android(安卓)SDK和最新ADT下载地址
  2. php socket发送十六进制指令
  3. 那些面试官,都是如何把候选人聊崩溃的
  4. 小白学Python:Python的基本数据类型
  5. Shell脚本常用命令
  6. 循环与网络请求
  7. PHP循环学习八:统计1~10000的完数个数,并输出全部完数
  8. 如何通过PHP程序输出全部三位回文数
  9. PHP如何输出20世纪的所有闰年

随机推荐

  1. SQLSERVER中的假脱机spool
  2. [超入门]使用docker做mysql主从复制实验
  3. laravel原生MySQL之Group记录
  4. 高分求解:如何每天将本地的sybase的数据导
  5. MySQL 5.7.22 免安装配置
  6. MySQL数据库阶段学习目录
  7. 临时表空间、drop、truncate、delete的区
  8. SQL SERVER 2005 数据库对比工具,并自动生
  9. sql 内置函数 获取表的 列名
  10. 多表查询SQL中的多个计数