So many people are finding the correct way to lock bootloader so i created this thread.Just firstly be sure that you have downloaded the correct stock rom/firmware for your device otherwise you will be complaining for no wifi and network issue.Just follow this steps and you will successfully relock your bootloader.If any issues just reply i will help.I used fasboot so you can just replace it by mfastboot if you use mfast.Your warranty is still void after relocking,now its your luck if the service center guys check it or not!
1.Download the stock rom/firmware of your device.
2.Extract it and paste its contents in the adb folder.
3.Make sure that usb debugging is on.
4.Now in the adb folder shift+right click and then in the pop click open command window here.
5.Type in the cmd [adb reboot bootloader],you can do this manually also by power down first then power button+volume down.
6.Type [fastboot oem lock begin] it would then say flash stock images etc.
7.Then enter this commands and make sure you get okay after each command or you can just run the bat file uploaded(do put it in the adb folder)
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 dsp adspso.bin
fastboot flash oem oem.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 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 reboot
8.Now your device will reboot with no bootloader unlock warning.
1.Download the stock rom/firmware of your device.
2.Extract it and paste its contents in the adb folder.
3.Make sure that usb debugging is on.
4.Now in the adb folder shift+right click and then in the pop click open command window here.
5.Type in the cmd [adb reboot bootloader],you can do this manually also by power down first then power button+volume down.
6.Type [fastboot oem lock begin] it would then say flash stock images etc.
7.Then enter this commands and make sure you get okay after each command or you can just run the bat file uploaded(do put it in the adb folder)
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 dsp adspso.bin
fastboot flash oem oem.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 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 reboot
8.Now your device will reboot with no bootloader unlock warning.