In this post, we gonna find or learn the use of some ADB Commands as well as Fastboot Commands which are useful for the Android device user. Although there is a large list of ADB & Fasboot Commands, we gonna explain the most useful ones only.
ADB stands for Android debug bridge which allows you to get control on your android using ADB Commands on the PC. Using this you can do modify or can create changes on the phone. Basically, you can easily communicate through android phone & PC.
f
You can do stuff like installing Apps over ADB, Flashing Stock ROM or flashing TWRP Recovery for various purposes that we gonna cover in this post.
So, Let’s find out some Best ADB Fastboot Commands that you should start using.
Table of Contents
List of ADB & Fastboot Commands
- What is the Difference between ADB Commands & Fastboot Commands?
ADB Can be used while your device is on. Means you can apply this device while your device is working. The Commands for ADB are pretty basic like installing apps, transferring files, booting your device into bootloader/fastboot mode.
You can only use the fastboot commands while your device is connected in bootloader mode/fastboot mode. Honestly speaking fastboot commands are the most useful. People do use ADB Commands very often. You can do various thing using Fastboot like Unlocking Bootloader, Flashing TWRP Recovery, Rooting Android & lot more.
Requirements:
- Enable USB Debugging
You need to enable USB Debugging on your device. To enable USB debugging, Go to Settings > About Phone > Tap on Builder number 7-8 times. This will enable developer options.
Now, Go to Developer options, Enable USB Debugging from this. Different devices have a different method to enable USB debugging on the android phone. You can search on the internet to find this for your device.
- Install ADB & Fastboot Driver
Just Download ADB & Fastboot Driver. It takes approx 15 Seconds to install them on Windows. After that, we are good to go.
List of ADB Commands
This are the commands which you can use when your phone is connected to the PC while it is On. You will need to unlock the phone, Grant USB Debugging permission to start the use of this ADB Commands.
- Check connected devices
List of connected devices using ADB mode.
adb devices
- Documentation of ADB
Use the following command to find out the full documentation for the use of ADB.
adb help
- Installing App over ADB
You can directly install any app on the android device from the PC.
adb install <path_to_apk>
- Uninstalling Apps over ADB
Uninstall any app directly using ADB Commands. Make sure you know to the Package name of that application.
adb uninstall package_name.apk
- Various commands for Rebooting your device into different modes
You can directly boot your device into Various modes like Rebooting your device into Recovery Mode, Fastboot Mode or Restarting your device.
adb reboot adb reboot recovery adb reboot bootlaoder
- Install update over ADB
You can install any .zip file from the computer using the following commands. This command in mostly used for installing System update that comes in .zip file.
adb sideload filename.zip
Following is the set of Important ADB Commands. Please do note that this is not the complete list of commands.
Device | Normal USB Driver | Qualcomm Driver |
---|---|---|
Xiaomi Mi 1 / 1S | Download | Download |
Xiaomi Mi 2/2A/2S | Download | Download |
Xiaomi Mi 2A | Download | Download |
Xiaomi Mi 2S | Download | Download |
Xiaomi Mi 3 | Download | Download |
Xiaomi Mi 4/4C/4i | Download | Download |
Xiaomi Mi 4C | Download | Download |
Xiaomi Mi 4i | Download | Download |
Xiaomi Mi 5/ 5 Pro | Download | Download |
Xiaomi Mi 5 Pro | Download | Download |
Xiaomi Mi 5s / 5s Plus | Download | Download |
Xiaomi Mi | Download | Download |
Xiaomi Mi 5c / 5x | Download | Download |
Xiaomi Mi | Download | Download |
Xiaomi Mi 6 /6 Plus/6X | Download | Download |
Xiaomi Mi | Download | Download |
Xiaomi Mi 6X | Download | Download |
Xiaomi Mi 8/8 SE | Download | Download |
Xiaomi Mi 8 Explorer Edition | Download | Download |
Xiaomi Mi 8 SE | Download | Download |
Xiaomi Mi Max | Download | Download |
Xiaomi Mi Max 2 | Download | Download |
Xiaomi Mi Max 3 | Download | Download |
Xiaomi Mi Note | Download | Download |
Xiaomi Mi Note | Download | Download |
Xiaomi Mi Note 3 | Download | Download |
Mi Mix | Download | Download |
Mi Mix 2/2S | Download | Download |
Mi Mix Alpha | Download | Download |
Xiaomi Mi A1 | Download | Download |
Xiaomi Mi A2 / A2 Lite | Download | Download |
Xiaomi Mi A3 | Download | Download |
Xiaomi Poco F1 | Download | Download |
Xiaomi Mi Note Pro | Download | Download |
Xiaomi Mi Pad | Download | Download |
Xiaomi Mi Pad 2 | Download | Download |
Xiaomi Mi Pad 3 | Download | Download |
Xiaomi Mi Pad 7.9 | Download | Download |
Xiaomi Mi Play | Download | Download |
List of Fastboot Commands
- Check connected devices
To check connected devices using Fastboot mode to the computer you will have to use the following commands. This will give you the list of the connected devices. If you arent seeing your device then you haven’t installed fastboot driver properly.
fastboot devices
- Check your device bootloader Status
Want to the bootloader of the android phone is locked or unlocked? Just type this command and hit enter button to check exact status of the bootlaoder
fastboot oem device-info
- Unlock Bootloader using Fastboot Mode.
Want to unlock bootloader? You can use fastboot oem unlock command to unlock the bootloader. Please note that the bootloader unlocking process varies according vendor & as per the device.
fastboot oem unlock
To re-lock bootlaoder after unlocking, use the following command.
fastboot oem lock
- Installing Recovery using Fastboot Mode
First, you will need to download twrp recovery or any custom recovery of your device & place it in the folder where you will start Command Window. Also, make sure that you have unlocked bootlaoder of the phone. Just rename the downloaded recovery into recovery.img or use the name of the recovery in the command.
fastboot flash recovery recovery.img
- Formatting Partitions using Fastboot
You can format any partition of the system using the command given below. Just use the name of the partition in the command to format that particular partition.
fastboot erase system
Following is the set of Important Fastboot Commands. Please do note that this is not the complete list of commands.
Device | Normal USB Driver | Qualcomm Driver |
---|---|---|
Xiaomi Redmi Prime/Pro | Download | Download |
Xiaomi Redmi 1/1S | Download | Download |
Xiaomi Redmi 2/2A/2 Prime/2 Pro | Download | Download |
Xiaomi Redmi 3/3S/3X/3 Pro | Download | Download |
Xiaomi Redmi 4 | Download | Download |
Xiaomi Redmi 4A/ 4X | Download | Download |
Xiaomi Redmi 5 | Download | Download |
Xiaomi Redmi 5 Plus/ 5A | Download | Download |
Xioami Redmi 6/6 Pro/6A | Download | Download |
Xiaomi Redmi 7A | Download | Download |
Xiaomi Redmi 8A | Download | Download |
Xiaomi Redmi Y1/Y1 Lite | Download | Download |
Xiaomi Redmi Y2 | Download | Download |
Xiaomi Redmi S2 | Download | Download |
Xiaomi Redmi Go | Download | Download |
Xiaomi Redmi K20 | Download | Download |
Xiaomi Redmi K20 Pro | Download | Download |
Please do share this post with friends! Also, Please do comment for any issue you are facing related fastboot operations.