Ultimate ADB Commands Cheat Sheet
A comprehensive printable reference sheet of essential Android Debug Bridge commands for daily development and testing.
Device Connection & Status
| Command | Purpose |
|---|---|
| adb devices -l | List all attached devices with model details |
| adb connect <IP>:5555 | Connect to device over Wi-Fi network |
| adb disconnect | Disconnect from all wireless devices |
| adb kill-server | Kill background ADB daemon |
| adb start-server | Start background ADB daemon |
| adb reboot | Reboot device into normal OS |
| adb reboot bootloader | Reboot into Bootloader / Fastboot |
| adb reboot recovery | Reboot into Android Recovery mode |
Package & App Management
| Command | Purpose |
|---|---|
| adb install -r app.apk | Reinstall app retaining data and cache |
| adb install -r -g app.apk | Reinstall and auto-grant all permissions |
| adb uninstall com.app | Uninstall app and delete data |
| adb shell pm list packages -3 | List third-party user apps |
| adb shell pm path com.app | Get APK file path on storage |
| adb shell pm clear com.app | Clear all user data and reset app |
| adb shell am force-stop com.app | Immediately terminate app processes |
File Transfers & Storage
| Command | Purpose |
|---|---|
| adb push local.txt /sdcard/Download/ | Upload file to phone |
| adb pull /sdcard/file.txt ./ | Download file to computer |
| adb shell df -h | Check partition free disk space |
| adb shell ls -la /sdcard/ | List storage directory contents |
Logs & Diagnostics
| Command | Purpose |
|---|---|
| adb logcat *:E | Stream only error and fatal logs |
| adb logcat -c | Clear circular log buffer |
| adb logcat -b crash -d | Dump recent application crash traces |
| adb shell dumpsys battery | Inspect battery health, temp, and level |