Technology and General Blog

ADB (Android Debug Bridge) and Fastboot let us to regulate Android cellular units from the computer system. Right after looking through this tutorial, you will know how to install and use ADB and Fastboot to regulate your Android mobile cellphone.

Obtaining started: Putting in ADB, Fastboot, and finding your Android device ready

Ahead of commencing, you need to help your cell phone Developer Alternatives submenu. I have a Redmi 9 mobile phone, but the ways are related in most Android equipment.

To begin, on your telephone, faucet Configurations and decide on About Telephone in the screenshot under, it is the very first option some Android gadgets have this alternative at the bottom of the Settings menu.

Faucet MIUI Version quite a few times till you see Developer Alternatives are enabled.

Go again to the Configurations menu, scroll down to discover, and faucet More Configurations.

Would you make sure you scroll down to uncover Developer alternatives and faucet it?

Empower USB Debugging as proven in the pursuing screenshot.

Tap the confirmation box “I’m mindful of achievable hazards, and presume all feasible outcomes voluntarily” and push Alright.

Now you can set up ADB and Fastboot from your Ubuntu pc.

1st, set up Android Debug Bridge and Fastboot utilizing the apt command as demonstrated in the screenshot down below.

sudo apt install android-applications-adb android-applications-fastboot -y

To start the ADB server, run the adhering to command.

Your telephone unit permits USB debugging when requested by tapping Alright, as proven in the graphic down below. In some instances, this prompt on the cell appeared in the subsequent phase.

To see if your unit was adequately detected, you can run the following command.

As you can see, the machine was detected effectively.

You can open up a shell on your Android device by functioning the command down below.

As you can see, the pwd command demonstrates I’m in the technique root directory. The ls command will listing all data files and directories inside of. You can look through all directories applying the same Linux syntax.

Transferring files from computer system to cell

The subsequent command displays how to deliver documents from your computer to your cellular unit. To do it, you want to operate adb with the press option followed by the file you want to copy to your phone and your phone’s route exactly where the file will be stored.

The command below is applied to copy the img.jpg file to /storage/sdcard0/Photos/. You can learn file and listing paths by browsing the shell as discussed earlier (adb shell).

adb press img.jpg /storage/sdcard0/Images/

Transferring documents from cell to pc

You also can duplicate data files from your cellular machine by employing the pull solution as revealed in the illustration below, in which the file img.jpg is copied into the computer’s present-day directory (.).

adb pull /storage/sdcard0/Shots/img.jpg .

Installing APK packages

Adb also lets you to install applications on your cellular product. To do it, you have to have to help the Set up by using USB positioned in the Developer Possibilities submenu in your cell phone Configurations, as revealed in the impression underneath.

At the time the Put in by using USB possibility was enabled, you can set up any apk supported deal by incorporating the install option followed by the apk package deal as revealed down below.

adb set up maildroid_5.05-505_minAPI18.apk

Your cellular phone will request your affirmation, as shown in the screenshot underneath tap Install to get the application set up.

If the application had been adequately put in, you would see the “Success” information proven in the subsequent screenshot.

Uninstalling APK offers

You also can uninstall apps from your cellular unit making use of your computer system. In its place of employing the set up alternative discussed beforehand, you need to have to use the uninstall possibility.

Just before uninstalling a offer, you require to see its name you can do it by opening a shell on your Android device and jogging the command of the instance under (change maildroid with the app identify you want to find).

adb shell
pm checklist offers | grep maildroid

As you can see, the bundle name is com.maildroid. To remove it, operate:

adb uninstall com.maildroid

Further instructions

The pursuing command can be used to alter your phone resolution.

adb shell wm sizing

The command under will allow you to edit your mobile’s dpi (dots density or Dots per inch).

adb shell wm density

Inventory recovery doesn’t aid flashing personalized ROMs. The Fastboot command beneath can be used to put in a custom restoration this sort of as CWM or TWRP.

fastboot flash restoration

The command under allows you to fully wipe your cell to put in a customized ROM.


Both of those Adb and Fastboot enable end users to run their Android equipment from the computer. Studying to use these purposes is required for any person working with cellular units. It is essential to spotlight that the programs explained in this tutorial are multi-system, such as Linux, MacOS, and Home windows. 

I hope this tutorial on Adb and Fastboot was handy. Keep pursuing Linux Hint for extra Linux tips and tutorials.

Leave a Reply

Your email address will not be published. Required fields are marked *