How to Relock The Bootloader of a Moto Phone

Many of you have unlocked the bootloader of your phone for trying various custom ROMs. People who have installed custom ROMs on their phone may have various reasons to leave the stock OS, some of the main reasons they have stated are: No longer supported for further upgrade, No monthly security patches, No performance or bug fixes. And if you couldn’t find any of the custom ROM stable for your phone, then you can again move to the factory image with few simple steps. You can also relock the bootloader of your device but in several cases an unlocked bootloader can still be detected by the professionals at the service centres.

Let’s talk more about unlocking the bootloader of a moto device. If you have unlocked bootloader of any phone from moto, then you should know how easy is that. However, some phones cannot be unlocked such as amazon exclusive phones. But the procedure is much simple than that of other phone manufacturers, we have calculated the total time to unlock the bootloader of a moto device and that is just 30 seconds. When comparing this time to other manufacturers like Xiaomi which takes around a day to grant the permission and another 15 days to put this on their servers, we can easily say that moto is quite simple.

Relocking the Bootloader

  1. You need the same factory image that your phone was running earlier or a newer image will also work (If you don’t use the correct factory image, then you will get an error while flashing the files).
  2. Remember to back up your data before performing any of these steps.
  3. Now go to the adb folder and run command prompt.
  4. Boot you phone into fastboot mode (Power off your phone and then press Power + Volume Down button).
  5. Connect your phone to the PC then run the command fastboot devices, you will be able to see your device serial number.
  6. Now copy the below Commands and paste it on the command prompt window.

fastboot oem fb_mode_set
fastboot oem lock begin
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem lock
fastboot oem fb_mode_clear
fastboot reboot

The number of system.img_sparsechunk files can vary according to the device. Remember: Always flash the correct firmware to your device. You can also check the service file that is available on the factory zip file that you have downloaded.