A Simple Guide to Setup ADB

A Simple Guide to Setup Android Debug Bridge (ADB)

Android Debug Bridge (adb) is a command-line tool that lets you communicate with an android 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.

Phone Setup

  1. Launch the Settings application on your phone.

  2. Tap the About Phone option generally near the bottom of the list.

  3. Then tap the Build Number option 7 times to enable Developer Mode. You will see a toast message when it is done.

  4. Now go to Settings -> System -> Developer Options (this is hidden behind the “Advanced” option).

  5. Go in there and enable the USB Debugging mode option.

  6. 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.

Windows Setup

  1. Download the ADB ZIP file for Windows from HERE.
  2. Extract the contents of this ZIP file into an easily accessible folder (such as C:\adb).
  3. Open Windows explorer and browse to where you extracted the contents of this ZIP file.
  4. Then open up a Command Prompt from the same directory as this ADB binary. This can be done by typing ‘cmd’ in the address bar and then hitting enter.

  1. 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.

  2. In the Command Prompt window, enter the following command to launch the ADB daemon: adb devices

  3. 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).

  4. Finally, re-enter the command adb devices. 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!

Linux Setup

  1. Download the ADB ZIP file for Linux from HERE

  2. Extract the ZIP to an easily-accessible location (like the Desktop for example).

  3. Open a Terminal window.

  4. Enter the following command: cd /path/to/extractedfolder/

  5. This will change the directory to where you extracted the ADB files.

  6. So for example:cd /Users/Doug/Desktop/platform-tools/

  7. 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.

  8. 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

  9. Back on your smartphone or tablet device, you’ll see a prompt asking you to allow USB debugging. Go ahead and grant it.

  10. Finally, re-enter the command from adb devices. 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!


All articles in this blog except for special statements,Both adopt CC BY-SA 4.0 protocol, Please indicate the source!