We need ADB and Fastboot to issue commands to Android devices. On Windows this is done in a few different ways as described here, for Linux though, it takes a few commands via the Terminal to setup.
ADB is a command line utility used for Android. It has many uses, including copying files from your device, unlocking the bootloader, flashing factory images, sideloading updates and more. Sometimes it can be used to root Android devices as well. So without much ado, here’s how you can install it on Linux distributions like Ubuntu!
Installing ADB and Fastboot on Ubuntu is a simple one issuing a few commands in the Terminal. If you are using a distro based on Ubuntu that does not have the necessary repositories, then you’ll need to add the necessary repositories first.
Dozens of premium Android apps go on sale every single day. Check out the latest over at PlayStoreSales.com.
The stock Ubuntu installation should already have this setup, so if you are using Ubuntu then you can skip step 1 below. If your are using Ubuntu, you already have the necessary repositories, so just can skip to step 2 and enter that command to get the ADB and Fastboot installed onto your PC.
ADB Fastboot Linux
- sudo add-apt-repository ppa:phablet-team/tools && sudo apt-get update
- sudo apt-get install android-tools-adb android-tools-fastboot
That’s it. You are done. Assuming everything installed properly, you can test this by first enabling Developer Options and then going into that menu to enable USB Debugging Mode. Once that is done, go ahead and connect your Android device to the PC with a micro USB cable and then run the following command in the Linux Terminal
- adb devices
If everything is setup correctly, then you should see your device listed like it is in the image above. If it isn’t setup properly then you won’t see that “HT118RX05398 device” line. The first set of characters in that line will be different than you see in this image. Those characters are a way for the PC to know which device is connected. Think of it as an identifier string.
Let me know if you have any issues with getting ADB and Fastboot installed on your Linux device. I might not be able to answer everything, but I will do my best to help out when I can.