Click here to read more
What are ADB and Fastboot Tools ?
These two tools allow you to send terminal commands to your phone from your computer via USB. They both serve different functions, but they can be installed with relative ease at the same time, so it’s helpful to have both. Here’s a (very) brief breakdown on what these tools do:
Android Debug Bridge (ADB): This tool allows you to send a wide array of terminal commands—including but not limited to basic Linux shell commands, plus some specialty developer commands—to your phone at just about any time (as long as you have debugging enabled on your phone). You can send commands while the phone is turned on and booted, or even when it’s in recovery mode. While ADB is often used in conjunction with rooting or modifying your phone, you can use ADB to send terminal commands to unrooted devices as well.
Fastboot: When you need to modify your phone’s firmware, fastboot is the tool you need. This allows you to send commands to the bootloader, which means you can flash/modify things like custom recoveries. You can’t flash whole ROMs with it, but it’s helpful for many things that ADB can’t do. Fastboot isn’t enabled for all phones, so you may have to check your specific device.
Like many things, installing ADB, fastboot on Linux should be a one-command affair. The only reason you may have a problem is if your distribution doesn’t come equipped with the proper repositories. If not, you can easily add the necessary repositories with a second command. If you’re on Ubuntu, you can skip the repository step below then move on to the install command.
To add the necessary repositories (maintained by the official Ubuntu Phablet Team), enter then run this command:
sudo add-apt-repository ppa:phablet-team/tools && sudo apt-get update
Once that’s done (or if you’re on Ubuntu), enter the following command:sudo apt-get install android-tools-adb android-tools-fastboot