How to install ADB and Fastboot on Linux Mint powered computer

>>>How to install ADB and Fastboot on Linux Mint powered computer

How to install ADB and Fastboot on Linux Mint powered computer

To mess around with Android-powered devices sooner or later you will need Android SDK or more precise two of its components: Android Debug Bridge (or ADB) and Fastboot.

ADB is a command line tool that send terminal commands from your computer to phone connected via USB. While ADB is usually used in the process of rooting or modifying the phone, commands can be sent to unrooted devices too. I am using ADB to reboot device or boot it into recovery mode. More info about ADB can be found on official documentation.

Fastboot is a tool to modify firmware of the device. It allows sending commands to bootloader, therefore you can flash custom system images and recoveries. You can’t flash whole ROMs with it, so usually partitions are written one-by one (bootloader, radio, system, boot, recovery). Not all devices support Fastboot, for instance Rockchip-based devices (e. g. GeekBox) use own application to flash images called upgrade_tool. For more info on Fastboot see nice wiki page at Cyanogenmod or Wikipedia.

Installing both ADB and Fastboot on Linux Mint (or any Ubuntu based distribution) is easy as running following command in terminal:

sudo apt-get install android-tools-adb android-tools-fastboot

It is also recommended to declare rules for main Android phone manufacturers in udev. Perform that by executing three commands below:

sudo wget -O /etc/udev/rules.d/51-android.rules https://raw.githubusercontent.com/NicolasBernaerts/ubuntu-scripts/master/android/51-android.rules
sudo chmod a+r /etc/udev/rules.d/51-android.rules
sudo service udev restart

To see what ADB version you’ve got, run:

adb version

Which will output something like:

Android Debug Bridge version 1.0.31

I don’t remember exact reason why, but I had to update ADB to more recent version than was on Ubuntu’s repository, so I ran:

wget -O - https://skia.googlesource.com/skia/+archive/cd048d18e0b81338c1a04b9749a00444597df394/platform_tools/android/bin/linux.tar.gz | tar -zxvf - adb
sudo mv adb /usr/bin/adb
sudo chmod +x /usr/bin/adb

And got following adb version:

Android Debug Bridge version 1.0.32

Update December 11th: as of now repository already contains version Android Debug Bridge version 1.0.32, so no need to install manual update.

That’s it – you’re ready to root your device or upgrade already rooted one.

Have fun unlocking full Android potential!

2016-12-12T00:08:36+00:00 2016-07-21|Linux Mint|4 Comments

About the Author:

Gytis Repečka is System analyst with passion to open source, electronics & cars, spreading bits about tech, music and privacy.

4 Comments

  1. pushpam 2016-12-23 at 04:01 - Reply

    bro even I had to type those 3 (at the end) and adb started working …but fastboot didnt. do u know the command for tht also.
    I mean my adb was not woring. then i typed
    wget -O - https://skia.googlesource.com/skia/+archive/cd048d18e0b81338c1a04b9749a00444597df394/platform_tools/android/bin/linux.tar.gz | tar -zxvf - adb
    2
    sudo mv adb /usr/bin/adb
    3
    sudo chmod +x /usr/bin/adb

    similarly is there any coomad for fastboot

    • Gytis Repečka 2016-12-23 at 18:24 - Reply

      Do you get any error when trying to use Fastboot?

      Which Linux do you use?

  2. johnnybgood 2017-07-16 at 23:50 - Reply

    I’m a Linux newb but another site said you should proceed the install command with:

    sudo apt update

    So, the commands are issued as follows:

    sudo apt update
    sudo apt install android-tools-adb android-tools-fastboot

    • Gytis Repečka 2017-07-18 at 00:52 - Reply

      Yes, it is always a good idea to refresh repository lists with

      sudo apt-get update

Leave A Comment