Guides / Bootloader Guides / Lock the bootloader
Lock the bootloader
By Mehraann · From NewbiesTeam, for the GT 20 Pro
Re-locking the bootloader restores the factory locked state on a clean stock XOS firmware installation. Download the stock flashable firmware ZIP from Flashable firmware in the ROMs tab.
Warning
Lock the bootloader only on a fully compatible stock ROM. Do not lock the bootloader on modified firmware, custom ROMs, GSIs, rooted systems, or devices with modified partitions. Failure to follow these requirements may result in a bootloop, soft brick, hard brick, or an unbootable device. Proceed at your own risk.
1. Steps
- Flash the provided flashable ZIP (Flashable firmware).
- Boot the device into Android once.
- Reboot into Fastboot/Bootloader mode.
- Connect the device to your PC.
- Open Command Prompt or Terminal and execute:
- A confirmation screen will appear on the device.
- Use Volume Up to select Lock the Bootloader.
- Press the Power button to confirm.
- After the bootloader is locked, hold the Power button to reboot the device.
fastboot flashing lock
2. Warning
- Lock the bootloader only on a fully compatible stock ROM.
- Do not lock the bootloader on modified firmware, custom ROMs, GSIs, rooted systems, or devices with modified partitions.
- Failure to follow these requirements may result in a bootloop, soft brick, hard brick, or an unbootable device.
- Proceed at your own risk.