How to install ADB & Fastboot on Ubuntu
In this tutorial, we will discuss how to install ADB & Fastboot on Ubuntu machines. Android developers as well as Android phone explorers are well aware of the term ADB & Fastboot. Both of these are extremely useful & necessary tools required Android development or for rooting the android phone. But let’s discuss them in a little brief before we learn how to install them on our Ubuntu systems.
ADB or Android Debug Bridge, is a command line utility that let’s us control an android device from the computer itself. It’s part of Google Android SDK & can be used to run shell commands or to copy the files to & from the device & also to install or remove the applications from device.
Fastboot is basically a diagnostics mode that is used to modify the Android file system from computer when the android device is in bootloader mode. It’s an alternative to recovery mode & is normally used to perform updates or to perform installations.
We will now learn how to install of ADB & Fastboot on Ubuntu systems.
( Also Read: Scripting Tutorials )
To install ADB & Fastboot on Ubuntu systems is pretty easy as the packages are available with the default Ubuntu repositories. To install both the ADB & Fastboot, execute the following command from the terminal,
$ sudo apt-get install android-tools-adb android-tools-fastboot
Once the installation has been finished you can check the ADB version by running the following command,
$ adb version
& you should get the complete version as output of the command.
After installation the ADB server will start on its but if that’s not the case than you can start the ADB server using ,
$ sudo adb start-server
To stop the ADB server, use
$ sudo adb kill-server
Now to test out that your ADB installation is working fine, we will connect an android device to our system. But before we connect the android device, we need to make sure that the device has ‘USB Debugging’ enabled. It can be enabled by going into device Settings & than into the Developer Options (Some devices require that you tap several times on Android Version in About Phone section to enable Developer Options).
Once the USB Debugging has been enabled, connect the android device to system using the USB cable.
Now open the terminal and execute the following command,
$ adb devices
Upon the command execution you will get a pop-up on your Android device to allow USB Debugging, press OK to enable the debugging. Now execute the same command mentioned above & we should than see our device in list output.
Note : If getting any permissions regarding error after connecting the device than restart the ADB server & try again.
This was one way to install ADB & Fastboot on Ubuntu systems, another method is to install the complete Google Android SDK. We will discuss that in detail in our upcoming tutorial.
If getting an error or have a question you can send it to us using the comment box below.