[Reprint] Android dumpsys

Source: Internet
Author: User

Original article: http://www.coding.com.br/android/android-dumpsys/

Android has an interesting command calledDumpsysTo dump some system information. Even described on ADB manual I think that some points shocould 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

12316th_a2dp

13 clipboard

14 connectivity

15 content

16Cpuinfo

17device_policy

18 devicestoragemonitor

19 diskstats

20 Dropbox

21 entropy

22 Ethernet

23 hardware

24input_method

25 iphonesubinfo

26 ISMs

27 keybar

28 location

29media. audio_flinger

30media. audio_policy

31media. Camera

32media. Player

33 meminfo

34 Mount

35 netstat

36network_management

37 notification

38 package

39 permission

40 phone

41 power

42 search

43 Sensor

44 simphonebook

45 statusbar

46telephony. Registry

47 throttle

48 uimode

49 usagestats

50 Vibrator

51 Wallpaper

52WiFi

53 window

Some examples:

ADB shell dumpsys wifiadb 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 }'

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.