Complete Guide to ADB Commands: From Beginner to Master of the Android Debug Bridge

Last update: 20 June, 2026
  • The Android Debug Bridge is a client-server tool that enables advanced communication between a computer and an Android device.
  • Its functionality ranges from application management and file transfer to deep system control through the Unix shell.
  • It allows you to perform critical maintenance tasks such as flashing partitions via Fastboot or automating quality tests.

ADB commands for all users

If you've ever felt limited by your smartphone's standard options, you've probably heard of ADB. This tool, whose real name is Android Debug Bridge , is essentially a bridge that lets you give direct commands to your device's core from your computer keyboard. You don't need to be a NASA programmer to use it, although you do need to be comfortable navigating the command line, since there are no fancy buttons here, just lines of text that execute powerful actions.

The most interesting thing is that ADB becomes the ideal alternative when you don't want the hassle of rooting your device , as it allows you to grant special permissions to apps, manually install updates, or even record your screen without installing extra bloatware. However, a little friendly advice: if you're just starting out and don't want any unpleasant surprises, don't do these tests on your main phone ; use a secondary one to experiment with the system's inner workings without fear of bricking it.

How to get ADB up and running on your computer?

For the magic to happen, the first step is to prepare your phone. Go to Settings, then About phone , and tap Build number ten times in a row . This unlocks the secret Developer options menu. Once inside, find the Debugging section and enable USB debugging . Accept any security warnings that appear, otherwise your computer will never recognize the device.

Regarding the computer, although we'll use Windows as it's the most common, the steps are very similar on Mac or Linux. The smartest thing to do is download the Platform Tools separately. While Android Studio is a behemoth of over 1 GB, the standalone ADB tool weighs barely 6 MB . You just need to extract the ZIP file to an easy-to-find folder, like C:\ADB, so you don't get lost navigating directories in the console.

The moment of truth arrives when you connect the cable. Open Command Prompt (CMD) and navigate to your folder using the command `cd C:\ADB` . When you type `adb devices` , you should see an alphanumeric code; this means the connection is established. If your phone asks for permission to authorize debugging , say yes and check the box to remember the computer so you don't have to do it every time.

How to use ADB wirelessly on Android 11 or higher
Related articles:
How to use ADB wirelessly on Android 11 or higher

Mastering the essential ADB commands

Once you have control, there are a few commands you absolutely must know. To move files, we use `adb push` when we want to send something from the PC to the mobile device, and `adb pull` to extract files from the device to our computer. If you need to install an external application, the command is `adb install` , while to remove it we use `adb uninstall`.

For those seeking more technical control, `adb shell` is the gateway to a Unix terminal within Android, allowing you to execute system commands directly. If your device freezes or you want to change modes, you have the following reboot commands: `adb reboot` for a normal boot, `adb reboot recovery` to enter the recovery menu, and `adb reboot bootloader` to access fastboot mode.

There are more unusual functions that can save the day. For example, to take a quick screenshot without touching your phone, you can run `adb shell screencap -p /sdcard/captura.png` . There's also `adb logcat` , which is essential for developers as it keeps a detailed log of everything that happens on the system , allowing them to analyze why an application closes unexpectedly.

The world of Fastboot and Bootloader management

When you reboot your phone into bootloader mode, ADB gives way to Fastboot . This tool is much more aggressive because it works before the operating system boots. The command `fastboot devices` confirms the connection, while `fastboot oem device-info` will tell you if the bootloader is locked or unlocked (by looking for the word `true` or `false` ).

If you want to unlock your device, use `fastboot oem unlock-go` , but be careful because this usually erases all the data on your phone for security reasons. For those installing custom ROMs, the go-to command is `fastboot flash` followed by the partition (such as `boot`, `system`, or `recovery`) and the .img file. You can also use `fastboot boot` to temporarily load an image without writing it to internal storage, which is ideal for testing kernels. If you're having problems, consult the guide on exiting fastboot mode and troubleshooting boot loops.

Advanced administrators: PM, AM, and DPM

Within the ADB shell, there are three key tools. First is the Package Manager (pm) , which is used to manage apps. With it, you can list installed packages with `pm list packages` , clear an app's data with `pm clear` , or even remove pre-installed Android system apps from the manufacturer using ADB.

Next, we have the Activity Manager (am) , which acts as the system's conductor. It allows you to force an app to stop with `am force-stop` or start specific activities using intents. It's extremely useful for automating tasks or testing how an application reacts to certain events without having to physically interact with the screen.

Finally, the Device Policy Manager (dpm) is geared towards enterprise management. It allows you to define who owns the device with `set-device-owner` or manage work profiles. It's a powerful tool that ensures the device complies with certain organizational security policies.

Wireless connectivity and cutting-edge tricks

You no longer have to be tethered to a cable. In modern versions of Android, there's Wireless Debugging . You just need your PC and phone on the same Wi-Fi network, enable the option in the developer menu, and use ADB wirelessly on Android 11 or higher by using the `adb pair` command with the provided pairing code. This eliminates the typical problems of faulty USB drivers or failing cables.

For Android 17 and later users, ADB Wi-Fi 2.0 introduces automatic connection to trusted networks. Additionally, there's Burst Mode , an experimental feature that accelerates large file transfers and reduces latency, making communication much smoother by not waiting for the previous packet's response before sending the next.

Why do apps suddenly close on Android?
Related articles:
How to remove pre-installed system apps without rooting

For multimedia enthusiasts, the `screenrecord` command lets you record your screen in MPEG-4 format. You can adjust the bitrate with `--bit-rate` or set a maximum recording time with `--time-limit`. It's the cleanest way to create tutorials or report visual errors without the recording software impacting your device's performance. Share this guide so other users can learn about it.