• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
  • Skip to footer
WebSetNet

WebSetNet

Technology News

  • Technology News
    • Mobile
    • Games
  • Internet Marketing
  • System Admin
    • Windows 11
    • Linux
    • Mac & Apple
You are here: Home / Technology News / Mobile / How to Install and Use ADB, the Android Debug Bridge Utility

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

February 2, 2023 by Martin6

Android logo ADB

To install and use Android Debug Bridge Utility (ADB), download the platform tools from the ADB page and extract them anywhere. Open the Settings app on your phone, go to the "System" page, tap the build button seven times, and connect your phone to your PC. Open PowerShell, navigate to the platform tools folder, then run any adb command.

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 (PowerShell and Terminal will also work) 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 Files”platform-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

Note: If you’re using PowerShell or the Terminal with a PowerShell profile, you’ll need to run ./adb devices instead.

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

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 or your manufacturer’s website. The drivers for Google devices, like Pixel phones, can be found on Google’s website. Google also has a list of USB drivers sorted by manufacturer that will save you a ton of time.

Note: Make sure to carefully follow the instructions for installing your device’s drivers if specific instructions are provided.

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.

On the Driver tab, click “Update Driver.”

Use the Browse my computer for driver software option.

Find the drivers you downloaded for your device.

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

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

adb devices

Or:

./adb devices

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

If running adb devices still won’t return any devices, there are a few things you can try:

  • Swap out your USB cable for a higher quality one
  • Plug the USB cable into a different port
  • Plug the USB cable directly into the USB ports on your motherboard (at the back), rather than the ports on the front of your PC or on a USB hub.
  • Change your phone’s USB mode to PTP, MTP (File Transfer/Android Auto), or USB Tethering.

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.

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.

Original Article

Filed Under: Mobile

Primary Sidebar

  • Popular
  • Recent
Sonos Era 300 Review: Spatial Audio Is a Game Changer
How to watch Netflix on your Nest Hub and Nest Hub Max
Edraw Max is the Visio Alternative for macOS
First full FIFA 21 trailer drops, giving us a look at next-gen gameplay
New Corning Gorilla Glass skips the 7 and goes straight to Victus
Halo Infinite: Release date and everything you need to know
Amazon Fire 7 vs Fire HD 8 vs Fire HD 8 Plus vs Fire HD 10: Which Fire tablet should you buy?
Latest Samsung Galaxy Note 20 leak is a spec dump revealing key features
Asus ROG Phone 3 vs Lenovo Legion Phone Duel: Gaming phones compared
Xbox Series X vs Xbox One X: What's the difference?
Call of Duty: Black Ops Cold War release date, rumours, formats and everything you need to know
ROG Phone 3 is another monster gaming phone
How to lock your Facebook Messenger chats behind Face ID or Touch ID
Asus ROG Phone 3: Release date, spec, price, everything you need to know
Samsung Galaxy Z Flip updated with 5G and Snapdragon 865 Plus for blistering speed
What is Xbox Smart Delivery, how does it work, and which games are compatible?
Sonos Era 300 Review: Spatial Audio Is a Game Changer
Microsoft has hidden Cloud PC references in Windows 11 as a hint of future Windows 12 features
TEAMGROUP launches T-FORCE VULCAN SO-DIMM DDR5 gaming RAM
How to Edit a PDF [Easy Guide]
Vivo X Fold 2 appears on AnTuTu benchmark revealing impressive performance
Realme GT Neo 5 SE Display Specifications Officially Confirmed
Microsoft Releases Security Update to Fix Screenshot Vulnerability
Honor Play 7T Key Specifications, Design Confirmed Ahead of March 28 Launch
iPhone 15 Dynamic Island to Include New Integrated Proximity Sensor
How to Install Budgie Desktop 10.7.1 in Ubuntu Budgie 22.04
Ubuntu 20.04.6 Released! Fix Secure Boot & Integrate Ubuntu Pro
Configure Logitech or SteelSeries Headset in Ubuntu via This App
How to Install Latest Battle for Wesnoth 1.16.x via PPA in Ubuntu 22.04 | 20.04
Show Live Scores in Ubuntu Panel for NBA, EPL, or Other Sports Teams
RetroArch 1.15.0 Released! How to Install in Ubuntu 22.04 | 20.04
Transmission 4.0.2 Released with Numerous Bug-Fixes [Ubuntu PPA]

Footer

Tags

Amazon android Apple Asus available download: edge feature features first free from galaxy Game games gaming gets google install Intel iPhone launches linux Microsoft more OnePlus phone release released review: samsung series support this Ubuntu update using video watch what will windows with xbox your

Archives

  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org