12/03/2010

Using dumpsys commands in the Android adb shell

To begin using the following commands, first start a shell with a terminal application or use the adb shell command.

dumpsys gives a wealth of information about the applications on the phone, and the current state of the phone. Without any subcommand, it gives you everything.

dumpsys meminfo displays memory usage

dumpsys cpuinfo displays processor usage

dumpsys account displays information on all accounts

dumpsys activity displays information about activities

dumpsys window displays information about keyboards, windows and their z order

dumpsys wifi shows information about available access points and current connection


I just realized that the quick way to see all of the "subcommands" of dumpsys is to do:

dumpsys | grep DUMP

Note: After running this command on my HTC Droid Incredible the following output was produced. I have added a 0 by those commands which produced no output:

DUMP OF SERVICE SurfaceFlinger:
DUMP OF SERVICE VZW_LOCATION_SERVICE:
DUMP OF SERVICE accessibility:0
DUMP OF SERVICE account:
DUMP OF SERVICE activity:
DUMP OF SERVICE alarm:
DUMP OF SERVICE appwidget:
DUMP OF SERVICE audio:
DUMP OF SERVICE backup:
DUMP OF SERVICE battery:
DUMP OF SERVICE batteryinfo:
DUMP OF SERVICE bluetooth:
DUMP OF SERVICE bluetooth_a2dp:0
DUMP OF SERVICE bluetooth_dg_service:0
DUMP OF SERVICE bluetooth_fm_receiver_service:0
DUMP OF SERVICE clipboard:0
DUMP OF SERVICE connectivity:
DUMP OF SERVICE content:
DUMP OF SERVICE cpuinfo:
DUMP OF SERVICE device_policy:
DUMP OF SERVICE devicestoragemonitor:0
DUMP OF SERVICE diskstats:
DUMP OF SERVICE dropbox:
DUMP OF SERVICE entropy:0
DUMP OF SERVICE hardware:0
DUMP OF SERVICE htc_checkin:0
DUMP OF SERVICE htchardware:0
DUMP OF SERVICE input_method:
DUMP OF SERVICE iphonesubinfo:
DUMP OF SERVICE isms:0
DUMP OF SERVICE location:
DUMP OF SERVICE media.audio_flinger:
DUMP OF SERVICE media.audio_policy:
DUMP OF SERVICE media.camera:
DUMP OF SERVICE media.player:
DUMP OF SERVICE meminfo:
DUMP OF SERVICE mount:0
DUMP OF SERVICE netstat:
DUMP OF SERVICE network_management:0
DUMP OF SERVICE notification:
DUMP OF SERVICE package:
(garbage snipped)
DUMP OF SERVICE permission:0
DUMP OF SERVICE phone:0
DUMP OF SERVICE power:
DUMP OF SERVICE search:0
DUMP OF SERVICE sensor:
DUMP OF SERVICE simphonebook:0
DUMP OF SERVICE statusbar:
DUMP OF SERVICE telephony.registry:
DUMP OF SERVICE throttle:
DUMP OF SERVICE uimode:
DUMP OF SERVICE usagestats:
DUMP OF SERVICE vibrator:0
DUMP OF SERVICE wallpaper:
DUMP OF SERVICE wifi:
DUMP OF SERVICE window:

2 comments:

Patricia, AKA: PattieCakes said...

You are awesome Tekshark!!!

Patricia

Sagar Ghuge said...

Hi i want to know the aspect ratio of picture when video is playing in any player in android using adb how do i get this result? as we know MXplayer support to change aspect ratio for ex. 100%,200%,fit to screen,crop. how do i get to know that is it 100% or fit to screen using adb.

About Me - WrightRocket

My photo

I've worked with computers for over 30 years, programming, administering, using and building them from scratch.

I'm an instructor for technical computer courses, an editor and developer of training manuals, and an Android developer.