ADB Commands List: Useful Commands With Examples (2026)
ADB commands let you control an Android phone from a Windows, macOS or Linux computer. You can install and remove apps, copy files, reboot into recovery or the bootloader, take screenshots and save logs for troubleshooting. This guide lists the ADB commands that are most useful for phone owners and repair technicians, with an example for each, and warns you before any command that deletes data.
What ADB Is
ADB (Android Debug Bridge) is Google’s command-line tool for talking to an Android device. The adb program on your computer sends commands through a small background server (TCP port 5037) to the adbd service on the phone, which carries them out.
ADB comes in the free SDK Platform-Tools package, together with fastboot. ADB works while Android or recovery is running. Fastboot works in bootloader mode and is used for flashing and bootloader unlocking. Those commands are covered in our fastboot commands list.
Requirements
- The latest SDK Platform-Tools from Google. The latest stable version is 37.0.1 (July 2026), and 37.0.3 is in Canary testing (November 2026). Google says the tools are backward compatible, so the newest version also works with older phones.
- USB debugging turned on. Open Settings > About phone, tap Build number seven times to unlock Developer options, then switch on USB debugging inside Developer options. On Samsung Galaxy phones, Build number is under About phone > Software information.
- On Windows, a USB driver for your phone. See our Android USB driver for Windows 11 guide. macOS needs no driver.
- A USB cable that carries data, not a charge-only cable.
How to Run ADB Commands
- Extract the Platform-Tools ZIP, for example to
C:\platform-tools. - Open a terminal in that folder. On Windows, open the folder in File Explorer, type
cmdin the address bar and press Enter. - Unlock the phone and connect it with the USB cable.
- Run this command:
adb devicesThe first time, the phone shows a prompt asking you to allow USB debugging from this computer. Tick Always allow from this computer and tap OK.
- Run
adb devicesagain. You should see a serial number followed by the worddevice.
In Windows PowerShell, type .\adb instead of adb. If more than one phone is connected, add -s and the serial number, for example adb -s 0a388e93 reboot. Without it, ADB stops with the error “more than one device/emulator”.
ADB Commands List
Commands that start with adb shell run a program on the phone itself. You can also type adb shell on its own to open a shell on the phone. Type exit or press Ctrl+D to leave it.
Connection and device information
| Command | What it does |
|---|---|
adb version |
Shows the ADB version on your computer. |
adb devices -l |
Lists connected phones with their state, plus product, model and device name. Useful when several phones are connected. |
adb get-state |
Prints the state: offline, bootloader or device. |
adb get-serialno |
Prints the phone’s serial number. |
adb kill-server and adb start-server |
Stops and starts the ADB server on your computer. This fixes many frozen or “offline” connections. |
adb --help |
Lists every command your ADB version supports. |
Reboot commands
| Command | What it does |
|---|---|
adb reboot |
Restarts the phone normally. |
adb reboot recovery |
Restarts into recovery mode. |
adb reboot bootloader |
Restarts into bootloader (fastboot) mode. |
adb reboot fastboot |
Restarts into fastbootd, the userspace fastboot mode that many phones with Android 10 and later use for flashing dynamic partitions such as system. |
adb reboot sideload |
Restarts into recovery and starts sideload mode automatically. adb reboot sideload-auto-reboot does the same and restarts the phone after the update. |
When the phone is in sideload mode (in stock recovery this is Apply update from ADB), install a full OTA update with:
adb sideload ota-file.zip
Use only an official OTA package made for your exact model. Google says its full OTA images for Pixel phones repair the software like a factory image, but without wiping the device or unlocking the bootloader.
App commands
| Command | What it does |
|---|---|
adb install app.apk |
Installs an APK from your computer. |
adb install -r app.apk |
Reinstalls or updates an app and keeps its data. |
adb install -d app.apk |
Allows installing an older version (debuggable apps only). |
adb install-multiple base.apk split.apk |
Installs an app that comes as several split APK files. |
adb uninstall com.example.app |
Removes the app and its data. |
adb uninstall -k com.example.app |
Removes the app but keeps its data and cache folders. |
adb shell pm list packages |
Lists all package names. Add -3 for apps you installed, -s for system apps or -d for disabled apps. Add a word to filter, for example adb shell pm list packages whatsapp. |
adb shell pm path com.example.app |
Shows where the app’s APK is stored. |
adb shell am force-stop com.example.app |
Force-stops everything belonging to the app. |
adb shell pm clear com.example.app |
Deletes all data of the app, like Clear storage in Settings. |
To switch off a preinstalled app without removing it, use:
adb shell pm disable-user --user 0 com.example.app
Undo it with adb shell pm enable com.example.app. Only disable apps you know. Disabling a core system app can make the phone unstable or stop it from starting properly.
Google’s new developer verification rules do not affect ADB. Google says apps installed with ADB do not need verification, and the 24-hour waiting period does not apply. Read more in our developer verification guide.
File transfer
adb push copies files or folders to the phone, and adb pull copies them to your computer. /sdcard is the phone’s shared internal storage.
adb push song.mp3 /sdcard/Music/
adb pull /sdcard/DCIM C:\PhoneBackup
Add -a to adb pull to keep each file’s timestamp. Pulling the DCIM folder is a quick way to back up camera photos.
Screenshots and screen recording
adb exec-out screencap -p > screen.png
This saves a screenshot straight to your computer. To record the screen:
adb shell screenrecord /sdcard/demo.mp4
adb pull /sdcard/demo.mp4
Press Ctrl+C to stop recording. Recording stops by itself after three minutes (the maximum --time-limit is 180 seconds), and sound is not recorded.
Logs and diagnostics
| Command | What it does |
|---|---|
adb logcat |
Shows the live system log. Press Ctrl+C to stop. |
adb logcat -d > log.txt |
Saves the current log to a file and exits. |
adb logcat "*:E" |
Shows only errors and fatal messages. The quotes stop some shells from changing the *. |
adb logcat -b crash |
Shows only the crash log buffer. |
adb logcat -c |
Clears the log, so you see only new messages. |
adb bugreport C:\Reports |
Saves a full bug report as a ZIP file, with system service output, error logs and the system log. Without a path it is saved in the current folder. |
Wireless ADB
Phones with Android 11 or later can use ADB over Wi-Fi without a cable:
- Connect the phone and the computer to the same Wi-Fi network.
- On the phone, open Developer options, turn on Wireless debugging and allow it on this network.
- Tap Pair device with pairing code. Note the IP address, port and six-digit code.
- On the computer, run
adb pairwith that address, for exampleadb pair 192.168.1.20:37099, and type the code when asked. - Run
adb devices. If the phone is not listed, runadb connectwith the IP address and port shown on the Wireless debugging screen.
On Android 17 with ADB 37.0.0 or later, Google’s “ADB Wi-Fi 2.0” reconnects the phone by itself on a trusted network. For phones with Android 10 or older, connect by USB first, run adb tcpip 5555, unplug the cable, then run adb connect PHONE-IP:5555.
Common ADB Errors and Fixes
‘adb’ is not recognized as an internal or external command
Windows cannot find the program. Open the terminal inside the platform-tools folder, or add that folder to your PATH. In PowerShell, use .\adb.
adb devices shows an empty list
Unlock the phone, check that USB debugging is on, and try another cable and USB port. On Windows, install the right USB driver. On Samsung Galaxy phones, Auto Blocker blocks commands sent over a USB cable. Turn it off for a while in Settings > Security and privacy > Auto Blocker, then turn it back on when you finish.
The phone shows as “unauthorized”
The phone has not accepted this computer yet. Unlock the screen and look for the USB debugging prompt. If it does not appear, use the option to revoke USB debugging authorizations in Developer options, unplug the cable, run adb kill-server and connect again.
The phone shows as “offline”
The phone is not responding to ADB. Run adb kill-server, then adb devices. If that fails, reconnect the cable or restart the phone.
“adbd cannot run as root in production builds”
You ran adb root on a normal retail phone. This command only works on debuggable builds. None of the other commands in this guide need root.
Related Guides
- Fastboot Commands List Explained (With Examples)
- Android USB Driver for Windows 11 (All Major Brands)
- Android Developer Verification: What Changes for Sideloading
- All In One Samsung USB Driver for Mobile Phones
- Phone Stuck in a Boot Loop? Universal Fixes for Android Phones
FAQ
What is the difference between ADB and fastboot?
ADB works while Android or recovery is running, and needs USB debugging. Fastboot works only in bootloader or fastbootd mode and is used to flash partitions and unlock the bootloader. Both tools come in SDK Platform-Tools.
Do ADB commands need root?
No. Everything in this list works on a normal phone without root. Retail phones refuse adb root with the message “adbd cannot run as root in production builds”.
Which ADB commands delete data?
In this guide, adb uninstall (without -k) removes an app with its data, and adb shell pm clear erases an app’s data. Disabling system apps does not delete data, but it can cause problems. The other commands only read information, copy files or restart the phone.
Does ADB work on Samsung Galaxy phones?
Yes. Turn on USB debugging, turn off Auto Blocker while you work, and on Windows install the Samsung Android USB Driver (version 1.9.5.0, May 2026). Flashing firmware on Galaxy phones is different: it uses Download mode and Odin, not ADB.
Can I use ADB on a phone with a broken screen?
Only if USB debugging was already on and the computer was already allowed. For security, the phone must be unlocked and you must accept the prompt on the screen before a new computer can run ADB commands.
https://droid-developers.com/adb-commands-list/https://droid-developers.com/wp-content/uploads/2026/11/adb-commands-list-featured-1024x538.jpghttps://droid-developers.com/wp-content/uploads/2026/11/adb-commands-list-featured-150x150.jpgDriverHelp & TroubleshootingHow ToADB commands let you control an Android phone from a Windows, macOS or Linux computer. You can install and remove apps, copy files, reboot into recovery or the bootloader, take screenshots and save logs for troubleshooting. This guide lists the ADB commands that are most useful for phone owners...Fahim MahmudFahim Mahmud[email protected]AdministratorDroid-Developers
Leave a Reply