Both ADB and Fastboot tools are from Google Android. Those tools are used to send commands from your computer to Android device. Those tools are mainly used for developing purposes. Before installing ADB and Fastboot you may like to know more about them. Let’s see what they are.

What is ADB ?

ADB stands for Android Debug Bridge. This tool consist of client and server part, communicate with each other. Simply ADB tool is a communication tool between your smartphone and PC. Communication is mostly done via USB. You can also connect your device using WiFi too. Using ADB we can send commands using command prompt(Ex: CMD, powershell, terminal) to Android device. This tool comes with numerous functions that are described in detail by the command adb –help. This tool support Windows, Linux and Mac. ADB is very helpful for rooting, flashing new ROMs or simply troubleshooting smartphones.

What is FastBoot ?

Fastboot is a more powerful tool than ADB and it works only in bootloader/fastboot mode. Using this tool you can modify the file system images from a computer over a USB connection. It allows you to re-flash system partitions on your Android device and requires a device with an unlocked bootloader. Not all phones have a fastboot mode that the user can access. It’s turned on with Nexus devices by default (as well as a few other phones and tablets). Fastboot runs on Windows, Mac, and Linux. You can boot your phone to fastboot and you can flash image files to your phone’s internal memory.

Installing ADB and FastBoot

Select your platform to install ADB and FastBoot.

  1. For Windows 7/8
  2. For Windows 10
  3. For MAC
  4. For Linux

Install ADB and FastBoot on Windows 7/8

Download platform tools for Windows

    1. Extract it. In my case I have extract it in Desktop. path Desktop\adb-fastboot
    2. Now we have to add that path to Environment variable to use it in command prompt.
      1. From the desktop, right-click My Computer and select Properties
      2. In the System Properties window, click on the Advanced tab
      3. In the Advanced section, click the Environment Variables button
      4. In the Environment Variables window, highlight the Path variable in the Systems Variable section and click the Edit button
      5. Append ;Desktop\adb-fastboot\platform-tools to the end of the existing Path definition (the semi-colon separates each path entry)
    3.  Reboot.

Install ADB and Fastboot on Windows 10

Download platform tools for Windows

 

  1. Extract it. In my case I have extract it in Desktop. path Desktop\adb-fastboot
  2. Now we have to add that path to Environment variable to use it in command prompt.
    1. Open the Start menu, and type “advanced system settings”
    2. Select “View advanced system settings”
    3. Click on the Advanced tab
    4. Open the “Environment Variables” window
    5. Select the Path variable under “System Variables” and click the “Edit” button
    6. Click the “Edit Text” button
    7. Append ;%USERPROFILE%\adb-fastboot\platform-tools to the end of the existing Path definition (the semi-colon separates each path entry)
  3. Reboot.

Install ADB and Fastboot on macOS

Download tools for MacOS

 

  1. Open up a Terminal window by navigating to Applications/Utilities or searching for it in Spotlight.
  2. Enter the following command to open up your Bash profile: touch ~/.bash_profile; open ~/.bash_profile
  3. The .bash_profile file should open in your default text program.
  4. Add this line to the end of the file: export PATH=”$HOME/[FOLDERNAME]/bin:$PATH” replacing [FOLDERNAME] with the location where you extracted ADB and fastboot.
  5. Save the file and press Cmd+Q to quit your text editor.
  6. In your terminal enter source ~/.bash_profile to run your Bash profile for the first time.

Install ADB and Fastboot on Linux

Download tools for Linux

  1. Extract it somewhere – for example, ~/adb-fastboot.
  2. Add the following to ~/.profile:
     if [ -d "$HOME/adb-fastboot/platform-tools" ] ; then
         export PATH="$HOME/adb-fastboot/platform-tools:$PATH"
     fi
    
  3. Log out and back in.

Connect Android device with Computer using ADB

To use adb with your device, you’ll need to enable developer options and USB debugging. Trouble enabling debugging options. Click here for how enable USB debugging with picture guide.

  1. Open Settings, and select “About”.
  2. Tap on “Build number” seven (7) times.
  3. Go back, and select “Developer options”.
  4. Scroll down, and check the “Android debugging” entry under “Debugging”.
  5. Plug your device into your computer.
  6. On the computer, open up a terminal/command prompt and type adb devices.
  7. A dialog should show on your device, asking you to allow usb debugging. Check “always allow”, and choose “OK”.