Skip to content

How to lock bootloader on custom rom

DANGER

It's can be very danger for your device. Do backups first!

  1. Flash avb pub key to avb_custom_key
    • fastboot erase avb_custom_key
    • fastboot flash avb_custom_key avb_custom_key.avbpub
  2. Flash LOS Recovery
  3. Flash LineageOS
  4. Reboot to bootloader
  5. fastboot flashing lock
  6. Done! You locked on stock rom Custom ROM

TIP

If your device is "corrupted", then just unlock device and try again, check all hashsums