How to Install ADB on Windows, macOS, Linux, and Chrome OS

How to Install ADB on Windows, macOS, Linux, and Chrome OS

Android Debugging Bridge (ADB), as the name suggests, is a command-line utility that allows developers to debug various parts of their applications. However, it is not restricted to just developers. If you want to access certain features of the Android platform that are not otherwise accessible, you too can use the ADB commands by installing ADB on your computer, be it Windows, macOS, Linux, or Chrome OS. Once you install it, there are numerous cool things that you can do with ADB on your Android device. Plus, there are various apps that require ADB permissions to work. So, if you have been confused about how to install and use ADB on Windows, macOS, Linux or Chrome OS, we have you covered.

Setup Your Android Device for ADB

Even if you install ADB on your computer, it is of no use unless you set up your Android device first to work with ADB. So in case you are not sure how to do that, follow the steps below to find out.

  • Open Settings on your Android device, and go to “About Phone”. Here, tap on “Build number” 7 times consecutively. Keep in mind, as Android devices have different skin, the ‘Build Numer’ page may be kept under some other pages.

Setup Your Android Device for ADB

  • This will enable “Developer options” on your Android device. Head over to “System” and then open Developer Options and enable “USB debugging”. Now, whenever you will connect your Android device to the computer, select the “File transfer (MTP)” mode. You are done on the device front. Now, the next step is to set up ADB on your computer.

Setup Your Android Device for ADB

Install ADB on Windows

Install ADB on Windows

  • Now head over to the extracted folder, and click on the address bar. Now, type “cmd” and hit enter. Instantly, a command prompt window will open up in the ADB directory.

install adb on windows

  • After that, connect your Android device to Windows PC and execute adb devices command.

install adb on windows

  • It will prompt a “USB debugging” prompt on your smartphone. Enable the “Always allow” checkbox and then tap on “Allow”.install adb on windows
  • Now, you should see your device’s serial number in the Command Prompt window. If it does not detect your device then run adb devices again and this time, it will definitely detect your device. Congratulations! ADB is now successfully installed on your Windows PC.

Install ADB on Windows

Install ADB on macOS

Here, we will take a slightly different path to install ADB on macOS. We will have to install Homebrew first on macOS and then we can install the Android platform-tools easily. Homebrew is an open-source package manager that installs the missing packages. So with all that said, here we begin.

  • First of all, open the Terminal on your Mac and execute the below command. It will install Homebrew on your Mac. During the installation, it might ask for your password. The whole installation will take about 10 mins.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

install adb on macos

  • After that, install the ADB platform-tools from the below command.
brew install android-platform-tools --cask

Install ADB on macOS

  • Now connect the Android device to your Mac and execute the adb devices command. You will receive a prompt on your Android device to allow USB debugging. So, just enable the checkbox and tap on “Allow”.

install adb on macos

  • You should now see the serial number of your device on Mac This signifies that ADB is successfully installed on your Mac.

install adb on macos

Install ADB on Linux

  • Download the ADB Platform Tools for Linux from Google’s official page and unzip the file to a suitable location like your home directory.
  • After that, open the Linux terminal and move to the extracted folder location. Execute the below command to move to the particular folder. Make sure to change the username to your actual Linux username.
cd /home/arjun/platform-tools

install adb on linux

  • Connect your Android device and run the adb devices command on the Linux terminal. On your Android device, check the box for “Always allow” and then tap on the “Ok” button.

install adb on linux

  • Finally, your Android device will show up on the Linux Terminal with the serial number. This is how you can install and set up ADB on Linux systems.

Install ADB on Linux

Install ADB on Chrome OS

Before I move forward, let me clarify that your Chromebook should have Play Store support; Chrome OS should be on the Developer Channel and have Linux enabled on your machine. To move to Developer Channel, open Settings -> About Chrome OS -> Additional Details -> Change Channel to Dev. Now having said all of that, let’s learn how to install ADB on Chrome OS.

  • First off, open Settings and navigate to Linux -> Develop Android Apps -> Enable the toggle for ADB Debugging. Now, restart your Chromebook and an ADB prompt will come up after the reboot. Click on “Allow” and move to the next step.How to Install ADB on Windows, macOS, Linux, and Chrome OS
  • Now, open the Linux Terminal from the app drawer and execute the below command to install the ADB platform tools. Further, press “Y” to allow the installation.
