How to install ADB & Fastboot on Linux
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.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.
Installation
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.
If getting any permissions regarding error after connecting the device than restart the ADB server & try again.
Comments
Post a Comment