All ADB & Fastboot commands

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

All ADB and Fastboot commands By @mkyee_android

Displays the help documentation on ADB commands


adb help
List of all Android devices that are correctly connected to the PC via ADB
adb devices
Restart your Android to system
adb reboot
Reboot your device into fastboot or bootloader mode
adb reboot bootloader
adb shell pm uninstall -k –user 0 Uninstall a system app

com.ie.app
Install APK files manually on your Android using ADB
adb install
Install ota update
adb sideload ota-update.zip
Install APK (replacing the file name with the particular APK file name)
adb install filename.apk
Re-install or update an APK to a newer version on Android using ADB
adb install -r filename.apk
Install APK in the external SD Card (if supported by the application)
adb install -s filename.apk
Uninstall any app using ADB command (see next)
adb uninstall
Uninstall (replace package name with your desired one)
adb uninstall com.ie.app
Uninstall the app keeping the data and cache untouched
adb uninstall -k com.ie.app
Using this command, you can create a full backup of your Android device
adb backup // and save it to the computer
Use this command to restore the backup
adb restore //
Executing this command will show you the list of Android devices
fastboot devices connected to the PC on Fastboot Mode.
With this code, you can unlock the Bootloader of your Android device (if
fastboot oem unlock OEM permits)
Relock the bootloader if you want to go back to stock position on your
fastboot oem lock Android device
Reboot the device into Fastboot Mode again from the Fastboot Mode
fastboot reboot bootloader itself. (necessary sometimes while flashing some image files)
This is the most important command for Android enthusiasts. Using this
fastboot flash command, you can flash anything to your Android, like an OTA ZIP or a
TWRP Image.
Use to flash boot image on your Android. For example: flashing
fastboot flash boot boot.img a Magisk Patched Boot image to root your phone.
Use to flash recovery images like TWRP on Android devices.
fastboot flash recovery recovery.img
This command is used to boot your device using a particular image file
fastboot boot filename.img without flashing it. This can be useful for testing purposes before a
permanent flash.
This command is used to flash vbmeta (verification bot)
fastboot flash vbmeta vbmeta.img
Executing this command will show you the list of Android devices
adb devices connected to the PC on adb (debugging) Mode.

You might also like