Home Forum Blog Private Support Courses
Our courses are now on YouTube! Start Watching
Hovatek Forum OPERATING SYSTEMS Android How to re-lock Motorola bootloader

How to re-lock Motorola bootloader

How to re-lock Motorola bootloader

hovatek
hovatek
hovatek
Administrator
50,891
08-10-2020, 01:48 PM
#1



When trying to re-lock your bootloader, you might encounter the Image signed with key bad key error, especially after an unsigned / unofficial firmware had been flashed. In this example, I'll be using the Motorola E 6th. Gen (E6)

To re-lock your Motorola Bootloader


  1. Use the Motorola Rescue and Smart Assistant tool to rescue (i.e flash signed firmware to) the device
  2. Setup fastboot on the PC and boot the device into fastboot (Power off > Hold Power + Vol down together > Wait till it enters bootloader )
  3. Copy the downloaded files from Motorola Rescue and Smart Assistant tool (LSMA) into the fastboot folder
  4. Run the following commands in fastboot (you could create a batch file to auto run them). Ensure to check the firmware for the partitions and files flashed then make necessary edits

For Models without OEM partition


Code:

fastboot oem lock fastboot oem lock fastboot flash boot boot.img fastboot oem lock

For Models with OEM Partition


Code:

fastboot oem lock fastboot oem lock fastboot oem lock fastboot flash boot boot.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 system system.img_sparsechunk.9 fastboot flash vendor vendor.img fastboot flash oem oem.img fastboot oem lock

Your bootloader should now be locked
This post was last modified: 06-03-2021, 12:05 PM by hovatek.

Learn MediaTek, Unisoc / Spreadtrum (SPD) and Qualcomm Software Repairs @ https://www.hovatek.com/training
Note!
We have a reply schedule for Forum Support. Please try Private Support if you can't wait.
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
WhTlYt