How to Set up and Use ADB, the Android Debug Bridge Utility

How to Set up and Use ADB, the Android Debug Bridge Utility


Android logo ADB

To put in and use Android Debug Bridge Utility (ADB), download the platform instruments from the ADB page and extract them any place. Open up the Configurations application on your phone, go to the “Method” web site, faucet the establish button 7 periods, and join your phone to your Pc. Open up PowerShell, navigate to the system instruments folder, then operate any adb command.

ADB, Android Debug Bridge, is a command-line utility incorporated with Google’s Android SDK. ADB can manage your product over USB from a personal computer, duplicate documents back again and forth, put in and uninstall applications, run shell instructions, and additional.

We have covered some other tricks that involve ADB in the previous, like backing up and restoring your smartphone or tablet and setting up Android applications to your SD card by default. ADB is applied for a wide variety of geeky Android tricks.

Move One: Obtain System Tools

Download Platform Tools.

Head to the Android SDK System Applications obtain webpage. Select the url for your functioning technique from the “Downloads” segment. This will download a ZIP file, which you can unzip where ever you want to retailer the ADB files–they’re portable, so you can place them any where you want.

That is all we have to do for now. Just make certain to try to remember where by you unzipped the information, we will need to have to accessibility that later.

Step Two: Enable USB Debugging on Your Mobile phone

To use ADB with your Android unit, you have to empower a function identified as “USB Debugging.” Open up your phone’s application drawer, tap the Options icon, and select “About Phone”. Scroll all the way down and faucet the “Build Number” merchandise seven occasions. You must get a message saying you are now a developer.

Head again to the major Configurations website page, and you should see a new alternative in the “System” segment termed “Developer Options.” Open up that, and allow “USB Debugging.”

Enable USB Debugging.

Afterwards on, when you link your cellular phone to your pc, you’ll see a popup entitled “Allow USB Debugging?” on your cellphone. Examine the “Always allow for from this computer” box and tap Okay.

Action 3: Test ADB and Set up Your Phone’s Drivers (if Desired)

Open up the Command Prompt (PowerShell and Terminal will also do the job) and improve the directory to in which you unzipped the file previously. You can do this by moving into the command under. Switch the file vacation spot with your have:

CD C:”Program Files”platform-instruments

To take a look at regardless of whether ADB is functioning appropriately, link your Android product to your personal computer employing a USB cable and run the subsequent command:

adb equipment

Observe: If you are making use of PowerShell or the Terminal with a PowerShell profile, you are going to will need to operate ./adb products as an alternative.

Run ".\adb devices" to list connected Android phones.

You ought to see a product in the record. If your gadget is related but nothing at all appears in the listing, you are going to need to have to install the acceptable drivers.

In the broad majority of cases, your Computer system will routinely detect your phone and established it up with the suitable drivers. If that doesn’t materialize, you can usually find the drivers for your product from the XDA Builders forums or your manufacturer’s site. The motorists for Google gadgets, like Pixel telephones, can be discovered on Google’s web-site. Google also has a record of USB motorists sorted by manufacturer that will help you save you a ton of time.

Be aware: Make absolutely sure to cautiously stick to the directions for installing your device’s drivers if distinct recommendations are provided. 

If you down load the drivers manually, you may have to pressure Windows to come across them on your unit. Open the System Supervisor (click Start, form “Device Manager”, and push Enter), identify your machine, right-click on it, and pick out Attributes. You may see a yellow exclamation mark next to the device if its driver isn’t installed appropriately.

See also  Altering when you consume your energy will not adjust body weight reduction

On the Driver tab, click “Update Driver.”

Use the Search my pc for driver software package choice.

Discover the motorists you downloaded for your system.

Be aware: If you downloaded the motorists from your OEM or Google, look for an executable or INF file in the motorists folder.

The moment you have installed your device’s drivers, plug in your cellular phone and consider the adb products command once again:

adb equipment


./adb products

If all went properly, you ought to see your product in the listing, and you are completely ready to start out applying ADB!

If functioning adb products however will not return any products, there are a couple of items you can try out:

  • Swap out your USB cable for a greater good quality a person
  • Plug the USB cable into a different port
  • Plug the USB cable immediately into the USB ports on your motherboard (at the back again), rather than the ports on the front of your Laptop or on a USB hub.
  • Improve your phone’s USB manner to PTP, MTP (File Transfer/Android Auto), or USB Tethering.

Step 4 (Optional): Insert ADB to Your Technique Route

As it stands, you have to navigate to ADB’s folder and open a Command Prompt there any time you want to use it. However, if you insert it to your Home windows Process Path, that will not be necessary–you can just style adb from the Command Prompt to operate commands when you want, no issue what folder you’re in.

The process is a bit different on Home windows 11, 10, and 7, so check out our whole information to modifying your Process Path for the steps demanded to do this.

Associated: How to Edit Your System Path for Easy Command Line Access in Home windows

Beneficial ADB Instructions

In addition to the wide variety of methods that need ADB, ADB provides some practical instructions:

  • adb set up C:offer.apk — Installs the deal found at C:package.apk on your laptop or computer on your machine.
  • adb uninstall — Uninstalls the package with from your gadget. 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 laptop to your device. For instance, the command below pushes the file situated at C:file on your pc to /sdcard/file on your machine
  • adb pull /sdcard/file C:file — Pulls a file from your product to your personal computer — functions like adb drive, but in reverse.
  • adb logcat — View your Android device’s log. Can be practical for debugging applications.
  • adb shell — Presents you an interactive Linux command-line shell on your device.
  • adb shell command — Operates the specified shell command on your product.

For a complete manual to ADB, seek advice from the Android Debug Bridge web site on Google’s Android Developers website.

Leave a Reply

Your email address will not be published. Required fields are marked *