sudo apt-get install android-tools-adb

install adb on chrome os

  • After the installation, connect your Android device to Chromebook. You will get a prompt on your Chromebook about a USB device detection. Now, click on “Connect to Linux”.

install adb on chrome os

  • Back to Linux Terminal, execute the adb devices command and a prompt will appear on your Android device. Enable the checkbox for “Always allow” and then tap on the “Ok” button. Congratulations, you have successfully set up ADB on Chrome OS.

install adb on chrome os

  • If the Terminal shows “Permission Denied” or “Command Not Found” error then run the adb start-server command first and then try again with the adb devices command.

How to Use ADB on Windows, macOS, Linux and Chrome OS

After you have successfully installed ADB on your Windows PC, Mac, Linux system or Chromebook, using it is just a matter of executing various ADB commands in the Terminal. Just make sure that you have connected your Android device to your computer while USB debugging is enabled. After this, you can try different commands and experience Android a whole lot differently. To help you get started, given below are a few of the most commonly used ADB commands.

Install ADB on Windows, macOS, Linux and Chrome OS With Ease

ADB is a very useful utility for all Android programmers. Even if you are not one yourself, you now know how to set up ADB on your PC or Mac and use it with your Android device. And if you’re new to this, I’ve already listed some of the common ADB commands above. This allows you to experience Android like never before. Talking about ADB commands, which ones are your favorites? I would love to hear from you in the comments section below.

