UbuntuUbuntu Based

How To Install ADB and Fastboot on Ubuntu 22.04 LTS

Install ADB and Fastboot on Ubuntu 22.04

In this tutorial, we will show you how to install ADB and Fastboot on Ubuntu 22.04 LTS. For those of you who didn’t know, Android Debug Bridge (ADB) and Fastboot are two important tools used by Android developers to communicate with Android devices via a computer. ADB is used to communicate with Android devices while they are connected to the computer, allowing for the installation of apps, debugging, and more. Fastboot, on the other hand, is used to flash images such as custom recoveries and ROMs to Android devices.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of ADB and Fastboot on Ubuntu 22.04 (Jammy Jellyfish). You can follow the same instructions for Ubuntu 22.04 and any other Debian-based distribution like Linux Mint, Elementary OS, Pop!_OS, and more as well.

Prerequisites

  • A server running one of the following operating systems: Ubuntu 22.04, 20.04, and any other Debian-based distribution like Linux Mint.
  • A USB cable to connect your Android device to your computer.
  • Enabled Developer options and USB debugging on your Android device.
  • SSH access to the server (or just open Terminal if you’re on a desktop).
  • An active internet connection. You’ll need an internet connection to download the necessary packages and dependencies for ADB and Fastboot.
  • A non-root sudo user or access to the root user. We recommend acting as a non-root sudo user, however, as you can harm your system if you’re not careful when acting as the root.

Install ADB and Fastboot on Ubuntu 22.04 LTS Jammy Jellyfish

Step 1. First, make sure that all your system packages are up-to-date by running the following apt commands in the terminal.

sudo apt update
sudo apt upgrade
sudo apt install wget apt-transport-https gnupg2 software-properties-common

Step 2. Installing ADB and Fastboot on Ubuntu 22.04.

By default, the ADB is not available on Ubuntu 22.04 base repository. Now run the following command below to enable the Universe repository on your Ubuntu system:

sudo add-apt-repository universe

After the repository was added, you can proceed with the installation of ADB and Fastboot on Ubuntu 22.04 using the following command below:

sudo apt install android-tools-adb android-tools-fastboot

Step 3. Testing ADB and Fastboot.

Once you have installed ADB and Fastboot on your Ubuntu 22.04 LTS system, you can test them by connecting an Android device to your computer via USB and running the following commands:

  • To check if your device is detected, run the following command:
adb devices

If your device is detected, you should see its serial number listed in the output of the above command.

  • To boot your device into fastboot mode, run the following command:
adb reboot bootloader
  • To check if your device is detected in fastboot mode, run the following command:
fastboot devices

If your device is detected, you should see its serial number listed in the output of the above command.

Table of command line options for ADB server:

Option Description
start-server Starts the ADB server.
kill-server Stops the ADB server.
devices Lists all the devices connected to the ADB server.
connect <host[:port]> Connects to a device over TCP/IP.
disconnect <host[:port]> Disconnects from a device.
forward –list Lists all port forwardings.
forward <local> <remote> Forwards TCP connections from local to remote.
reverse –list Lists all reverse port forwardings.
reverse <remote> <local> Forwards TCP connections from remote to local.
shell Starts an interactive shell on the device.
push <local> <remote> Pushes a file from the local machine to the device.
pull <remote> <local> Pulls a file from the device to the local machine.
install <file.apk> Installs an APK on the device.
uninstall <package> Uninstalls a package from the device.
logcat Displays the device log in real-time.
bugreport Generates a bug report.

Congratulations! You have successfully installed ADB and Fastboot. Thanks for using this tutorial for installing the ADB and Fastboot on Ubuntu 22.04 LTS Jammy Jellyfish system. For additional help or useful information, we recommend you check the official Android website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!
Back to top button