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

Tagged: , , ,

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

    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 15 Seconds ADB Installer or Minimal ADB and Fastboot for Windows 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.


    ? Google Camera APK | Mod APK

    #22343

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

    #22750
    shibaa987
    Moderator

    [quote quote=22343]I have downloaded the folder and extracted on linux. But I could not find the ‘ADB-Install-Linux.sh’. Pleaes help
    [/quote]

    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.


    ? Google Camera APK | Mod APK

    #26386
    N3090n3
    Member

    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

    #26434
    shibaa987
    Moderator

    [quote quote=26386]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
    [/quote]

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


    ? Google Camera APK | Mod APK

    #44169
    neil curtis
    Member

    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
    Moderator

    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.

    [su_note note_color="#FBF4DD" text_color="#A38C68" radius="3" class="" id=""]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.[/su_note]

    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.


    ? Google Camera APK | Mod APK

    #45065
    #45214
    shibaa987
    Moderator

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


    ? Google Camera APK | Mod APK

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.