Search
  • SupDroid Studio

How to setup ADB & Fastboot on Windows, MacOS and Linux.

The ADB (Android Debugging Bridge) is a set of tools which allow you to communicate with your Android device from a computer, and perform operations on it. Fastboot is a firmware flashing tool in which you can boot and/or flash custom operating systems, recoveries and even flash the stock firmware to unbrick your device. In the event that you will ever need it, this guide shows you how to setup the ADB & Fastboot binaries on your Windows, MacOS or Linux computer.



But first (on your phone):


1. Open system settings.

2. Select "About phone" (on newer devices it will be "System" > "About phone").

3. Tap the "Build number" 7 times until you see a toast at the bottom saying "Developer mode has been enabled" or something similar.

4. Return to the previous menu. You should now see "Developer options" appear. Select this.

5. Scroll down to "USB debugging" and turn the toggle on. If you receive a confirmation notification, accept it.

6. Now you are setup to be able to accept ADB commands.


Windows:


1. Install the correct USB drivers for your device. Most manufacturers provide USB drivers. Search for "name_of_manufacturer usb driver" to find it. If you can't find the one you need, you can use ClockworkMod's Universal ADB Driver which supports all devices.

2. Download the latest Windows ADB & Fastboot binaries ZIP file from here.

3. Extract the ZIP into a memorable location of your choice such as C:\Users\username\adb.

4. Open a Command Prompt window. This can be done by searching "cmd" in the search box.


5. cd to the directory containing the binaries. This can be done by running cd /D <PathToBinaries>, e.g: cd /D D:\adb.

6. Connect the device to the computer with a USB cable.

7. Run adb devices in the Command Prompt window. You should see a confirmation to allow USB debugging on your device. Make sure you accept it.

8. The command should output your device's serial number or IP address, followed by the word "device" next to it. If you see this, ADB is set up correctly and you can go ahead and run any commands you want. Same goes for fastboot.



MacOS:


1. Download the Mac ADB & Fastboot binaries ZIP from here.

2. Extract the contents to a folder of your choice.

3. Open a terminal and cd to the containing directory - cd /path/to/adb.

4. Connect the device to the computer with a USB cable.

5. Run adb devices, and allow the USB debugging prompt from your phone.

6. If done successfully, you should see your device's serial number or IP address displayed on the screen, followed by "device" next to it. Now you can go ahead and run any ADB or fastboot command you want!


Linux:


1. Download the Linux ADB & Fastboot binaries ZIP from here.

2. Extract the contents to a folder of your choice.

3. Open a terminal and cd to the containing directory - cd /path/to/adb.

4. Connect the device to the computer with a USB cable.

5. Make the contents executable with chmod +x *.

NOTE: Linux users need to put ./ in front of every command - most Linux users already know this, but just in case you wonder why it didn't work. For example, you'll run ./adb.

6. Run adb devices, and allow the USB debugging prompt from your phone.

7. If done successfully, you should see your device's serial number or IP address displayed on the screen, followed by "device" next to it. Now you can go ahead and run any ADB or fastboot command you want!

NOTE: Some distros provide packages for ADB & Fastboot. For example, on Debian-based systems you can run sudo apt install adb fastboot to install the binaries. If doing this, you won't need to put ./ at the start of every command.


Hopefully this guide has helped you to setup ADB and Fastboot on your computer!

0 views

©2019 by SupDroid Studio. Proudly created with Wix.com

This site was designed with the
.com
website builder. Create your website today.
Start Now