Home > Tips and Tricks

How to Fix Fastboot Mode Device State Locked (Unlockable)

In this guide, we will show you the steps to fix the Fastboot Mode Device State Locked (Unlockable). There’s a generic rule of thumb that you need to unlock the bootloader before flashing any custom ROM. While that still holds true, however, nowadays, a bunch of custom ROMs allow you to relock the bootloader as well. Some of the well-known players in this domain include the likes of GrapheneOS, HellucaOS, and CalyxOS.

What these ROMs do is they erase the stock Android Verified Boot key [via the fastboot erase avb_custom_key command] and replace it with their own “non-stock/custom” Verified Boot key [the name of the file is avb_pkmd.bin and it is flashed in the avb_custom_key partition via the fastboot flash avb_custom_key avb_pkmd.bin command].

Device State Locked (Unlockable)

Since all these tasks are carried out after flashing the ROM, you can now boot to the OS and have the ROM up and running in a locked bootloader ecosystem! While that’s all well and good, but what if you want to unlock the bootloader for some reason? Well, in such cases, one would generally use the bootloader unlocking command to get the job done.

However, this might not get the job done and could complicate matters even more as your device still has the custom avb_pkmd.bin file. So you’ll first have to erase this file and replace it with the stock one, only then can you proceed with the bootloader unlocking process. This in turn should also fix the Fastboot Mode Device State Locked (Unlockable) issue in the Fastboot Mode. So without any further ado, let’s get started.

How to Fix Fastboot Mode Device State Locked (Unlockable)

YouTube video

If possible, do take a backup of all the data on your device. Droidwin and its members wouldn’t be held responsible in case of a thermonuclear war, your alarm doesn’t wake you up, or if anything happens to your device and data by performing the below steps.

  1. To begin with, download and extract Android SDK Platform Tools on your PC.
  2. Now enable USB Debugging & OEM Unlocking and connect your device to PC.Android 15 Custom ROM Pixel 9 Pro
  3. Then open the Command Prompt inside the platform-tools folder and type in:
    adb reboot bootloader
  4. After that, type in the below command to unlock the bootloader on your device
    fastboot flashing unlock

    Bootloader Device State Locked (Unlockable)

  5. Use the Volume key to highlight Unlock Bootloader and press the Power key to confirm
  6. Once the bootloader is unlocked, you should boot the device back to the Fastboot Mode.
  7. Once that’s done, erase the custom Android Verified Boot key using the below command:
    fastboot erase avb_custom_key
  8. Once done, you may now flash the stock firmware via the Android Flash Tool/script file.

That’s it. These were the steps to fix the Fastboot Mode Device State Locked (Unlockable). If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution as soon as possible.


Share: