How to Install ADB on Windows, Linux, and macOS

Install ADB on Windows Linux macOS

This tutorial will help you easily install ADB and launch it on your Windows, Linux, or macOS machine.

What is ADB?Android Debug Bridge is a command-line tool that has been a part of Android SDK and development tools for a long long time. The tool allows your PC to communicate with your Android device and perform several actions. Some common adb commands include adb devices, adb reboot, etc. We will come to them later in this article.

Install ADB on Windows Linux macOS

A list of few tutorials that require you to install ADB and Fastboot on your PC:

Table of Contents

Install ADB on Windows, Linux, and macOS

When we or most other out there say that “You need to install ADB on your PC“, we generally mean all the major platform tools that are part of the Android SDK. However, we consider ADB for the fact that it is one of the tools that is of paramount importance, not only for developers but also for advanced users who would want to tweak their Android. So that’s what we are here for. To help you install ADB and Fastboot, or install Android SDK tools or setup platform tools, you may call it by different ways, but the process that follows is the same all around.

Now, to install ADB on your computer is just the first half of the story. The next chunk is to be carried on your Android device to make it work. Rubbish? No. It is equally important to adjust the settings on your device to make the connection successful between the PC and device. So we will have it all covered below.

Make Your Android Device Ready

In order to install ADB and use it, your device must first have the USB debugging option enabled. If you already have it or know how to do it, then you may skip this section and move on to the next.

  1. Go to the device ‘Settings’ and scroll down until you see ‘About phone’ (Up to Android 7.0 Nougat) or ‘System’ -> ‘About Phone’ (Android 8.0 Oreo or above).
    Enable USB Debugging Android
  2. Find the “Build number” field and start tapping on it continuously for 7 times until you see the “You are now a developer!” toast notification on the screen.
  3. Now go back to settings and access “Developer options”. On Android Oreo and above, you will find it in ‘Settings’ -> ‘System’.
  4. Scroll down until you find the “USB debugging” option and switch ON the toggle. When prompted, select “OK“.
    USB Debugging
  5. That’s it, you have just enabled USB debugging on your Android. Now head over to install ADB and establish a connection between your device and PC.

Install ADB on Windows

  1. Download the platform-tools package for Windows: Link
  2. We are going to need a location on the PC where the files could remain untouched, yet easily accessible. So extract the content of the downloaded “platform-tools-latest-windows.zip” file to C:\adb.
    Install ADB on Windows - Files
  3. So when you view this folder, you will see something like in the image above.
  4. Go to the folder where the files are present (Example: C:\adb).
  5. On an empty space inside this folder, press the SHIFT key and right-click. Select “Open command window here” or “Open PowerShell window here” from the menu that appears.
    Open PowerShell on Windows
  6. Now, connect your Android device to the PC using USB cable and enter the following command to initiate the ADB connection.
    adb devices
  7. Just as you enter the command, your phone will be prompted by a message to allow a USB debugging connection.Allow USB debugging Android
  8. Also, during this time, the command prompt will return the device serial number with “unauthorized” message. Once you agree to the prompt, you are good to go. You may also select the “Always allow from this computer” option so that you will not have to go through this process again.
  9. Finally, you should enter the “adb devices” command again and you will have instant ADB connection between your PC and device.

You have now been able to install ADB on Windows PC and have also established a successful connection between your PC and device.

Install ADB on Linux

  1. Download the platform tools package for Linux: Link
  2. Extract the content of the downloaded “platform-tools-latest-linux.zip” file to a suitable location of your choice. We prefer the Desktop.
  3. So open a Terminal window and direct it to the folder where the ADB and other binaries are present.
    cd /location/to/the/folder/
  4. Example:
    cd /Desktop/adb/
  5. Now connect your Android device to the PC via USB cable and enter the following command in the Terminal window:
    ./adb devices
  6. The first time you enter this command, the Terminal window will return the device serial along with the “unauthorized” message.
    Allow USB debugging Android
  7. You shall also instantly see a message prompt on your device screen asking to allow USB debugging connection with the PC. So just allow it.
  8. Finally, enter the “./adb devices” command again and you will be able to establish a successful connection between your PC and device over ADB.

You have now been able to install ADB on Linux.

Install ADB on macOS

  1. Download the platform tools package for macOS: Link
  2. Extract the content of the downloaded “platform-tools-latest-darwin.zip” file to an easily accessible location on your PC, inside a folder named “adb” (For ease of access).
  3. We prefer to have it on Desktop. So now, all the platform tools package content i.e. the binaries will be present in “/Desktop/adb/”.
  4. Go to the Launchpad and open Terminal.
  5. You will now need to direct it to the location where ADB and other binary files are present. So enter the following command:
    cd /location/to/the/folder/
  6. Example:
    cd /Desktop/adb/
  7. Now that your Terminal is directed to use this location, you can connect your device to the PC via USB cable.
  8. Enter the following command to initiate an ADB connection with your Android device.
    ./adb devices
  9. As soon as you enter the command, the device will be prompted with a message to allow USB debugging. The Terminal will also display the device serial along with an “unauthorized” message.
    Allow USB debugging Android
  10. So agree to the message and allow the connection. Then enter the “adb devices” command again to have a successful connection between your PC and device over ADB.

There you go! You have been successful to install ADB on macOS. Now that you’re done with installing, follow our tutorial on how to use ADB and Fastboot from any directory on your PC.

We make use of ADB and Fastboot in a lot of our day-to-day tutorials. So if the next time there is one that requires this, then you will already have your device and PC ready for the job.

You may now proceed to use other commands as well. If you want to get yourself familiar with other ADB commands, kindly read the documentation. That’s it, you have been successful to install ADB on your Windows, macOS, or Linux PC. You also have your device now having a perfect connection with your PC over ADB.

Was it helpful? Let us know through the comments.