One page per command: the syntax, examples worth copying, what the output means field by field, and a link to the tool on this site that runs it for you.
Prefix any of these with adb shell from your own machine, or type them straight into a device shell.
Packages (pm)
- pm list packages
Lists installed packages, optionally with the APK path, uid, version code and installer.
- pm path
Prints the absolute paths of the APK files that make up an installed package.
- pm uninstalldestructive
Removes a package, or removes it for one Android user only — which is how a preinstalled app is disposed of without root.
- pm disable-userchanges the device
Switches a package off for one Android user without removing it — the reversible alternative to uninstalling.
- pm cleardestructive
Wipes an app's data — or, on Android 13 and later, only its cache.
- pm trim-caches
Asks the system to drop cached files until the given amount of free space exists.
- pm installchanges the device
Installs one APK that is already on the device, which is what `adb install` does under the hood.
- pm install-createchanges the device
Opens an install session so several APKs — a base plus its splits — are installed as one atomic unit.
Activities and intents (am)
- am start
Starts an activity by component or by intent — the fastest way to test whether a deep link resolves.
- am broadcastchanges the device
Sends a broadcast intent, which is how SystemUI demo mode and other platform receivers are driven from a shell.
- am force-stopchanges the device
Kills every process and service belonging to one app.
System services (dumpsys)
- dumpsys battery
The battery service's live state: level, status, health, voltage and temperature.
- dumpsys diskstats
Free space per partition, a disk write latency check, and a cached per-app breakdown of what is using storage.
- dumpsys thermalservice
Whether the phone is throttling, and every thermal zone the hardware layer reports, in degrees Celsius.
- dumpsys sensorservice
Every sensor the phone has, with its vendor, type, rates and batching — plus a buffer of recent readings.
- dumpsys meminfo
Which processes are using the most memory, measured as proportional set size.
- dumpsys package
Everything the package manager knows about one app: version, paths, flags, install source and per-user state.
- dumpsys activity activities
Which app is in the foreground, and the task and stack structure behind it.
- dumpsys dropbox
The platform's ring buffer of crashes, ANRs and tombstones — how you read ANR traces without root.
Settings provider
Input and touch
Display and capture
- wm sizechanges the device
Reports the display's resolution, or overrides it so the phone pretends to be a different screen.
- wm densitychanges the device
Reports the display density, or overrides it — which is what actually moves a layout breakpoint.
- screencap
Takes a screenshot, either to a file on the phone or to standard output as PNG.
- screenrecord
Records the screen to an MP4 file on the device.
Files and storage
System and logs
- top
A one-shot process table: CPU share, memory, state and command line.
- getprop
Prints the system properties — the phone's own answer to what it is.
- logcat
Streams the system log: the running commentary of everything happening on the phone.
- run-as
Runs a command as one app's own uid — the way to read a debug build's private files without root.