How to Install ADB & Fastboot on Linux or MAC OS X

  

LineageOS Download Forums Forum for Common Topics (Generic Topics for all Devices) Common How-To Guides How to Install ADB & Fastboot on Linux or MAC OS X

Tagged: ADB, Fastboot, Linux, MAC

This topic contains 8 replies, has 5 voices, and was last updated by  shibaa987 2 months ago.

 
 
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #3681

    shibaa987
    Keymaster

    ADB and Fastboot are the basic utilities if you want to ROOT, Unlock bootloader or install a custom Recovery like TWRP on any Android device. So, if you are a developer or you want to learn how you can get most out of your Android as a Developer or an advanced user then you must need ADB and Fastboot which are the basic building blocks for your Android.

    Here is How to install ADB & Fastboot with One Click on Windows PC if you are not comfortable with Linux or MAC.

    Here I have brought you an Easy to Install ADB and Fasboot on Linux and MAC OS X. Just one command execution to install ADB and Fastboot on Linux and MAC. The scripts are provided in the DOWNLOADS section followed by the Step By Step ADB & Fastboot Installation Guide for Linux and MAC.

    ADB Fastboot Installation on Linux and MAC

    ADB & FASTBOOT INSTALLATION SCRIPTS DOWNLOAD LINK:

    INSTALLING ADB & FASTBOOT UTILITIES ON LINUX AND MAC:

    Step By Step Guide

    How to Install ADB and Fastboot on Linux

    1. Download and extract the Android.zip to a directory.
    2. Go to the downloaded directory and then enter into Android directory where all the scripts are kept.
    3. Execute the following command on a console or Terminal with ROOT privilege on your Linux machine:
      # sh ADB-Install-Linux.sh

      Or enter the absoulute path to the script to execute:

      # sh /path/to/install/script/ADB-Install-Linux.sh

      NOTE: This command will move the ADB and Fastboot binaries to /usr/bin location and move the Android udev rules file to /etc/udev/rules.d/ location also this script will install JDK if it is not installed.

    4. Exit from the command console and the open a new command console to use ADB and fastboot.

    How to Install ADB & Fastboot on MAC

    1. Download and extract the Android.zip to a directory.
    2. Go to the downloaded directory and then enter into Android directory where all the scripts are kept.
    3. Execute the following command on the Terminal with ROOT privilege on your MAC OS:
      # sh ADB-Install-Mac.sh

      Or enter the absoulute path to the script to execute:

      # sh /path/to/install/script/ADB-Install-Mac.sh
    4. Exit from the command console and the open a new command console to use ADB and fastboot.

    MAC supports drag-n-drop of the command script to execute the command and some Linux distros also support the same. So, to execute the script just drag the script from a file explorer window and then drop it on an Terminal Window.

    ADB and Fastboot is now installed on your machine. If you have any concerns or doubt then login and leave a reply and you will be replied back instantly.

    Lineage OS ROM | Linux How to Guides

    Like my work? Hit the Thanks button.
    Request a Forum for a new device if you don't find one!

    #22343

    g n v r vikram
    Participant

    I have downloaded the folder and extracted on linux. But I could not find the ‘ADB-Install-Linux.sh’. Pleaes help

    #22750

    shibaa987
    Keymaster

    I have downloaded the folder and extracted on linux. But I could not find the ‘ADB-Install-Linux.sh’. Pleaes help

    Ok, I have reverted back to the older ADB and fastboot link. Follow the guide and you should be able to install ADB and fastboot on Linux.

    Lineage OS ROM | Linux How to Guides

    Like my work? Hit the Thanks button.
    Request a Forum for a new device if you don't find one!

    #26386

    N3090n3
    Participant

    I’m running Ubuntu 16.04 and when I try to move the install file into the usr/bin file it tell me permissions error??? IDK what to do to move it there I am set as the admin

    Attachments:
    #26434

    shibaa987
    Keymaster

    I’m running Ubuntu 16.04 and when I try to move the install file into the usr/bin file it tell me permissions error??? IDK what to do to move it there I am set as the admin

    There is a “Show more details” in the error message. Click on the arrow and post the exact details of the error after which I can guide you what exactly to do.

    Instead of moving the whole Linux directory to /usr/bin, just try to move the adb_Linux and fastboot_Linux files from the Linux directory and see if you still face this issue ??

    Lineage OS ROM | Linux How to Guides

    Like my work? Hit the Thanks button.
    Request a Forum for a new device if you don't find one!

    #44169

    neil curtis
    Participant

    Hi, I’m new here,and new to Linux. Previously rooted, TWRP’d and custom rim’s an HTC M9 with a Windows PC. Back to Linux, in particular Ubuntu 18.04, can we not just issue

    Sudo apt install adb

    And then

    Sudo apt install fastboot

    I tried this and although i have only vaguely tested it I can get the appropriate responses to
    Adb devices
    Adb reboot bootloader
    Fastboot devices

    Not tried any thing else yet

    Trying to learn not be difficult!!

    N

    #44474

    shibaa987
    Keymaster

    Hi @neil_curtis

    When you install from an apt source, it is actually downloaded from a Ubuntu repository.
    But ADB and fastboot are Android SDK platform tools which will change time to time with respect to that ubuntu repository.

    You can issue the apt install command to install adb and fastboot on ubuntu.
    But it won’t guarantee the installation of latest ADB and fastboot binaries.

    In most cases it would just work fine.
    But there are many cases too where you may need to have the latest Android SDK platform tools, which is the latest ADB and fastboot tools.

    I hope I have clarified what you were looking for.

    Lineage OS ROM | Linux How to Guides

    Like my work? Hit the Thanks button.
    Request a Forum for a new device if you don't find one!

    #45065

    Mike Chamberlain
    Participant

    #45214

    shibaa987
    Keymaster

    I am able to download. What’s wrong with the link? What error do you see?

    Lineage OS ROM | Linux How to Guides

    Like my work? Hit the Thanks button.
    Request a Forum for a new device if you don't find one!

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.