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

Android has an interesting command calleddumpsysto dump some system information. Even described onadb manualI 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}'

更多相关文章

  1. android仿今日头条App、多种漂亮加载效果、选择器汇总、记事本Ap
  2. Android: 上传图片到服务器
  3. android切换效果、Flutter信息类App、仿饿了么点餐、仿爱壁纸应
  4. Android样式开发
  5. android小说阅读源码、bilibili源码、MVP新闻源码等
  6. android小说阅读源码、bilibili源码、MVP新闻源码等
  7. android android API Level
  8. Android中如何使用 address2line
  9. android dumpsys

随机推荐

  1. 【Android】使用Git控制Android程序的git
  2. 启动 flutter项目时报Could not find com
  3. Android工具包
  4. Error:Execution failed for task ':app:
  5. Android am/pm命令用法
  6. adb连接不上模拟器的问题
  7. Android自定义View之一:初探实例
  8. Android 后台保活设计2019,最新版本
  9. Android 读取正在运行非系统的程序
  10. 【Android】获取apk的版本及包名等信息