25+ ADB and Fastboot Commands: Full Hidden List

In this article, we are going to talk about Fastboot commands and what are they and how can one use it. I am sure that many of you might not be aware of developer options on your Android devices. And this way you are missing out on so much, including so many advanced features present on your device.

You can use these commands to lock/unlock your Android device, reboot, or fix or upgrade, etc. But you don’t have to worry about any of it, we are going to introduce terms like Fastboot and all the commands that you can use.

Hidden Fastboot Commands List 2021

Below is the list of Hidden Fastboot commands that you can use, we have also provided the information regarding those commands and the purpose of their use. So, let’s have a look at it:

  1. fastboot reboot – Use this command to reboot your device back into the fastboot/bootloader mode. Also, it is suggested that you remember fastboot commands will only work if your phone is in Fastboot mode and to get into this mode you will have to use the ADB command, we have provided it below.
  2. adb reboot bootloader – This is the command which you can use to further enter into the fastboot mode. This command will enter the bootloader of your phone by booting it into that mode.
  3. fastboot devices – This fastboot command will list the devices connected to the computer in fastboot mode.
  4. fastboot reboot recovery – Entering this fastboot command will boot into Stock or custom recovery. You can use this command after flashing the recovery image with the fastboot command.
  5. fastboot flashing lock – You can use this fastboot command to relock the bootloader of newer phones
  6. fastboot flashing lock_critical – It can be used to relock the bootloader if you have unlocked using the unlock_critical command.
  7. fastboot flash boot boot.img – You can use this fastboot command to flash boot image files. It is generally used when the phone is stuck in the boot loop due to a corrupt boot image. And also, the command used to root Android phones after patching the boot image file.
  8.  fastboot flash recovery recovery.img – You can use this command if you want to flash stock recovery or a custom recovery. And remember, before entering the command, rename the recovery image file to recovery.img.
  9. fastboot oem unlock – The command used to unlock bootloader on Google phones and some other phones. It will only work with supported phones.
  10. fastboot flashing unlocks – you can use this command to unlock the bootloader for different devices like the new Pixel phones released after 2015.
  11. fastboot oem lock – You can also use the fastboot command to relock the bootloader of many Android phones
  12. fastboot flashing unlock_critical – It is also used to unlock the bootloader for different conditions like updating the bootloader, and updating phones manually.
  13. fastboot flashall -w – You can use this fastboot command to wipe the data partition on the device.
  14. fastboot oem device-info – This fastboot command will help us to see the bootloader status. It will return ‘True’ if the bootloader unlocked and return ‘False’ if the bootloader locked.
  15. fastboot format:ext4 userdata – It can be used to delete/wipe all the data from the ext4 partition. Change the partition if you want to delete data from other partitions.
  16. fastboot boot recovery.img – You can use this fastboot command to boot the phone into recovery temporarily. Replace the recovery.img with the recovery file name.
  17. fastboot erase data – If you want to clean flash any ROM then you can use this fastboot command to erase phone data.
  18. fastboot erase system – You can use this command to erase the system from your phone before flashing a custom ROM.
  19. fastboot erase cache – You can use this command to delete all cache from the phone.
  20. fastboot erase system -w – This fastboot command will erase System, data, and cache in one command.
  21. fastboot flash system system.img – You can flash the system image file using the command. The system image can be found in the Firmware of the phone.
  22. fastboot flash userdata data.img – Similar to the last fastboot command you can also flash user data image with this command.
  23. fastboot boot kernel ramdisk – For developers who are working on the custom kernel can use the fastboot command to test the kernel.
  24. fastboot flash zip file.zip – It can be used to flash zip files like custom ROM. Replace the file.zip with the file name you want to flash.
  25. fastboot getvar mid – This fastboot command can be used to get the device model number.
  26. fastboot getvar all – It will give more information about the device like device model, radio, IMEI, etc.

What is Fastboot?

So, first, let us understand what is Fastboot and its function in our devices. Facebook is a diagnostic tool in Android devices, which is used to flash different files on the phone. This mode is used in Android phones for any sort of modification happening in the device using Fastboot commands. Both ADB and Fastboot commands are the system utilities that help to access the back end Android system when your phone is connected to PC/ laptops, etc.

How To Open Command Prompts In Platform Folders?

We will be attaching some links from where you can download ADB and Fastboot. And the moment you will unzip these files, you will find folder names “platform-tools”. Here are the links:

Follow these steps to open the command prompt in platform folders:

  1. First of all, as mentioned above, you will have to unzip the files and extract the Platform Tools zip file on your computer.
  2. And then, open the folder that you extracted.
  3. Now, press the following key combination i.e. “Shift + Right-click” on the empty area present in the folder.
  4. It will open a few sets of options, you have to choose the ‘Open PowerShell window here’ option or the ‘open command window here’ option.
  5. And that is it, it will open the PowerShell or the command window in front of you. Then, you can enter any ADB/Fastboot commands.

How to Set Up Your Device?

So, there are a few pre-requisites before you can access your device using Fastboot commands or ADB, you will have to enable USB debugging on your Android phone. Here’s how you can enable this option on your device:

  1. First of all head to Settings on your device. Then, click on the “About” option.
  2. Then, you just have to simply tap on the “build number” option at least seven times and you will see a message on your screen saying “You are now a developer”.
  3. Now, you have to go back to the Settings and then, find the “Developer options”. That is it, simply click on it and then, enable the USB Debugging option.


I hope we have covered everything regarding Fastboot commands and now, you have got familiar with this term. All of the commands that are mentioned above can be used for Android devices. I hope the process of how to use these commands is pretty clear to you all. But if there’s still any doubt regarding them, then you can let us know in the comments below. 

Leave a Comment