Fixed : Flashing is not allowed in Lock State

When using fastboot, if we type below command,

$ sudo fastboot flash boot boot.img

We may see an error as,

FAILED (remote: 'Flashing is not allowed in Lock State')
fastboot: error: Command failed

Solution :

First make sure to unlock the flashing using below command,

$ sudo fastboot flashing unlock

To make sure the above command works properly, you need to enable “OEM Unlock” as mentioned in “Solved: Fastboot Flashing Unlock is not allowed”

Leave a Comment