65 Comments

  1. the UI is good now. I installed another version. But I can not find spotify to remove. How to remove it?

  2. This tutorial (atleast for ADB installation on a mac) seems outdated. After I installed homebrew, when I run the command brew install android-platform-tools –cask, I get “command not found: brew”.. what to do now?

  3. lg g5 here. i had to switch from “charging mode” to mtp and back to “charging mode”. then the “USB debugging” prompt will appear on the screen

  4. Only install java JDK latest and install “XiaomiADBFastbootTools.jar”
    you can uninstall most system apps 🙂

  5. You don’t need to download the zip in linux. You can use the Chrome Os install command to install it.

  6. I have connected my Oppo F 15 for removing the apps, It got connected, BUt shows only Google apps only, Not Oppo preinstalled apps, Please help

  7. brew cask install android-platform-tools this command didn’t work, so instead I tried brew install android-platform-tools. and it worked.

  8. i followed all the steps but for windows 7 but it says a file is missing so it does not go ahead..
    Kindly Help

  9. how to launch that adb fast tool you guys make a very bad video about using this software
    look like you don’t want that anyone uses this softwere.

  10. please tell how to open that window “Xiaomi ADB/Fastboot Tools” on windows 7…….
    I have downloaded all the three files and unzipped them through WinRaR…
    1. XiaomiADBFastbootTools.jar
    2. Source Code (zip)
    3. Source Code (tar.gz)
    please help! I really wanna uninstall all the Xiaomi bloatware!

    1. I had the same problem , after lots of hit and trial here’s the conclusion.
      Step 1 : Install the latest Java SE version from here https://www.oracle.com/java/technologies/javase-downloads.html (I installed Java SE 16 , to do that goto https://www.oracle.com/java/technologies/javase-jdk16-downloads.html > at the bottom of the list there would be “Windows x64 Installer” download n install that)
      Step 2 : Follow Steps given in this article
      Step 3: Right click on that “XiaomiADBFastbootTools.jar” file which you downloaded (DO NOT UNZIPP IT)> Open with> click on “Java (TM) Platform SE binary” (visible only when followed Step 1).

      And that’s it Enjoy!!, rest is the same as shown in that video (https://www.youtube.com/watch?v=oV8X-Nc_gtg)

      1. Tried that, but XiaomiADB…. does not recognize my redmi 9T. Tells me to use: Run as Admin, which does not appear in the right-click menu—

        ???

        Do I need any accounts or a tel number?

  11. As of today, for MacOS instead of:
    > brew cask install android-platform-tools
    use:
    brew install –cask android-platform-tools

  12. i have successfully installed & device id is visible. Now, how to launch that application ? I can’t find it. Plz reply

  13. I am using a K20 pro and I have tried 7-8 times adb devices, but nothing appeared on my phone screen. My phone is runng MIUI 10.
    And my computer is running windows 8.
    please help.

  14. I’m using an old Xiaomi phone with MIUI 9. Everything went perfectly but after clicking uninstalling in the debloater tool, it showed error and thus apps were not uninstalled. Please suggest something

  15. I’m using an old Xiaomi phone with stable MIUI 9. Everything went perfectly but after uninstalling apps in the debloater tool it shows error and the apps are not uninstalled. Please suggest something

  16. Got halfway and gave up, not that bothered but I really hate my note 7 and would not buy another Chinese phone

  17. Did anyone find any problem in using the phone after debloating the phone. I recently bought poco m2 thinking of debloating but concerned too. And how to lock apps if the security app is removed as it only contains the app lock feature. Please do reply

      1. I can’t find application in my PC. I installed it successfully, it shown device id but how to open that ADB tools ?

        1. Read my comment reply on “Kshitiz Saraf Apr 13, 2021 At 11:57 am”
          I have full explanation of that.

  18. I don’t know why but running “adb devices” command show ‘unauthorized’ in place of ‘device’, is that going to be a problem while debloating my Poco F1?

    1. Yes. Keep your phone unlocked and run adb devices again. You will get a prompt on your device. Enable the checkbox and tap on Allow. Now run adb devices again and it won’t show unauthorized.

  19. It shows a pop-up error saying “The application was unable to start correctly (0xc000007b). Click OK to close the application.” What do I do ?? Please help

  20. It says”‘adb’ is not recognized as an internal or external command,
    operable program or batch file.” what should I do? I have the redmi note 3 and I have switched on USB debugging as well.

    1. because ADB path is not set on your system set ADB path or access cmd from the platform tool folder!!!

  21. after entering adb devices it shows a error message(this program cant be start because api-ms-win-crt-convert-[1-1-0.dll is missing from your computer.try to reinstalling the program fix this problem). i dont know what to do after that help!!!me through this !!!

    1. same problem with me :-

      after entering adb devices it shows a error message(this program cant be start because api-ms-win-crt-convert-[1-1-0.dll is missing from your computer.try to reinstalling the program fix this problem).

  22. I’m not able to install ADB Interface in my laptop. Someone help me out in this. My laptop run Windows 7.

  23. adb : The term ‘adb’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
    spelling of the name, or if a path was included, verify that the path is correct and try again.

    I am getting the above error after entering adb devices

  24. Sir i am facing a problem whenever i try to connect my Redmi K20 with my windows PC i am not getting that notification toggle of share via USB and because of this whenever i give a command there it shows no device connected sir please help me out if you have any solution to this please help me out with it, and thank you so much for such a lovely video i literally wait for your videos every week for some technical knowledge and much more.

  25. Don’t Uninstall Security Center, Or Anything Related To Security And Before you uninstall Miui Account App from your mobile make sure you signed out from your Mi Account And also don’t try to remove Location Services Otherwise Your Phone Will Get Locked And You will have to restore it or it will never boot again if you restart your phone.

  26. my phone (realme x2) is not showing me the option for allow usb debbuging ……….please can we get a video on it !

  27. Hi I am getting error adb server version 40 doesn’t match this client 41; Killing…
    *daemon started successfully.

  28. I am getting a different serial number(different from cellphone) in command prompt after following all the instructions. I am using Samsung On Nxt with Android 8.1.0

    1. Don’t Uninstall Security Center, Or Anything Related To Security And Before you uninstall Miui Account App from your mobile make sure you signed out from your Mi Account And also don’t try to remove Location Services Otherwise Your Phone Will Get Locked And You will have to restore it or it will never boot again if you restart your phone.

  29. Unable to my device LG V20, command window stuck on “List of devices attached”, USB debugging is already on.

  30. Can we go back from the stage. Like after Installing the pill I want to go back to the normal Navigation buttons. Is it possible?

  31. I am not able to see “Open PowerShell window here” / “Open command window here” on my pc running windows xp

    1. Don’t Uninstall Security Center, Or Anything Related To Security And Before you uninstall Miui Account App from your mobile make sure you signed out from your Mi Account And also don’t try to remove Location Services Otherwise Your Phone Will Get Locked And You will have to restore it or it will never boot again if you restart your phone.

Leave a Reply