Skip to main content

Installing ADB & Fastboot on Linux

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

Popular posts from this blog

How to install mpv player on Windows with lua scripts and custom configs

If you are reading this blog then I dont need to explain why mpv is best media player across platforms. And today I will guide you how to install this awesome player on windows. 1. Download the latest stable build from this link https://sourceforge.net/projects/mpv-player-windows/files/64bit/ 2. Extract it 3. Go to installer folder 4. Right click on mpv-install.bat and click run as admininstrator. Installation will take some time. After installation is done don't delete that folder coz the folder itself itself is installation directory. 5. For lua scripts create a folder in installation directory named scripts and paste your script in that folder. 6. And copy mpv.conf file in this directory C:\Users\user\AppData\Roaming\mpv 7. That's it 

Screen Tearing in Linux

How to solve screen tearing issue in Linux Unfortunately for Linux fans, screen tearing is, and has been, a persistent annoyance that doesn’t seem to be going anywhere. Though most of the distributions don't face this kind's of problem. But, some of the distributions still face such kind of problems. NVIDIA This isn’t the only solution for NVIDIA, and there are certainly situations that it doesn’t apply to, but it’s one of the better options, and it doesn’t rely on NVIDIA’s graphical utility that doesn’t always play nice with desktop environment configurations. To start, you’ll need to enable setting for the NVIDIA DRM module (modsetting). Start by making a configuration file in the modprobe directory. sudo touch / etc / modprobe.d / nvidia-nomodset.conf Open that file with your favorite text editor, and insert the following line: options nvidia-drm modset = 1 Update your kernel’s initramfs to apply your change. sudo update-initramfs -u When

Extract option missing

Extract option missing in contextual menu You just have to install ark to fix this issue. Ark is a graphical file compression/decompression utility with support for multiple formats, including tar, gzip, bzip2, rar and zip, as well as CD-ROM images. Ark can be used to browse, extract, create, and modify archives. sudo apt-get install ark This will install ark and add options in your contextual menu