How to lock bootloader on custom rom
DANGER
It's can be very danger for your device. Do backups first!
- Flash avb pub key to avb_custom_key
fastboot erase avb_custom_key
fastboot flash avb_custom_key avb_custom_key.avbpub
- Flash LOS Recovery
- Flash LineageOS
- Reboot to bootloader
fastboot flashing lock
- Done! You locked on
stock romCustom ROM
TIP
If your device is "corrupted", then just unlock device and try again, check all hashsums