Install ADB And Fastboot The Easiest Way On Linux Mint, Ubuntu And Other Debian Based Distros

Share:

In this article, we will discuss on how to install Android Debug Bus (ADB) and Fastboot on Debian based Linux, like on Linux Mint, Ubuntu, Kali, Parrot Sec OS etc. This article will guide you the easiest method to install ADB and Fastboot on Linux machine. If you are a Android user or a developer, you might be well aware of these two tools. These are extremely useful and must have tool for a developer and as well for a advance Android user. Before we install the tools, lets know about these a little more.

Android Debug Bus: ADB is a cross-platform command line utility, which help users to communicate to Android device form a PC using USB cable. ADB can be used to copy files, run shell commands, controlling device form PC ect. As you have already known, both ADB and Fasboot are part of Google Android SDK. Fastboot: Fastboot provides functions to manipulate Android file system and bootloader. You can use Fastboot to flash custom recoveries and updates.


Following below instructions, you should be able to install ADB and Fastboot on your system easily.

These commands are same for all Debian based distros
Instructions to install Android Debug Bus (ADB)
Open a terminal and enter the following commandsto install ADB ,
First
sudo apt-get update
then




sudo apt-get install android-tools-adb

Instructions to install Fastboot
Again enter the following command on terminal to install fastboot

sudo apt-get install android-tools-fastboot

Now you have successfully install these two packages, ADB and Fastboot.

Read also: How to install ADB & Fastboot on Arch Manjaro Linux

To start and kill adb server enter the following commands.
to start ADB server,




sudo adb start-server
to stop ADB server
sudo adb kill-server
After starting adb server connect your Android device with USB debugging mode enabled to your PC.
Allow if prompted on Android device and issue the following command to list your device on ADB.
adb devices
If your device is detected, it will be like below and you are done.

But if your device doesnt show up, try to kill and start the adb server again. If you face any issue just comment below.

13 comments:

  1. Samsung S8 both FRP and OEM Lock on when starting in recovery mode. Unable to start in USB debugging mode. Appreciate any help:)

    ReplyDelete
  2. When I enter command: adb devices

    I don't see my device I think it's not mounted but how do I mount it's stucked in FRP.

    ReplyDelete
  3. Thanks for this!! Any advice? Unfortunately I get "unauthorized" when I type:
    Laptop@Laptop:~$ adb devices
    List of devices attached
    8XV5T15A30003117 unauthorized

    ReplyDelete
  4. Hi, I am unable to use fastboot command from terminal in Linux Mint 19, but it works with the same Android device in Linux Mint 18.3. This is after having installed both the adb-tools and adb fastboot. The device is recognized in recovery mode, but not with fastboot devices. I get: no permissions (user in plugdev group; are your udev rules wrong?). Same device on Mint 18.3 is able to execute and recognize fastboot on a different machine. This is a rooted Android device, the bootloader unlocked (Nexus 5 hammerhead). Seems like Mint 19 is more strict?

    ReplyDelete
    Replies
    1. did you ever solve this issue? i have come up against it myself and have resorted to using my windoze masheen to fastboot. i don't want to do that.

      Delete
  5. Hello. I have a problem, it does not appear in the list my device is connected.

    tt@tt-Aspire-5750:~$ sudo adb start-server
    [sudo] senha para tt:
    tt@tt-Aspire-5750:~$ sudo adb kill-server
    tt@tt-Aspire-5750:~$ adb devices
    List of devices attached
    * daemon not running; starting now at tcp:5037
    * daemon started successfully

    ReplyDelete
    Replies
    1. Great Article
      android based projects

      Java Training in Chennai

      Project Center in Chennai

      Java Training in Chennai

      projects for cse

      The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

      Delete
  6. You can find and download all the latest minimal adb files here

    ReplyDelete
  7. teamviewer? that doesn't sound sketchy at all.

    ReplyDelete
  8. i am getting emulator-5600 as part of the adb devices, but still android is asking me to login with gmail account.i believe some steps are missing in here?

    ReplyDelete
  9. Getting below error
    FAILED (remote: not allowed in locked state)

    ReplyDelete
  10. I'm running Ubuntu 20.04.1 LTS, and I finally got it to where it recognizes the Samsung TM290 when I plug it in, but running the 'adb devices' command gives back an empty list. I've killed and restarted the adb server, even checked to make sure no other services that are running would be conflicting. Any advice?

    ReplyDelete