How to Install ADB and Fastboot Tool on Mac and Linux

2
452
Install ADB and Fastboot Tool on Linux and MAC

ADB and Fastboot are two must have tool if you want to root or tweak your Android device via fastboot mode, otherwise the device will not connect with your Mac or Linux and you can’t perform the task. Both the tools are used to send terminal commands to an Android device from a Mac or Linux command line.

what is ADB?

Android Debug Bridge is a command-line tool that has been a part of Android SDK and development tools. This works when the device is powered on and booted into OS or Recovery.The tool allows your PC to communicate with your Android device and perform several actions.

what is Fastboot?

Fastboot mode allows you to flash any partition on an Android device like system, boot, recovery, cache.. etc.Using Fastboot / bootloader, you can also flash the custom built .img files via fastboot. For example, a custom recovery like TWRP or CWM.

Pre-Requirements:-

  • Developer option should be enabled.[How?]
  • Usb debugging enabled. [How?]
  • Oem unlocked. [How?]

Download:-

  • android.zip file: [Mirror]
  • platform tools package for Linux: Link
  • platform tools package for macOS: Link

How to safely Install ADB and Fastboot on Mac or Linux

Install ADB on Linux

  1. Download the platform tools package for Linux from above link.
  2. Create a folder named ‘Adb’ on desktop.
  3. Extract the  downloaded “platform-tools-latest-linux.zip” file to that folder.
  4. open a Terminal window and change the directry to following folder: cd /Desktop/adb/
  5. Now connect your Android device to the PC via USB cable and enter the following command in the Terminal window: ./adb devices
  6. The first time you enter this command, the Terminal window will return the  prompt with the “unauthorized” message.
  7. Tap on ok to allow USB debugging.
  8. Finally, enter the “./adb devices” command again and you will be able to establish a successful connection between your PC and device over ADB.

Install ADB on macOS

  1. Download the platform tools packagefrom the above link.
  2. Create a folder named ‘Adb’ on desktop.
    Extract the  downloaded “platform-tools-latest-linux.zip” file to that folder. 
  3.  Go to the Launchpad and open Terminal.
  4. You will now need to direct it to the location where ADB and other binary files are present. So enter the following command:cd /Desktop/adb/
  5. Now that your Terminal is directed to use this location, you can connect your device to the PC via USB cable.
  6. Enter the following command to initiate an ADB connection with your Android device: ./adb devices
  7. The first time you enter this command, the Terminal window will return the  prompt with the “unauthorized” message.
  8. Tap on ok to allow USB debugging.
  9. Then enter the “adb devices” command again to establish a successful connection between your PC and device over ADB.

2 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.