What is Fastboot?
Fastboot is a command-line protocol for Android devices. It is a bridge between your system and Android. When you want to write your data directly to the phone’s memory, then Fastboot uses its power, and makes a bundle with Google Android SDK.
Fastboot is basically a protocol to flash images to the Android system. When the device is booted into the Fastboot or boot loader mode then only Fastboot Commands works. Whatever data you writes on Fastboot, it directly stored to the phone’s memory, therefore, before Android OS loads, it can start your device. Also, when Android isn’t installed, Fastboot can work.
How to set the phone to use Fastboot?
As you know what is Fastboot? Now it’s time to know how to set it on your phone?
- To enter your Android phone or tablet in Fastboot, you need to switch off your device first.
- Than hold the button of power, and volume down simultaneously.
- Next connect your device with a USB cable, and type the following
You will see the list of the serial number if Fastboot is working properly.
And if you don’t see any list, then check your connection properly.
Once the connection is stable, type:
fastboot reboot bootloader
Now your device is set up in Fastboot mode, and you are ready to use Fastboot Commands.
Whenever you want to replace your device partitions, or want to rescue your device, then the Fastboot commands are used.
But before you use Fastboot commands, the first Fastboot should be installed in your system. Steps for installing the Fastboot are:
- First install ADB, and Fastboot.
- Switch your device into Fastboot mode or boot loader mode.
- By applying the below steps enables USB Debugging:
- Settings-> About-> Build Number, and then tap seven times.
- You’re a developer now, this message will send on your screen.
- Setting -> Developer Option -> USB Debugging, and enable it.
After all these are done, you are now ready to use Fastboot Commands on your device.
Before we use any Fastboot Command, we should know whether the connection of our device is proper or not. For this just type
After entering this command, if your device name and display number is displayed then your connection is stable. And if the result is empty, then check your connectivity.
Now as you have entered in Fastboot mode, you can use so many commands as per your requirements.
- Fastboot OEM Lock command
This command helps you to lock your boot loader mode, and switch you to the stock factory mode. It gives you a warranty, even you have unlocked it.
fastboot oem lock
- Fastboot OEM unlock command
This command will unlock your boot loader mode. It’s a very popular command and works with most devices.
fastboot oem unlock
- Fastboot Flash Recovery Command
To flash the recovery images, this command is used. Custom recovery is replaced by stock recovery with the use of this command. A new image is patched by the recovery image.
fastboot flash recovery %FILENAME.IMG%
- Fastboot Flash Boot Command
There is a kernel in the boot image. Using this command stock kernel is replaced by a custom kernel. You should be very careful while using this command, because if you flash a wrong boot image, your device may stick in the boot loop.
fastboot flash boot %FILENAME.IMG%
This command helps to erase items from your device. Before using this command make sure that you have taken the backup.
fastboot erase % PARTITION NAME%
Partition part of the selected area is formatted using this command. Sometimes it deletes all the data, hence backup of the device is recommended.
fastboot format %PARTITION NAME%
If you are using the Fastboot commands properly, then it will be very helpful for you.