原文: 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 ADB命令集
  2. android环境变量设置以及adb的常用命令
  3. Android 使用Android Studio + Gradle 或 命令行 进行apk签名打
  4. android adb shell 命令大全
  5. android adb 命令
  6. Android 官方命令深入分析之android
  7. linux下通过命令行更新android sdk
  8. dotnet 命令如何使用?
  9. ASP.NET Core 应用程序发布命令实例

随机推荐

  1. Android文档阅读之Txt文档阅读的方案实现
  2. Android(安卓)数据存储:五大存储之SQLite
  3. Mono for Android——使用C#,在手机上运行
  4. Android之fragment点击切换和滑动切换结
  5. 重温String和StringBuffer
  6. Android之GridLayout用法
  7. android学习——使用TableLayout动态生成
  8. Android(安卓)Glide图片加载库基础使用详
  9. Android(安卓)浏览器Browser二次开发(一)
  10. Android(安卓)Hack Retrofit 增强参数(固