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

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

Published on

spot_img


To put in and use Android Debug Bridge Utility (ADB), obtain the platform instruments from the ADB web page and extract them anyplace. Open the Settings app in your cellphone, go to the “System” web page, faucet the construct button seven instances, and join your cellphone to your PC. Open PowerShell, navigate to the platform instruments folder, then run any adb command.

ADB, Android Debug Bridge, is a command-line utility included with Google’s Android SDK. ADB can management your gadget over USB from a pc, copy information forwards and backwards, set up and uninstall apps, run shell instructions, and extra.

We’ve coated another tips that require ADB up to now, together with backing up and restoring your smartphone or pill and putting in Android apps to your SD card by default. ADB is used for quite a lot of geeky Android tips.

Step One: Obtain Platform Instruments

Download Platform Tools.

Head to the Android SDK Platform Instruments obtain web page. Choose the hyperlink on your working system from the “Downloads” part. This can obtain a ZIP file, which you’ll unzip wherever you need to retailer the ADB information–they’re moveable, so you possibly can put them anyplace you need.

That’s all we have now to do for now. Simply be certain that to recollect the place you unzipped the information, we might want to entry that later.

Step Two: Allow USB Debugging on Your Telephone

To make use of ADB together with your Android gadget, you need to allow a function known as “USB Debugging.” Open your cellphone’s app drawer, faucet the Settings icon, and choose “About Telephone”. Scroll all the best way down and faucet the “Construct Quantity” merchandise seven instances. You need to get a message saying you at the moment are a developer.

Head again to the primary Settings web page, and you need to see a brand new possibility within the “System” part known as “Developer Choices.” Open that, and allow “USB Debugging.”

Enable USB Debugging.

In a while, whenever you join your cellphone to your laptop, you’ll see a popup entitled “Permit USB Debugging?” in your cellphone. Verify the “At all times permit from this laptop” field and faucet OK.

Step Three: Take a look at ADB and Set up Your Telephone’s Drivers (if Wanted)

Open the Command Immediate (PowerShell and Terminal may even work) and alter the listing to the place you unzipped the file earlier. You are able to do this by getting into the command beneath. Change the file vacation spot with your personal:

CD C:”Program Recordsdata”platform-tools

To check whether or not ADB is working correctly, join your Android gadget to your laptop utilizing a USB cable and run the next command:

adb gadgets

Notice: When you’re utilizing PowerShell or the Terminal with a PowerShell profile, you’ll must run ./adb gadgets as a substitute.

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

You need to see a tool within the listing. In case your gadget is related however nothing seems within the listing, you’ll want to put in the suitable drivers.

Within the overwhelming majority of instances, your PC will robotically detect your cellphone and set it up with the suitable drivers. If that doesn’t occur, you possibly can normally discover the drivers on your gadget from the XDA Builders boards or your producer’s web site. The drivers for Google gadgets, like Pixel telephones, could be discovered on Google’s web site. Google additionally has an inventory of USB drivers sorted by producer that can prevent a ton of time.

Notice: Be certain to fastidiously observe the directions for putting in your gadget’s drivers if particular directions are supplied. 

When you obtain the drivers manually, you might need to drive Home windows to search out them in your gadget. Open the System Supervisor (click on Begin, sort “System Supervisor”, and press Enter), find your gadget, right-click it, and choose Properties. You might even see a yellow exclamation mark subsequent to the gadget if its driver isn’t put in correctly.

On the Driver tab, click on “Replace Driver.”

Use the Browse my laptop for driver software program possibility.

Discover the drivers you downloaded on your gadget.

Notice: When you downloaded the drivers out of your OEM or Google, search for an executable or INF file within the drivers folder.

When you’ve put in your gadget’s drivers, plug in your cellphone and check out the adb gadgets command once more:

adb gadgets

Or:

./adb gadgets

If all went nicely, you need to see your gadget within the listing, and you might be prepared to begin utilizing ADB!

If operating adb gadgets nonetheless received’t return any gadgets, there are some things you possibly can strive:

  • Swap out your USB cable for the next high quality one
  • Plug the USB cable into a special port
  • Plug the USB cable straight into the USB ports in your motherboard (on the again), fairly than the ports on the entrance of your PC or on a USB hub.
  • Change your cellphone’s USB mode to PTP, MTP (File Switch/Android Auto), or USB Tethering.

Step 4 (Non-obligatory): Add ADB to Your System PATH

Because it stands, you must navigate to ADB’s folder and open a Command Immediate there everytime you need to use it. Nevertheless, in the event you add it to your Home windows System PATH, that received’t be vital–you possibly can simply sort adb from the Command Immediate to run instructions everytime you need, it doesn’t matter what folder you’re in.

The method is a bit completely different on Home windows 11, 10, and seven, so try our full information to modifying your System PATH for the steps required to do that.

RELATED: Find out how to Edit Your System PATH for Straightforward Command Line Entry in Home windows

Helpful ADB Instructions

Along with the number of tips that require ADB, ADB affords some helpful instructions:

  • adb set up C:bundle.apk — Installs the bundle positioned at C:bundle.apk in your laptop in your gadget.
  • adb uninstall bundle.identify — Uninstalls the bundle with bundle.identify out of your gadget. For instance, you’d use the identify com.rovio.angrybirds to uninstall the Indignant Birds app.
  • adb push C:file /sdcard/file — Pushes a file out of your laptop to your gadget. For instance, the command right here pushes the file positioned at C:file in your laptop to /sdcard/file in your gadget
  • adb pull /sdcard/file C:file — Pulls a file out of your gadget to your laptop — works like adb push, however in reverse.
  • adb logcat — View your Android gadget’s log. Might be helpful for debugging apps.
  • adb shell — Offers you an interactive Linux command-line shell in your gadget.
  • adb shell command — Runs the desired shell command in your gadget.

For a full information to ADB, seek the advice of the Android Debug Bridge web page on Google’s Android Builders website.



Latest articles

Dawn of DC Sees New Comics for Wonder Woman, Flash, and Hawkgirl

It’s nonetheless pretty early into the brand new yr, and DC Comics continues...

The Last of Us episode 9 release date, time, channel, and plot

The tip is lastly right here. The Final of Us has been one...

How to Hide Posts From Someone on Instagram

To cover your Instagram posts from a particular individual, go to their profile,...

10 ways to speed up your internet connection today

In case you are already on...

More like this

Dawn of DC Sees New Comics for Wonder Woman, Flash, and Hawkgirl

It’s nonetheless pretty early into the brand new yr, and DC Comics continues...

The Last of Us episode 9 release date, time, channel, and plot

The tip is lastly right here. The Final of Us has been one...

How to Hide Posts From Someone on Instagram

To cover your Instagram posts from a particular individual, go to their profile,...