Swift Headline
Latest News and Updates

How to Install and Use ADB, the Android Debug Bridge Utility

ADB, Android Debug Bridge, is a command-line utility included with Google’s Android SDK. ADB can control your device over USB from a computer, copy files back and forth, install and uninstall apps, run shell commands, and more.

We’ve covered some other tricks that require ADB in the past, including backing up and restoring your smartphone or tablet and installing Android apps to your SD card by default. ADB is used for a variety of geeky Android tricks.

Step One: Download Platform Tools

Download Platform Tools.

Head to the Android SDK Platform Tools download page. Select the link for your operating system from the “Downloads” section. This will download a ZIP file, which you can unzip wherever you want to store the ADB files–they’re portable, so you can put them anywhere you want.

That’s all we have to do for now. Just make sure to remember where you unzipped the files, we will need to access that later.

Step Two: Enable USB Debugging on Your Phone

To use ADB with your Android device, you must enable a feature called “USB Debugging.” Open your phone’s app drawer, tap the Settings icon, and select “About Phone”. Scroll all the way down and tap the “Build Number” item seven times. You should get a message saying you are now a developer.

Head back to the main Settings page, and you should see a new option in the “System” section called “Developer Options.” Open that, and enable “USB Debugging.”

Enable USB Debugging.

Later on, when you connect your phone to your computer, you’ll see a popup entitled “Allow USB Debugging?” on your phone. Check the “Always allow from this computer” box and tap OK.

Step Three: Test ADB and Install Your Phone’s Drivers (if Needed)

Open the Command Prompt and change the directory to where you unzipped the file earlier. You can do this by entering the command below. Replace the file destination with your own:

CD C:Program Filesplatform-tools

To test whether ADB is working properly, connect your Android device to your computer using a USB cable and run the following command:

adb devices

You should see a device in the list. If your device is connected but nothing appears in the list, you’ll need to install the appropriate drivers.

In the vast majority of cases, your PC will automatically detect your phone and set it up with the appropriate drivers. If that doesn’t happen, you can usually find the drivers for your device from the XDA Developers forums.

If you download the drivers manually, you may have to force Windows to find them on your device. Open the Device Manager (click Start, type “Device Manager”, and press Enter), locate your device, right-click it, and select Properties. You may see a yellow exclamation mark next to the device if its driver isn’t installed properly.

Right-click on your device in Windows Device Manager and select "Properties"

On the Driver tab, click “Update Driver.”

Click the "Update Drive" button in the Drive tab

Use the Browse my computer for driver software option.

Click on the "Browse my computer for driver software" button

Find the drivers you downloaded for your device.

Locate the drivers you downloaded and select "Next"

Once you’ve installed your device’s drivers, plug in your phone and try the adb devices command again:

adb devices

If all went well, you should see your device in the list, and you are ready to start using ADB!

Step Four (Optional): Add ADB to Your System PATH

As it stands, you have to navigate to ADB’s folder and open a Command Prompt there whenever you want to use it. However, if you add it to your Windows System PATH, that won’t be necessary–you can just type adb from the Command Prompt to run commands whenever you want, no matter what folder you’re in.

The process is a bit different on Windows 11, 10, and 7, so check out our full guide to editing your System PATH for the steps required to do this.

RELATED: How to Edit Your System PATH for Easy Command Line Access in Windows

Useful ADB Commands

In addition to the variety of tricks that require ADB, ADB offers some useful commands:

adb install C:package.apk — Installs the package located at C:package.apk on your computer on your device.

adb uninstall package.name — Uninstalls the package with package.name from your device. For example, you’d use the name com.rovio.angrybirds to uninstall the Angry Birds app.

adb push C:file /sdcard/file — Pushes a file from your computer to your device. For example, the command here pushes the file located at C:file on your computer to /sdcard/file on your device

adb pull /sdcard/file C:file — Pulls a file from your device to your computer — works like adb push, but in reverse.

adb logcat — View your Android device’s log. Can be useful for debugging apps.

adb shell — Gives you an interactive Linux command-line shell on your device.

adb shell command — Runs the specified shell command on your device.


For a full guide to ADB, consult the Android Debug Bridge page on Google’s Android Developers site.

Read original article here

Denial of responsibility! Swiftheadline is an automatic aggregator around the global media. All the content are available free on Internet. We have just arranged it in one platform for educational purpose only. In each content, the hyperlink to the primary source is specified. All trademarks belong to their rightful owners, all materials to their authors. If you are the owner of the content and do not want us to publish your materials on our website, please contact us by email – admin@swiftheadline.com. The content will be deleted within 24 hours.

Facebook Notice for EU! You need to login to view and post FB Comments!

Leave a comment