If your Pixel device shows "device state locked" but won't unlock, it might be due to a faulty AVB key (Android Verified Boot). You might need to flash the stock firmware or run fastboot erase avb_custom_key . Conclusion
USB drives or external hard drives with hardware encryption (like Kingston DataTraveler) may display this when encryption is enabled [1]. flashing lock flag is locked please unlock it first full
Dismiss Got it. On this page. Get into the bootloader. Unlock the bootloader. Lock the bootloader. Set lock and unlock properties. Android Open Source Project Fix Device State Locked Unlockable in Fastboot Mode If your Pixel device shows "device state locked"
After unlocking, immediately send:
Once the device enters Fastboot mode (indicated by a fastboot graphic or text on screen), execute the standard universal unlocking arguments. For modern devices, run: fastboot flashing unlock Use code with caution. For older Android devices or specific chipsets, run: fastboot oem unlock Use code with caution. Dismiss Got it