How to Install ADB on Windows, macOS, and Linux

If you have been immersed in the extensive use of advanced Android for a long time, you are already familiar with concepts such as root and ROMs or the bootloader. And if so, you probably know that when performing operations related to modifying the system, an ADB driver is required.

Android Debug Bridge (ADB) is a very useful tool that you can start directly from the Windows cmd and that lets you interact with your Android smartphone by giving it commands. ADBs are truly extraordinary commands with which to perform a wide variety of activities, including all those operations that would otherwise be difficult or even impossible to perform.

Since the process of installing these drivers on a computer. We covered the detailed installation and configuration guide with the steps in the simplest way.

What is ABD (Android Debug Bridge)?

ADB can be defined quite and easily, as a bridge between the Android system and your PC, or more generally your Android device and another device. ADB stands for Android Debug Bridge , it allows developers (and other players in the Android ecosystem) to communicate with their Android device through commands. While ADB’s command line syntax is intimidating at first glance, it’s still simple and efficient.

“Adb devices” for example, lets you list the Android devices connected to the system.

ADB is the basic tool for developers and all hackers who want to manipulate their Android device from a computer.

What is Fastboot?

Fastboot is a communication protocol, like ADB. This tool is used in particular to flash partitions on your device. It therefore allows delicate operations that can potentially render your device inoperative. It is this powerful tool that allows you to use Android Preview , install alternative firmware or update the file system, for example.

Attention, few devices have access to fastboot mode by default, you must first have an unlocked device (the procedures are different depending on the manufacturer). Very often to access this mode, you have to turn off your device and hold down the keys: “Power + Volume Down”.

Once in this mode, you can unlock or lock your device’s bootloader :  fastboot oem unlock is one of the most used commands. Be careful, some commands can simply erase the content of your device, other commands can even render your device unusable. So be careful what you do, and always back up your data before you start.

Fastboot is a tool most often used to flash a smartphone with a system image.

Configure Android Device For ADB

To use ADB, it is necessary to enable USB debugging in Developer options on the Android device. 

To do this, go to the ”  About phone  ” section in the device settings, then tap the Build number box seven times . At the end of the seven presses, a message tells you that you are a developer! The Developer options option reappears in the Android settings. You can then enable or disable USB Debugging.

How to setup ADB on Microsoft Windows

  • Download the Android SDK platform tool on your pc. Download link in the below section. (Link to download section)
  • Extract the file you just downloaded to your root folder with easy accessible folder like(C:\platform-tools)
  • Open the folder you just downloaded and extracted to the root folder of your computer, then open a command window inside it. To do this, press shift key and right-click on an empty spot in the folder, select “open a command window here” (Some Windows 10 users see “PowerShell” instead of “command window)
  • Connect your smartphone to your computer with a USB cable. On your smartphone change the usb mode to “file transfer (MTP) mode. 
  • Next, Go to the command prompt and enter following command for start adb daemon,
  • adb devices
  • A popup window relating to USB Debugging will appear on your Android screen. You will need to accept the request to allow the smartphone to connect to the PC (Tap always allow option to ignore seen again and again)
  • After re-enter command: adb devices
  • If everything went right, the serial number of your Android device will appear in the command window.

Enjoy! Now You are able to run any ADB command on your android device!

How to setup ADB on MAC

  • Download the Android SDK platform tool on your pc. Download link in the below section. (Link to download section)
  • Extract the file you can accessible easily For example (Desktop)
  • Open terminal on your MAC OS
  • In the terminal, go to the folder where you just extracted ADB. enter the following command cd /path/to/extracted/folder/
  • For example cd /Users/Doug/Desktop/platform-tools/
  • Connect your smartphone to your computer with a USB cable. On your smartphone change the usb mode to “file transfer (MTP) mode. 
  • Next, Go to the command prompt and enter the following command to start adb daemon.
  • adb devices
  • On your smartphone popup the  “Allow USB debugging” options. Allow to connect your device to MAC OS
  •  After re-enter command: adb devices
  • If everything went right, the serial number of your Android device will appear at the MAC OS terminal.

Successfully! Now You are able to run any ADB command on your android device!

How to setup ADB on Linux

  • Download the Android SDK platform tool on your pc. Download link in the below section. (Link to download section)
  • Extract the file you can accessible easily For example (Desktop)
  • Open terminal on your LINUX
  • In the terminal, go to the folder where you just extracted ADB. enter the following command cd /path/to/extracted/folder/
  • For example cd /Users/Doug/Desktop/platform-tools/
  • Connect your smartphone to your computer with a USB cable. On your smartphone change the usb mode to “file transfer (MTP) mode. 
  • Next, Go to the command prompt and enter the following command to start adb daemon.
  • adb devices
  • On your smartphone popup the  “Allow USB debugging” option. Allow to connect your device to MAC OS
  •  After re-enter command: adb devices
  • If everything went right, the serial number of your Android device will appear at the MAC OS terminal.

Successfully! Now You are able to run any ADB command on your android device!

If you use any type of Linux software based on Debian, Fedora or SUSE on your computer, you should know that there is an even easier way to install the ADB drivers on your computer.

For Debian-based systems, just open a Terminal instance and run the command “sudo apt-get install adb” – without the quotes – and enter the root password. For its part, to carry out the process in Fedora or SUSE the command will be “sudo yum install android-tools”.

As you can see, setting up ADB drivers is not a complicated process if you follow the steps mentioned. In some cases, you can also use tools that perform this process automatically, such as Universal ADB drivers. Whichever method you choose, it is always advisable to have ADB drivers ready when it comes time to perform any kind of advanced operation on an Android device.

Examples of ADB Commands

When you use the ADB commands, you obviously have to make sure that the device you want to interact with is actually connected to your computer. Enter adb devices command on your terminal/command prompt.

We have listed some of the most useful adb commands. Let it check out.

  • Shows the list of devices connected and recognized by the PC : adb devices
  • Restarts the connected device : adb reboot
  • Reboots the device in Recovery Mode : adb reboot recovery
  • Reboots the device in Download Mode : adb reboot download
  • Reboots the device into Bootloader : adb reboot bootloader
  • Reboot the device in Fastboot Mode : adb reboot fastboot

Conclusion

I hope I have helped you download, configure, install and use ADB on Windows PC, Mac and Linux. For any doubts or questions, do not hesitate to leave a comment at the end of the guide.

Leave a Comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.