Android Debug Bridge (adb) is a versatile command-line tool that lets you communicate with a device. The adb command facilitates a variety of device actions, such as installing and debugging apps, and it provides access to a Unix shell that you can use to run a variety of commands on a device.
Lately here at XDA we have been writing a number of tutorials to show you how to access certain features of the Android platform that simply are not visible to the user. These have generally been done with the help of some command line Android Debug Bridge (ADB) commands, a tool that Google offers for developers to debug various parts of their applications or the system, but which we can use for all kinds of neat and hidden tricks. Using the command line isn’t something that everyone is comfortable with, though, so in an attempt to teach everyone how to do these tweaks (no matter what skill level you’re at), we have been including some basic steps about how to install ADB in each of our tutorials where necessary.
Well, the number of our tutorials has ballooned in quantity lately, so we have decided to exclude those steps from future tutorials to avoid redundancy. However, we still want all future tutorials we write to be easy to understand for as many people as possible, so that will be the point of today’s guide. Having a dedicated step by step tutorial on how to install and setup ADB on your computer (no matter what operating system you use) will be great for those who may not have it set up already.
This will also let us include a link to this guide in the future tutorials we write that require you to have ADB setup and installed on your computer. So when one of our new tutorials comes out that requires ADB, you can click through the link to learn how to install ADB or you can simply ignore it and move onto the next step. Since ADB can be used on a variety of operating systems, we’ll be covering some basic instructions for Windows, macOS and Linux.
How to Setup the Android Debug Bridge (ADB)
Note: Setting up ADB on the computer is just half the equation since you’ll also need to do some things on the smartphone or tablet to accept the ADB commands.
Phone Setup
- Launch the Settings application on your phone.
- Tap the About Phone option generally near the bottom of the list (this is hidden behind the “System” option in Google’s latest Android Oreo version).
- Then tap the Build Number option 7 times to enable Developer Mode. You will see a toast message when it is done.
- Now go back to the main Settings screen and you should see a new Developer Options menu you can access.
- Go in there and enable the USB Debugging mode option.
- You are partially done with the phone setup process. Next up, you will need to scroll below and follow the rest of the instructions for your particular operating system.
Microsoft Windows ADB Setup
- Extract the contents of this ZIP file into an easily accessible folder (such as C:adb)
- Open Windows explorer and browse to where you extracted the contents of this ZIP file
- Then open up a Command Prompt from the same directory as this ADB binary. This can be done by holding Shift and Right-clicking within the folder then click the “open command prompt here” option. (Some Windows 10 users may see “PowerShell” instead of “command prompt”.)
- Connect your smartphone or tablet to your computer with a USB cable. Change the USB mode to “file transfer (MTP)” mode. Some OEMs may or may not require this, but it’s best to just leave it in this mode for general compatibility.
- In the Command Prompt window, enter the following command to launch the ADB daemon:
adb devices
- On your phone’s screen, you should see a prompt to allow or deny USB Debugging access. Naturally, you will want to grant USB Debugging access when prompted (and tap the always allow check box if you never want to see that prompt again).
- Finally, re-enter the command from step #6. If everything was successful, you should now see your device’s serial number in the command prompt. Yay! You can now run any ADB command on your device! Now go forth and start modding your phone by following our extensive list of tutorials!
How to Install ADB on macOS
- Extract the ZIP to an easily-accessible location (like the Desktop for example).
- Open Terminal.
- To browse to the folder you extracted ADB into, enter the following command:
cd /path/to/extracted/folder/
- For example, on my Mac it was this:
cd /Users/Doug/Desktop/platform-tools/
- Connect your device to your Mac with a compatible USB cable. Change the USB connection mode to “file transfer (MTP)” mode. This is not always required for every device, but it’s best to just leave it in this mode so you don’t run into any issues.
- Once the Terminal is in the same folder your ADB tools are in, you can execute the following command to launch the ADB daemon:
adb devices
- On your device, you’ll see an “Allow USB debugging” prompt. Allow the connection.
- Finally, re-enter the command from step #7. If everything was successful, you should now see your device’s serial number in macOS’s Terminal window. Congratulations! You can now run any ADB command on your device! Now go forth and start modding your phone by following our extensive list of tutorials!
How to Install ADB on Linux
- Extract the ZIP to an easily-accessible location (like the Desktop for example).
- Open a Terminal window.
- Enter the following command:
cd /path/to/extracted/folder/
- This will change the directory to where you extracted the ADB files.
- So for example:
cd /Users/Doug/Desktop/platform-tools/
- Connect your device to your Linux machine with your USB cable. Change the connection mode to “file transfer (MTP)” mode. This is not always necessary for every device, but it’s recommended so you don’t run into any issues.
- Once the Terminal is in the same folder your ADB tools are in, you can execute the following command to launch the ADB daemon:
adb devices
- Back on your smartphone or tablet device, you’ll see a prompt asking you to allow USB debugging. Go ahead and grant it.
- Finally, re-enter the command from step #8. If everything was successful, you should now see your device’s serial number in the Terminal window output. Congrats! You can now run any ADB command on your device! Now go forth and start modding your phone by following our extensive list of tutorials!
Some Linux users should be aware that there can be an easier way to install ADB on their computer. The guide above will certainly work for you, but those own a Debian or Fedora/SUSE-based distro of Linux can skip steps 1 and 2 of the guide above and use one of the following commands. . .
- Debian-based Linux users can type the following command to install ADB:
sudo apt-get install adb
- Fedora/SUSE-based Linux users can type the following command to install ADB:
sudo yum install android-tools
Just to cover all of our bases here, Linux users may need to put a ./ in front of the ADB commands we list in future tutorials. This is something that is likely known by any Linux user already, but again, we want as many people as possible to understand how to do these tweaks for Android no matter how much of your operating system you know.
Bonus: For those who want to take this a step further, you can follow this new tutorial we put together that will walk you through how to setup ADB so that you can use the command from any directory on a Windows or Linux desktop.
Discuss This StoryWant more posts like this delivered to your inbox? Enter your email to be subscribed to our newsletter.
How to Install ADB Driver and Fastboot on Windows, Linux and Mac OS
In this article, we will be sharing you a step-by-step guide on how to install ADB Driver and Fastboot on Windows PC, MAC, and Linux. If you are the one in search for modifying the file system images from a computer over a USB connection, let me tell you, this also requires software from the Android SDK and different USB Drivers for Windows Computers. So for this purpose, you will need ADB installed on your Windows PC. For the whole process, keep reading further.
What is ADB?
Android Debug Bridge, aka ADB, is a tool that helps in sending basic Linux commands and a variety of Android Specific commands from PC to the connected Android devices. In all, it is a versatile command line tool that allows you to communicate with a device.
It is used to manage either an emulator instance or an actual Android device. It is a part of the Android SDK and is made up of three components: A Client, a Daemon, and a server. It works when the device is powered on and booted into OS or Recovery
What is Fastboot?
FasttBoot is a tool that makes it possible for you to flash any partition on an Android device like system, recovery, Cache, boot, etc. With the help of this tool, you can flash the custom-built .img files via fastboot.
It is a special diagnostic and engineering protocol that you can boot your Android device into. While in Fastboot, you can modify the file system images from a computer over a USB connection. It also requires software from the Android SDK and different USB Drivers for Windows Computers.
Pre-Requirements
- Before flashing any ROM make sure that your device’s bootloader is unlocked.
- Enable USB Debugging.
- Rooted Android Device.
Download
ADB Driver for Windows:- Download
ADB Driver for Linux:- Download
ADB Driver for Mac OS:- Download
Make Sure to Check out List of ADB Fastboot Commands for Windows, MacOS
How to Install ADB Driver on Windows 7 / 8 / 10
Below is a step-by-step guide on how to install ADB on Windows PC:
Step 1. Download the ADB-setup-1.4.2.exe file from the link given above.
Step 2. Double Click or run the adb-setup-1.4.2.exe file.
Step 3. Now you will see a command prompt window with a blue background on your screen. Say yes to all the prompts on the screen. For that, all you have to do is type Y and hit Enter.
Step 4. Once the ADB, Fastboot, and drivers are installed, the setup window will be closed by itself and you will be able to use ADB and Fastboot on your device.
How to Install ADB Driver on Linux
Here is a step-by-step guide on how to install ADB on Linux:
Step 1. To begin with, download the android.zip file from the link given above on your Linux.
Step 2. Now extract the download android.zip on your desktop by double-clicking the ADB and Fastboot files.
Step 3. Open a terminal window and direct it to the folder where the ADB and Other binaries are available.
Step 4. Through USB Cable, connect your Android device to the PC and enter the below command in the terminal window.
Step 5. For the first time when you enter this command, you will see a notification popping up on the screen with an unauthorized message-
“IMAGE”
Step 6. You will now come across a message on the screen of your device asking you to allow USB Debugging connection with the PC. Allow it.
Step 7. Now, at last, enter “./ adb devices“ command again and you will be able to establish a successful connection between your PC and Device over ADB.
And you have successfully installed ADB on Linux.
Also Read: Download Spotify Premium Apk and Lucky Patcher Apk.
How to Install ADB Driver on Mac Os
Below is a step-by-step guide on how to install ADB on MAC:
Step 1. Firstly, Download both the tools for Mac from the link given.
Step 2. Now, extract the content of the downloaded “platform-tools-latest-darwin.zip” file to an easily accessible location on your PC. Inside a folder entitled- “adb”, for the ease of accessing.
Step 3. It would be better if you have a desktop to perform this on. After the extraction, all the tools will be present in “/Desktop/adb/”.
Step 4. Go to the LaunchPad and open Terminal.
Step 5. Now, direct it to the location where ADB and many other binary files are present. Enter the command given below.
Step 6. Once your terminal is directed to this location, connect your device to the PC via USB Cable.
Step 7. Type the command given below. This will initiate an ADB connection with your device.
Android Adb
Step 8. Now that you have entered the command, the device will be prompted with a message to allow USB Debugging. The terminal will also display the device serial with an “unauthorized” message.
image
Step 9. You will now come across a message on the screen of your device asking you to allow USB Debugging connection with the PC. Allow it.
Step 10. Now, at last, enter “./ adb devices” command again and you will be able to establish a successful connection between your PC and Device over ADB.
And you have successfully installed ADB on MAC.
Share the joySpread the word if you find it useful. I took the utmost care to avoid any error at my end. However, if you find any inconsistency that has crept through, feel free to to rectify the mistakes in the future versions. It has around 50,000 words, updated until 2007. Especially, all those trade names and the names of all those complex surgical instruments. If you have any list of such recent medical terms or surgical equipment glossary, to add them in the future versions. Now the installation instructions of our custom medical dictionary. Stedman's medical spell checker software download. I had medical words from my own personal collection and custom dictionary. Accommodating all these medical words, the number of words worked out close to 100,000 after filtering out duplicate entries.New words come into prevalence in the field of medicine on a daily basis. Hence all the words may not have found their way into this medical glossary.
Adb Download
Must Read: Download Odin Flash Tool and Mi Flash Tool. Download 2k15 for pc.
Final Verdict
Download Android Adb Tools
ADB and Fastboot play the crucial role in the Android World. They tend to be the primary requirements to be installed on Windows PC for the purpose of starting tweaking with your Android Device. So, if you want to root or any other kind of modding in your Android, via Fastboot, then you will need ADB and Fastboot installed on your Windows. With the absence of them, you will not be allowed to achieve your aim.
Hope you guys found the article useful. If you have any queries regarding the steps and procedure or any sort of suggestions, you can let us know in the comment section below. For more such android related stuff, make sure you subscribe to our Newsletter.