How to Bootloader Lock Any Android Device

Sunny Kumar
3 min readJul 14, 2023

Unlocking the bootloader of an Android device gives users the freedom to install custom ROMs, recoveries, and modify system files.

How to Bootloader Lock Any Android Device

Step 1: Back Up Your Data

Before proceeding with any bootloader locking process, it is crucial to back up all the data on your device. Relocking the bootloader will wipe all the data on your phone, including apps, contacts, photos, and files. Make sure to create a full backup to prevent any data loss.

Step 2: Enable Developer Options

To access the necessary settings for bootloader locking, you need to enable the Developer Options on your Android device. Follow these steps:

1. Go to the “Settings” menu on your Android device.
2. Scroll down and tap on “About Phone” or “About Device.
3. Look for the “Build Number” and tap on it seven times continuously.
4. You will see a message stating that you have enabled Developer Options.

Step 3: Enable OEM Unlocking

The OEM Unlocking option allows you to unlock or lock the bootloader on your Android device. Here’s how you can enable it:

1. Go back to the “Settings” menu.
2. Scroll down and tap on “Developer Options.”
3. Look for the “OEM Unlocking” option and toggle it on.

Step 4: Connect Your Device to a Computer

To proceed with the bootloader locking process, you need to connect your Android device to a computer using a USB cable. Make sure you have the appropriate USB drivers installed for your device.

Step 5: Boot into Fastboot or Download Mode

The next step is to boot your Android device into Fastboot or Download Mode. The method may vary depending on the device manufacturer. Here are some common methods:

1. Power off your Android device completely.
2. Press and hold the specific key combination to enter Fastboot or Download Mode. For example, for most devices, it’s the Power button + Volume Down button.

Note: If you’re unsure about the correct key combination for your device, a quick Google search with your device model and “enter Fastboot mode” will provide the necessary information.

Step 6: Open Command Prompt or Terminal

Once your Android device is in Fastboot or Download Mode, it’s time to open the Command Prompt (Windows) or Terminal (Mac/Linux) on your computer.

Step 7: Execute the Fastboot Command

In the Command Prompt or Terminal, enter the following command to lock the bootloader: fastboot oem lock

Step 8: Confirm Bootloader Lock

On your Android device, you will see a confirmation message asking if you want to lock the bootloader. Use the volume keys to navigate and the power button to select “Yes” or “Lock.”

Step 9: Reboot Your Device

After confirming the bootloader lock, execute the following command in the Command Prompt or Terminal to reboot your device: fastboot reboot

Step 10: Restore Data

Once your device has rebooted, it will be bootloader locked. You can now restore your data from the backup you created earlier.

Conclusion:

Relocking the bootloader of your Android device provides an added layer of security and prevents unauthorized modifications. However, it’s important to note that locking the bootloader may void your warranty, and the process may vary depending on the device model.

--

--