yashsingh1/xdaforums huggingface dataset:
[Moto G4 Plus Guides, News, & Discussion] anhoxhrs:
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.
[Moto G4 Plus Guides, News, & Discussion] samiran das 03:
see this
[Moto G4 Plus Guides, News, & Discussion] samiran das 03:
i followed ur method but :crying::crying::crying:
[Moto G4 Plus Guides, News, & Discussion] swarupgolui:
If You Use XT1643 So Check This = http://xdaforums.com/moto-g4-plus/how-to/moto-g4-plus-xt1643-updated-signed-t3460695
[Moto G4 Plus Guides, News, & Discussion] anhoxhrs:
The problem with you is that you have flashed the old version of rom.Download the latest version of your phone rom.This error is caused when for eg. You currently have a rom version 2.0 ,and then try to flash rom 1.0.The bootloader gives an error.So you have to flash version 2.0.And the error imaged.not signed or corrupt is normal.
[Moto G4 Plus Guides, News, & Discussion] samiran das 03:
so what should i do now

plzz post the latest firmware
[Moto G4 Plus Guides, News, & Discussion] anhoxhrs:
Send me screen shot of about phone
[Moto G4 Plus Guides, News, & Discussion] samiran das 03:
Plzz Check
[Moto G4 Plus Guides, News, & Discussion] samiran das 03:
Anything more u want???
[Moto G4 Plus Guides, News, & Discussion] anhoxhrs:
Flash this https://drive.google.com/file/d/0B1N6dGU7FEXsSjR3QUtsRU1RTVk/viewAnd lock the bootloader with steps on the 1 post.
[Moto G4 Plus Guides, News, & Discussion] samiran das 03:
I tried using this firmware but its giving me same error.others are telling that the firmware which i am flasshing is old one.
[Moto G4 Plus Guides, News, & Discussion] samiran das 03:
But [MENTION=7714325]swarupgolui[/MENTION] told me to flash the lastest firmware

See this below
[Moto G4 Plus Guides, News, & Discussion] samiran das 03:
So what to do now?
[Moto G4 Plus Guides, News, & Discussion] swarupgolui:
Whats Your Problem With lastest firmware?
[Moto G4 Plus Guides, News, & Discussion] samiran das 03:
Not done yet

I will do it tomorrow
[Moto G4 Plus Guides, News, & Discussion] anhoxhrs:
You tried the firmware in the link i gave?
[Moto G4 Plus Guides, News, & Discussion] samiran das 03:
But in that my device is not mentioned
[Moto G4 Plus Guides, News, & Discussion] anhoxhrs:
https://drive.google.com/file/d/0B1N6dGU7FEXsSjR3QUtsRU1RTVk/view Just download this on chrome on your pc and flash.
[Moto G4 Plus Guides, News, & Discussion] samiran das 03:
Sure it will work na

---------- Post added at 05:20 PM ---------- Previous post was at 05:06 PM ----------

Mine is xt1643
[Moto G4 Plus Guides, News, & Discussion] anhoxhrs:
It worked on mine i have same xt1643 32 gb
[Moto G4 Plus Guides, News, & Discussion] samiran das 03:
Ok then iwill try it tomorrow
[Moto G4 Plus Guides, News, & Discussion] pastorbob62:
For what reason would you want to relock your bootloader? It doesn't change your warranty status, since there is no way to cover the fact you had it unlocked. You don't need to relock in order to get OTA's. This procedure works: http://xdaforums.com/moto-g4-plus/how-to/guide-sucsessfull-ota-update-rooting-t3472658 without relocking.

If the unlocked bootloader warning annoys you, just flash the stock logo.bin with fastboot. It stops the warning.

Relocking seems like a waste of time and unwanted risk.
[Moto G4 Plus Guides, News, & Discussion] anhoxhrs:
Nupe,in india the service center guy do not check the status of warranty online.They just see the invoice bill and conclude it if the device is in warranty or not :laugh:.So relocking lessens the risk.
[Moto G4 Plus Guides, News, & Discussion] pastorbob62:
Ahhh! I get it now. I have a third party extended warranty so for me it is moot anyhow. Locked or unlocked my phone is covered regardless of the reason for failure. I could even drop it in the toilet and if it got ruined the warranty would cover it. I always buy the extra warranty for devices I plan on rooting and customizing. It paid off on my last phone which failed for unknown reasons. Refunded my original purchase price less a $25.00 deductible and the phone was over 2 years old.
[Moto G4 Plus Guides, News, & Discussion] mohsin64:
I can fix it

