Tutorial on how to install ADB on Windows, MacOS and Linux – Android Debugging Bridge (ADB) is a command line utility that allows Android application developers to debug various kinds of their applications. However, it’s not limited to just developers. If you want to access certain features of the inaccessible Android platform, you can also use ADB commands by installing ADB on your computer, be it Windows, macOS, Linux, or Chrome OS.
Once you have installed ADB, there are many cool things you can do with ADB on your Android device. Apart from that, there are various apps which require ADB permission in order to function. So, if you are confused about how to install and use ADB on Windows, macOS computers, Linux or Chrome OS, then this is the right place for you to learn about it.
Set up Android Smartphone for ADB
Why you need to set up your android smartphone for ADB first is because if you install ADB on your computer, it is of no use unless you pre-set your Android device to work with ADB. And here are the steps to set up ADB on Android.
- Open Settings on your Android device, and go to “About Phone”. Here, tap on “Build number” 7 times in a row. Keep in mind, because Android devices have different skin settings, the ‘Build Number’ page can be in different places but is usually still around the same menu.
- This will enable “Developer options” on your Android device. Open “System” and then open Developer options and enable “USB debugging”. Now, if you connect your Android device to the computer, select the mode “Transfer files (MTP)”.
- And now that you are done setting up sections on your android smartphone. And next is how to install and set up ADB on your computer.
How to Install ADB on Windows
- First, download the ADB Platform Tool for Windows from Google’s official page. Once downloaded, extract the ADB file on your Windows PC using WinRAR or a tool compress other.
- Now open the extracted folder, and click on the address bar. Type “
cmdAnd press enter. Instantly, a command prompt window will open in the ADB directory.
- After that, connect the device Android smartphone To your Windows PC and run the command
- It will ask for “USB debugging” prompt on your Smartphone. Activate the checkbox “Always allow” then tap “Allow”.
- Now, you will see your device serial number in the Command Prompt. If the computer doesn’t detect your smartphone then run the command
adb devicesagain and it will definitely detect your smartphone device. And Congratulations! ADB is now successfully installed on your Windows PC.
How to install ADB on macOS
Here, I’m going to take a slightly different way to install ADB on macOS. We have to install Homebrew first on macOS and then you can install Android platform-tools easily. Homebrew is an open-source package manager that installs the missing packages.
- First of all, open Terminal on your Mac and run the below command. This will install Homebrew on your Mac. During the installation, this process may ask for your password. The entire installation process will take about 10 minutes.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- After that, install ADB platform tools from the below command.
brew cask install android-platform-tools
- Now connect the Android device to your Mac and run the command
adb devices. You will receive a prompt on your Android device to allow USB debugging. So, just activate the checkbox and tap “Allow”.
- You should now see the serial number of your smartphone device on the Mac. This indicates that ADB has been successfully installed on your Mac.
How to Install ADB on Linux
- Download the ADB Platform Tool for Linux from Google’s official page and unzip the file to a suitable location such as your Home directory.
- After that, open a Linux terminal and move to the location of the extracted folder. Run the command below to move to a specific folder. Make sure to change the username to your actual Linux username.
- Connect your Android smartphone and run the command
adb devicesin the Linux terminal. On your Android smartphone, check the box for “Allways Allow” then tap on the “OK” button.
- Now, your Android device will appear in the Linux Terminal with its serial number. And this indicates that you have successfully installed and set up ADB on a Linux system.
How to Install ADB on Chrome OS
Before you can install ADB on Chrome OS, make sure that your Chromebook must have Play Store support, Chrome OS must be on the Developer Channel and have Linux enabled on your computer. To move to the Developer Channel, open it Settings -> About Chrome OS -> Additional Details -> Change Channel to Dev.
If so, let’s move on to how to install ADB on Chrome OS.
- First, open it Settings and navigate to Linux -> Develop Android Apps -> Enable the toggle for ADB Debugging. Now, restart your Chromebook and an ADB prompt will appear after rebooting. Click on “Allow” and move to the next step.
- Now, open the Linux Terminal from the App Drawer and run the below command to install the ADB platform tools. Next, press “Y” to allow the installation.
sudo apt-get install android-tools-adb
- After installation, connect your Android smartphone to the Chromebook. You will get a prompt on your Chromebook about USB device detection. Now, click “Connect to Linux”.
- Back in the Linux Terminal, run the adb devices command and a prompt will appear on your Android device. Enable the checkbox for “Allways Allow” then tap the “OK” button. Congratulations, you have successfully set up ADB on Chrome OS.
- If Terminal shows “Permission Denied” or “Command Not Found” error then run the command
adb start-serverfirst and then try again with the command
How to use ADB on Windows, macOS, Linux and Chrome OS
After you have successfully installed ADB on your Windows PC, Mac, Linux, or Chrome OS, you can use various ADB commands in Terminal. Make sure you have connected your Android device to the computer while USB debugging is enabled. After this, you can try different commands and experience Android in a completely different way. And here are some of the most commonly used ADB commands.
|adb devices||To see a list of Android devices communicating with your computer|
|adb push||To move files to your Android device programmatically|
|adb pull||To move files from your Android device programmatically|
|adb install||To install the application programmatically using an APK file|
|adb reboot||To reboot your Android device|
|adb reboot recovery||To reboot your Android device in recovery mode|
|adb reboot bootloader||To reboot your Android device into the bootloader|
|adb shell||To start a remote shell with your Android device|
ADB is a very useful utility for all Android programmers. Even if you are not a programmer, 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 listed some of the commonly used ADB commands above. This will allow you to make your Android feel different and different than before. Hopefully this article on how to install ADB on various computer OSs is useful for you and good luck 🙂