08-10-2020, 01:48 PM
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
- Use the Motorola Rescue and Smart Assistant tool to rescue (i.e flash signed firmware to) the device
- Setup fastboot on the PC and boot the device into fastboot (Power off > Hold Power + Vol down together > Wait till it enters bootloader )
- Copy the downloaded files from Motorola Rescue and Smart Assistant tool (LSMA) into the fastboot folder
- 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
Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.