Android provides the Dumpsys tool can be used to view the phone application and system services information and status, the phone connected to the computer can be directly command line execution adb shell Dumpsys view all supported services but so much of the output, can be through the Dumpsys | grep "DUMP of Service" displays only the information for the primary SERVICE. The use of this command is to make a record here for use.
1. All command input supported by Dumpsys:
ADB Shell Dumpsys | grep DUMP
Or
ADB Shell Dumpsys | grep "DUMP of SERVICE"
Lists all the Dumpsys parameters supported by the current phone:
DUMP of service Exynos.HWCService:DUMP of service surfaceflinger:dump of service access_control:dump of service Accessibil Ity:dump of service Account:dump of service activity:dump of service alarm:dump of service Android.security.keystore:DUMP of service Appops:dump of service appwidget:dump of service audio:dump of service backup:dump of service Battery:dump of S Ervice Batterypropreg:dump of service batterystats:dump of service bluetooth_manager:dump of service Blurglassinfo:dump O F Service Clipboard:dump of service Com.meizu.nfc.NxpExt:DUMP of service commontime_management:dump of service Connectivi Ty:dump of service Consumer_ir:dump of service content:dump of service country_detector:dump of service Cpuinfo:dump of SE Rvice Dbinfo:dump of service deivce_states:dump of service device_policy:dump of service Devicestoragemonitor:dump of SERV ICE Diskstats:dump of service display:dump of service dreams:dump of service Drm.drmManager:DUMP of service Dropbox:dump O F SERVICE Entropy:dump ofService Gesture_manager:dump of service gfxinfo:dump of service hardware:dump of service input:dump of service Input_metho D:dump of service Iphonesubinfo:dump of service isms:dump of service location:dump of service Lock_settings:dump of Servic E Media.audio_flinger:DUMP of service Media.audio_policy:DUMP of service Media.camera:DUMP of service Media.player:DUMP O F Service Media_router:dump of service Meizu.camera:DUMP of service meminfo:dump of service mount:dump of service Netpolic Y:dump of service Netstats:dump of service network_management:dump of service nfc:dump of service Notification:dump of SER VICE Package:dump of service permission:dump of service phone:dump of service phone_ext:dump of service Power:dump of SERV ICE Pppoe:dump of service print:dump of service procstats:dump of service samba_client:dump of service Samba_server:dump O F Service Samplingprofiler:dump of service scheduling_policy:dump of service search:dump of service Secloader:dump of SERV ICE Secloader2:dump of SERvice Secsystemserver:dump of service sensorservice:dump of service serial:dump of service Servicediscovery:dump of SERVIC E Simphonebook:dump of service sip:dump of service statusbar:dump of service Telephony.registry:DUMP of service Textservic Es:dump of service Uimode:dump of service updatelock:dump of service usagestats:dump of service usb:dump of service User:d UMP of service Vibrator:dump of service voicesense:dump of service wallpaper:dump of service Wifi:dump of service wifip2p: DUMP of SERVICE window:
2. How to view Help for specific commands
From the above you can see that there are very many service, the "DUMP of service" keyword after the word can be directly through the Dumpsys + words to see the relevant information, each how to use a common way to view Help.
See the Help for each command, as shown in the activity example:
ADB shell Dumpsys activity-hactivity Manager Dump options: [-A] [-c] [-h] [cmd] ... cmd May is one of:a[ctivities]: Activity stack state b[roadcasts] [package_name] [history [-S]]: Broadcast state i[ntents] [package_name]: Pending Intent state p[rocesses] [package_name]: Process state O[om]: Out of memory management prov[iders] [Comp_spec.. .]: Content provider state provider [COMP_SPEC]: Provider Client-side State s[ervices] [comp_spec ...]: Service stat e service [Comp_spec]: Service client-side State Pack [Package_name]: All state related to given package all: Dump all activities top:dump the top activity, CMD may also is a comp_spec to dump activities. Comp_spec May is a component name (Com.foo/.myapp), a partial substring in a component name, a hex object identifier . -a:include all available server state. -c:include client state.
This makes it clear how each named usage and the corresponding output information is viewed.
3, some common command explanation
ADB shell Dumpsys Activity: Displays information about the activity, including the task stack, etc.;
ADB shell Dumpsys Surfaceflinger: View the various levels of UI drawing information
adb Shell Dumpsys window: Displays the keyboard, Windows, and their relationships
ADB shell Dumpsys statusbar: Display status bar related information
ADB shell Dumpsys usagestats: Number of launches and times per app
adb shell Dumpsys Battery: battery information
ADB shell Dumpsys diskstats: disk-related information
ADB shell Dumpsys Alarm: Display alarm information
adb shell Dumpsys WiFi: Show WiFi info
4. Reference materials:
Http://www.open-open.com/lib/view/open1405061994872.html
Https://source.android.com/devices/tech/input/dumpsys.html
Use of the Android dumpsys command