How-To Geek

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: Set Up the Android SDK

Head to the Android SDK download page and scroll down to “SDK Tools Only”, which is a set of tools that includes ADB. Download the ZIP file for your platform and unzip it wherever you want to store the ADB files–they’re portable, so you can put them anywhere you want.

Start the SDK Manager EXE and deselect everything except “Android SDK Platform-tools”. If you are using a Nexus phone, you may also want to select “Google USB Driver” to download Google’s drivers. Click the Install button. This downloads and installs the platform-tools package, which contains ADB and other utilities.


When it’s finished, you can close the SDK manager.

Step Two: Enable USB Debugging on Your Phone

usb_debuggingTo 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 near the bottom called “Developer Options”. Open that, and 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 folder that you installed the SDK tools in and open the platform-tools folder. This is where the ADB program is stored. Hold Shift and right-click inside the folder. Choose “Open Command Window Here”.


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.

Your phone’s manufacturer may provide a downloadable driver package for your device. So head to their website and find the drivers for your device–Motorola’s are here, Samsung’s are here, and HTC’s come as part of a suite called HTC Sync Manager. You can also search XDA Developers for driver downloads without the extra software.

You can also try installing the Google USB Driver from the Extras folder in the SDK Manager window, as we mentioned in the first step. This will work with some phones including Nexus devices.


If you use Google’s USB driver, you may have to force Windows to use the installed drivers for 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.


On the Driver tab, click Update Driver.


Use the Browse my computer for driver software option.


You’ll find the Google USB Driver in the “Extras” folder where you installed your Android SDK files. Select the google\usb_driver folder and click 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 7 and 10, so check out our full guide to editing your System PATH for the steps required to do this.

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 – Uninstalls the package with 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.

Image Credit: LAI Ryanne on Flickr

Chris Hoffman is a technology writer and all-around computer geek. He's as at home using the Linux terminal as he is digging into the Windows registry. Connect with him on Google+.

  • Published 10/3/12

Comments (5)

  1. Arpit Jain

    ADB not ABD … :P title check ..
    cool stuff was a nice read :)

  2. PhoenixPath

    ADB, the 100,000 times easier method:

    Install WugFresh’s “Nexus Toolkit” from here:

    Open folder the toolkit installed to and create a shortcut to the ‘Data” folder inside it on your desktop.

    Now, whenever you need to do some ADB wizardry, simply right-click on the folder-shortcut while holding down the shift key and select, “Open command window here”.

    From the DOS Window that opens, enter any ADB commands you like.

    Easy Peasy.

  3. Stephan

    It isn’t a good idea to keep USB Debugging on when your not using it, someone can install all they want without unlocking it. O yea they can do that too.

    Just sayin…

  4. Bob Buckheit

    I have written a Java app using the information supplied here and everything works very nicely. Now I have to package the app into webstart for distribution and I cannot figure how to specify how to get to ADB in the jnlp. Do you have any suggestions?

  5. Jim

    Here is where I am getting held up:

    “With the Java JDK installed, you can now download the Android SDK from Google and install it on your computer.”

    When I download the ADT bundle from the link provided, it comes as a large .zip fie with two sub-files, “eclipse” and “SDK”. No installer. I try to run Eclipse.exe from the eclipse folder but it generates an error, I am assuming at this point because I was not able to go through the installation process? Or is running eclipse.exe for the first time supposed to take me through an installation process? This is where I am stalled out. Any information is greatly appreciated.

More Articles You Might Like

Enter Your Email Here to Get Access for Free:

Go check your email!