MOTO G4 PLUS RELOCK

I can fix it bro.. Call me 09741961961
[Moto G4 Plus Guides, News, & Discussion] kulkarnichinmay65:
Will this wipe my phone data

Will this wipe my phone's data
[Moto G4 Plus Guides, News, & Discussion] Tel864:
Yes, the line "erase userdata" does that.
[Moto G4 Plus Guides, News, & Discussion] kulkarnichinmay65:
Ok

Thanks dude
[Moto G4 Plus Guides, News, & Discussion] sam sundar:
So if I lock my bootloader again , still my warranty is void ? *Just curious*
[Moto G4 Plus Guides, News, & Discussion] pranjal24:
I successfully flashed the stock rom but with 2 conditions==>>

1. Without OEM lock commands and it was success

2. with the Fastboot.bat to lock the bootloader. Got preflesh validation failed. but i managed to bootup but still was getting the bootloader msg.???

any HINT??
[Moto G4 Plus Guides, News, & Discussion] lollyjay:
Yes warranty is permanently voided
[Moto G4 Plus Guides, News, & Discussion] haher2:
not a law guy, but moto's policy is against legislation in many countries. manufacturer will still be responsible for anything wrong happening to device's hardware during the first 1-2 years. no manufacturer will be able to question that in court.
[Moto G4 Plus Guides, News, & Discussion] Tel864:
In Europe I believe it's still under warranty but it has never been ruled against in the US. If someone goes ahead and unlocks after agreeing to Motorola's policy on unlocking, then they probably deserve whatever happens. Judging by the posts on here, a good 50% of XDA members that own Moto products don't have a clue on how to read simple instructions and safely unlock their phone anyway.
[Moto G4 Plus Guides, News, & Discussion] SoNic67:
^ That's correct. In EU was tried in court and Moto (and other manufacturers that offer unlockable phones) have adjusted the conditions.

In US, when you request the unlock code Moto makes you accept the condition of ending the warranty. And they store that on their servers, no "relocking" would revert that.
[Moto G4 Plus Guides, News, & Discussion] 17kalpesh:
this trick work on latest nogate ?? becose i am tride 2 time n alwase flash marshmelow n then upadet 2nd marshmelo updet n after nogate but sitl unloked bootloder notification show n show bad key

i flash nogate stoke rom nad remove thish notification is poesibel???
[Moto G4 Plus Guides, News, & Discussion] sam sundar:
This trick won't work as Motorola has not released its Firmware images as bootloader locking needs firmware image . As Ur warranty is already void , if u want to remove the warning sign at boot , try flashing any custom logo.bin file to get rid of it !
[Moto G4 Plus Guides, News, & Discussion] nykola5:
I can not do, I get the following command "Still require signed boot.img"
[Moto G4 Plus Guides, News, & Discussion] mukul_rathore:
please help me

i flash naughat 7 update after unlock bootloader that is NPJ25.93-11, but after 2 days an ota update notify on the screen i update the ota, that is NPJ25.93-14, after that i cant relock the bootloader using official rom NPJ25.93-11 that is for XT1624.

now my question is that is there any way to relock my moto g4 xt1624 using the ota update or any link to download new nougat rom version NPJ25.93-14 because there is no link provided in web for such new update. no one talk about relock the bootloader of latest updated naughat version of moto g4.

locking bootloader is regain the warrenty of moto g4 ?
[Moto G4 Plus Guides, News, & Discussion] LovinVEVO:
Wanna Lock My Bootloader

Guys,

I'm on latest update NPJ25.93-14 and just wanna lock my bootloader, Tried with the Stock NPJ25.93-11 but not getting locked it say invalid gpt, bla, blaa.. and etc .....

Is there NPJ25.93-14 Stock Rom available yet ..??
[Moto G4 Plus Guides, News, & Discussion] sam sundar:
.14 firmware isn't available yet .. btw as ur warranty is already void , there is no use of relocking bootloader !