When using fastboot, if we type below command,
$ sudo fastboot flash boot boot.imgWe may see an error as,
FAILED (remote: 'Flashing is not allowed in Lock State')
fastboot: error: Command failedSolution :
First make sure to unlock the flashing using below command,
$ sudo fastboot flashing unlockTo make sure the above command works properly, you need to enable “OEM Unlock” as mentioned in “Solved: Fastboot Flashing Unlock is not allowed”