This tutorial is going to show you how to install ADB & fastboot on Ubuntu, which is quite easy.
What is ADB and Fastboot
ADB and fastboot are two components of the Android SDK Platform-Tools.
ADB stands for Android Debug Bridge. It’s a command line utility that allows you to do the following stuff:
- Control your Android device over USB from your computer
- Copy files back and forth
- install and uninstall apps
- run shell commands
- and much more
Fastboot is a command line tool for flashing and Android device, boot an Android device to fastboot mode, etc…
How to Install ADB and Fastboot on Ubuntu
Follow the tutorial below or Watch this video also.
It’s super easy. Simply run the following commands in a terminal window to install them from Ubuntu repository.
sudo apt-get update sudo apt-get install android-tools-adb android-tools-fastboot
To check ADB version, run
adb version
Sample output:
Android Debug Bridge version 1.0.32
Enable USB Debugging on Your Android Device
While you Android device is unplugged from USB, go to your Android settings, scroll all the way down and tap About phone
or About device
. Then tap Build number 7 times which makes you a developer.
SEE HOW TO ENABLE USB DEBUGGING IN ANDROID
Now go back to the settings, you will see a new button called Developer options
. Tap that button and enable USB debugging.
Test the Installation
To check if ADB is working properly, connect your Android device to your Ubuntu computer via USB cable. After that, type the following command in your Ubuntu terminal window.
adb devices
Also check if Fastboot is working properly, connect your Android device to your Ubuntu computer via USB cable. After that, type the following command in your Ubuntu terminal window.
fastboot devices
You will be prompted to allow USB debugging from Ubuntu computer like the screenshot below. Select OK.
Then type run adb devices
or fastboot devices
command again and your Android device will show up.
If you get the following error,
???????????? no permissions
Then all you need to do is restart adb daemon, run
sudo adb kill-server
Then
sudo adb start-server
That’s it!
I hope this tutorial helped you install adb and fastboot on Ubuntu 16.04, 16.10 and Ubuntu 14.04.