yashsingh1/xdaforums huggingface dataset:
[Moto G4 Plus Questions & Answers] Surioz07:
No need to relock bootloader..

If you get the downgrade error, download the marshmallow factory image.

And follow the following steps on top of it :

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 erase userdata

fastboot reboot
[Moto G4 Plus Questions & Answers] Sheik.AlQla:
I flashed the stock <br />

But still i have warning screen <br />

<br />

Now <br />

Do I need to open bootloader to hide this warning screen?! <br />

<br />

Thank you all ? <br />

<br />
[Moto G4 Plus Questions & Answers] guessingagain:
Do you mean bootloader unlocked warning?

That can be solved by flashing a modified logo.bin. there are threads for that. Though you need to return to stock logo.bin again for ota updates.
[Moto G4 Plus Questions & Answers] Sheik.AlQla:
I already have stock but There is Warning screen

I know what you said about modified logo

but should I do it with open bootloader ?
[Moto G4 Plus Questions & Answers] guessingagain:
Yeah. otherwise the modified logo.bin is not signed and I don't think it can be flashed using a locked bootloader.

By open bootloader do you mean unlocked?
[Moto G4 Plus Questions & Answers] Sheik.AlQla:
Yes
[Moto G4 Plus Questions & Answers] abhipanchal09@gmail.com:
can you please help me with relocking the bootloader because, when i try with this method

warning with message : "re-enter this command line to lock oem",

and when i re-enter the command line it shows flash signed android images.
[Moto G4 Plus Questions & Answers] anhoxhrs:
That means you have to flash the stock rom/firmware of the respective g4 .
[Moto G4 Plus Questions & Answers] sssaurabh:
I facw an error like 'unsigned image or currept image' while flashing and now my wifi and imei is gone. Can anyone help me please?
[Moto G4 Plus Questions & Answers] anhoxhrs:
Its normal,you are doing the correct procedure ignore that msg.Just reboot the bootloader everything will be fine.
[Moto G4 Plus Questions & Answers] sssaurabh:
Yes but i lost my imei and baseband after this process. Kindly help.
[Moto G4 Plus Questions & Answers] anhoxhrs:
You may be flashing wrong firmware.
[Moto G4 Plus Questions & Answers] ravkant shrma:
D:\Moto G4 Plus\Rom\Minimal ADB and Fastboot>fastboot flash partition gpt.bin

target reported max download size of 536870912 bytes

sending 'partition' (32 KB)...

OKAY [ 0.007s]

writing 'partition'...

(bootloader) Security version downgrade

(bootloader) Image primary_gpt failed validation

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.047s

:confused: Help plz how to unlock bootloader.... i'm using Moto_G4_Plus_XT1643_ATHENE_MPJ24.139-63_Stock_Img rom...... and i'm not in Naugat........ :crying::crying::crying::crying::crying:

my moto g4 plus is Indian variant XT1643
[Moto G4 Plus Questions & Answers] mikerowes69:
Locked my bootloader with the following commands for XT1644 USA RETUSA build firmware XT1625-XT1644_ATHENE_RETUS_MPJ24.139-64_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml

sudo fastboot bootloader bootloader.img

sudo fastboot reboot-bootloader

sudo fastboot oem lock

sudo fastboot flash partition gpt.bin

sudo fastboot flash logo logo.bin

sudo fastboot flash boot boot.img

sudo fastboot flash oem oem.img

sudo fastboot flash recovery recovery.img

sudo fastboot flash system system.img_sparsechunk.0

sudo fastboot flash system system.img_sparsechunk.1

sudo fastboot flash system system.img_sparsechunk.2

sudo fastboot flash system system.img_sparsechunk.3

sudo fastboot flash system system.img_sparsechunk.4

sudo fastboot flash system system.img_sparsechunk.5

sudo fastboot flash system system.img_sparsechunk.6

sudo fastboot flash system system.img_sparsechunk.7

sudo fastboot flash modem NON-HLOS.bin

sudo fastboot erase modemst1

sudo fastboot erase modemst2

sudo fastboot flash fsg fsg.mbn

sudo fastboot oem lock

sudo fastboot oem lock
[Moto G4 Plus Questions & Answers] daverobinson88:
Once you unlock the bootloader it's unlocked and you can't relock it because according to Motorola your warranty is now void and that's what it is. You can only reinstall stock firmware and recovery that's all the stuff in fastboot does. The logo fix it just flashing a bin file to mask it.
[Moto G4 Plus Questions & Answers] strongst:
There's no e-fuse which get tripped once and can't be resettet, so locking bootloader is possible
[Moto G4 Plus Questions & Answers] daverobinson88:
Yet to see someone relock the bootloader. Yet to have it work on any of my motos. Only reloads stock firmware and recovery. It's a be all end all thing. It's not like a door. Once it's digitally unlocked it is.
[Moto G4 Plus Questions & Answers] Tel864:
No efuse but you can't change the unlocked status once it's unlocked. That's locked in and can't be reset by the user. That doesn't matter though since the process of requesting the unlock code voids the warranty anyway.
[Moto G4 Plus Questions & Answers] SoNic67:
1. You could replace the warning image with something else. It's described in one the threads here.

2. Locking the bootloader will do nothing for your warranty, Moto has logged in their database your previous request of the unlock code and your acceptance of their conditions.
[Moto G4 Plus Questions & Answers] Neelg:
Will this work on nougat?
[Moto G4 Plus Questions & Answers] strongst:
What? Relock bootloader? No.
[Moto G4 Plus Questions & Answers] gpav11:
Please help...

C:\adb>mfastboot flash partition gpt.bin

target max-sparse-size: 256MB

sending 'partition' (32 KB)...

OKAY [ 0.005s]

writing 'partition'...

(bootloader) Security version downgrade

(bootloader) Image primary_gpt failed validation

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.043s
[Moto G4 Plus Questions & Answers] SoNic67:
You can't downgrade the gpt partition.
[Moto G4 Plus Questions & Answers] D4N6L4CK:
Is there a form to change the "Software status: Modified" to Official?? Thanks.
[Moto G4 Plus Questions & Answers] abhipanchal09@gmail.com:
Is there a way to relock your bootloader once phone is updated to soak test, in urgent need.

What to relock my bootloader.

And what is edl mode can that fix this problem.???

Please help experts, cant wait till offical update.!

Please
[Moto G4 Plus Questions & Answers] strongst:
It isn't possible with soak test at the moment
[Moto G4 Plus Questions & Answers] SoNic67:
Nougat soak is stupid. You where warned in that thread...
[Moto G4 Plus Questions & Answers] gpav11:
bro can you please help me how to do it ?

i want to relock my boot loader...

you can ping me on whatsapp 9632314440.

Thanks

Aditya.
[Moto G4 Plus Questions & Answers] strongst:
Please follow xda rules! If somebody have time, you get an answer. Don't spam same question in 3 threads. Description of your problem should be clear for everyone, if not, nobody can figure it out. Discuss the problem here on XDA, so all can read the solution and profit from that. Thanks
[Moto G4 Plus Questions & Answers] Tel864:
No
[Moto G4 Plus Questions & Answers] Peezoslug:
I agree
[Moto G4 Plus Questions & Answers] labeebm:
Hi. Is it possible to relock my bootloader with just the last command mfastboot oem lock? If yes, will it wipe all my data just like it did with unlock? I'm running stock captured OTA of Android 7.0. Thanks in advance.
[Moto G4 Plus Questions & Answers] strongst:
You cannot relock bootloader on nougat
[Moto G4 Plus Questions & Answers] KiiKeEp:
Install previous OS version and update via OTA.
[Moto G4 Plus Questions & Answers] D4N6L4CK:
Thanks, I have already returned to stock via mfastboot, so I will wait for the Nougat OTA.
[Moto G4 Plus Questions & Answers] KiiKeEp:
That will work

Enviado desde mi Moto G (4) mediante Tapatalk
[Moto G4 Plus Questions & Answers] daverobinson88:
I guess people have trouble reading that you can't relock the bootloader ON ANY FIRMWARE. Once it's unlocked it's unlocked. Also please obey the XDA rules and don't ask to get messages sent to you. Thank you.
[Moto G4 Plus Questions & Answers] D4N6L4CK:
I have relocked the bootloader with the comand mfastboot oem lock at the end of all the process of restore stock firmware with mfastboot. Its possible.
[Moto G4 Plus Questions & Answers] daverobinson88:
I am going to take an assumption that if you load into fastboot it will still say "software status modified". That means the bootloader is still unlocked. Once it's unlocked and you reinstall via fastboot it does not relock the firmware only closes the commands.
[Moto G4 Plus Questions & Answers] D4N6L4CK:
Yes, but that means that i have modified the terminal, i flashed a customized boot.img thats all.
[Moto G4 Plus Questions & Answers] manjeetexplorer:
hi friends

i just updated my moto g4 plus to latest nougat update but unfortunately my boot-loader is unlocked so i just want to know how to lock boot-loader of moto g4 plus after nougat update since i am already on nougat so is it means i have to flash marshmallow files and downgrade 1st than re-lock boot-loader than update again via OTA zip file... and i want to know also will i got further updates if my boot-loader left unblocked. i am also posting the screenshot for reference... thanks in advance friends.
[Moto G4 Plus Questions & Answers] Neelg:
Can I restore my nougat g4 plus when the bootloader is unlocked?

Thanks
[Moto G4 Plus Questions & Answers] abhinav052:
help me i have a question

when we lock bootloder or install flas rom on my mobile then tha official update is comming or not
[Moto G4 Plus Questions & Answers] Veronezzi:
You are plain dead wrong... I unlocked my bootloader to install a new kernel (and after every restart of the phone i got that screen just after the phone turns on that the bootloader is unlocked) ... But after some days i decided to revert to the original stock rom... So i flashed it, the software status got back to ORIGINAL, then i locked the bootloader with "fastboot oem lock" and restarted my G4.... After that i turned the phone off and hold the power button + volume down button the status is that the software installed ir original and that the bootloader is locked ... And after every reboot the nag screen about the bootloader being unlocked is gone....

So people, it is east to revert your unlocked bootloader and get your status back from MODIFIED to ORIGINAL ... The instrructions here are 100% guaranteed: https://xdaforums.com/moto-g4-plus/how-to/moto-g4-plus-xt1643-updated-signed-t3460695
[Moto G4 Plus Questions & Answers] daverobinson88:
Maybe guaranteed for that model but after multiple attempts with my XT1625 it still says modified. Also the .Bin file is what gets rid of that lock screen thing. The bootloader is still unlocked your just masking the notification when you start your phone that's it's not trusted.
[Moto G4 Plus Questions & Answers] ziyadh.aj:
am also having the same problem.. how did u fix it?

please help me..
[Moto G4 Plus Questions & Answers] Arivendu:
if any change shave been made to stock ROM- like kernel, recovery etc- the status will say "modified"

To lock your bootloader try "fastboot oem lock" twice--but remember it'll erase all your user data !
[Moto G4 Plus Questions & Answers] nykola5:
I can not do, I get the following command "Still require signed boot.img"
[Moto G4 Plus Questions & Answers] Ryuller_br:
If I do these commands on android stock 7.0 nougat will work too?
[Moto G4 Plus Questions & Answers] praneshm25:
bro please help me.

i tried the same but didnt work.
[Moto G4 Plus Questions & Answers] avinash gavali:
I am on RR 5.8 Rom, before that i was on soak nougat 93-11 also my bootloader is unlocked please tell me how to relock it. I want to rectify my screen burn issue to service centre. I heard that its not possible to relock bootlader if i have installed nougat..if i revert back to official MM rom is it possible to relock bootlader?
[Moto G4 Plus Questions & Answers] tyagiboys2014:
help

me to
[Moto G4 Plus Questions & Answers] gutozaur:
I have exactly the same problem and I do not know how to deal with it. The phone is working. There is no bootloader message, but the phone does not start normally just in fastboot mode and then I have to press start and it starts normally
[Moto G4 Plus Questions & Answers] Sheik.AlQla:
I flashed this line

./Fastboot reboot bootloader

And the problem solved

And i sold this idiot phone ?
[Moto G4 Plus Questions & Answers] gutozaur:
Ok now it works. I Use this

fastboot oem fb_mode_set

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 fb_mode_clear

fastboot reboot

---------- Post added at 10:59 PM ---------- Previous post was at 10:56 PM ----------

Thanks. Now I can sell my phone, because moto z play is in my pocket now :)
[Moto G4 Plus Questions & Answers] Nipunai7:
Can't relock on XT-1644

I have a XT-1644 model with unlocked bootloader. Need to relock the bootloader again. Tried flashing the last released MM stock rom using OEM lock command at the Start. Can't even flash the rom files. But can flash rom files without using OEM lock command. Tried to flash using fastboot and mfastboot. Still no luck. Installed MM and upgraded to Nougat OTA without relocking the bootloader. So nw I'm in Nougat ... Can I still relock the bootloader? :confused: :confused:

Edit - I downgraded to MM again while trying relock the bootloader. Used

XT1625-XT1644_ATHENE_RETUS_MPJ24.139-64_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

Gives me a "security downgraded error"... As happened to many before. Sorry I don't have a screenshot at the moment. But no error when not using the OEM lock command.
[Moto G4 Plus Questions & Answers] L@ksh97:
after re-locking can i again unlock it again if needed?

after re-locking can i again unlock it again if needed?\
[Moto G4 Plus Questions & Answers] srgudhka:
yes
[Moto G4 Plus Questions & Answers] L@ksh97:
How?? by using the old procedure only?gng to moto site n all
[Moto G4 Plus Questions & Answers] vaibhavmarwah:
is it works when we use while using a custom rom or only works in stock rom ??:):)
[Moto G4 Plus Questions & Answers] echo92:
Re-locking your bootloader (and thus hiding the bootloader unlocked warning) only works with a stock ROM. Any attempt to re-lock whilst not fully stock (i.e. recovery/kernel/system) is running the risk of your device failing to boot, as you may trip the integrity checks.

If you want to hide that bootloader warning on a custom ROM (I think it works with stock ROMs too with an unlocked bootloader, someone correct me if it doesn't), you could flash a custom logo.bin https://xdaforums.com/moto-g4-plus/themes/customized-logo-t3451349 It won't remove the 5 second delay, but it's nicer to look at.
[Moto G4 Plus Questions & Answers] Harsh1994:
Helps

Sir pleas send link of working moto g4 plus xt1643 flash file properly woking nougat.
[Moto G4 Plus Questions & Answers] echo92:
For stock files, your best bet is to check the Guides section: https://xdaforums.com/moto-g4-plus/how-to

For NPJ25.93-14 (Nougat, v7.0 Dec 2016 security patch): https://xdaforums.com/moto-g4-plus/how-to/moto-g4-plus-xt1640-43-athene-npj25-93-t3549369

For NPJS25.93-14.4 (Nougat, v7.0 March 2017 security patch): https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138

As with either, follow the instructions/scripts to flash. Ensure you have any crucial data backed up and off your device (e.g. on your computer) as the flash of these stock fastboot ROMs may wipe your data. Also, use the firmware that is newer or at least the same build as your current device firmware, else the re-lock may fail.
[Moto G4 Plus Questions & Answers] ksamm97:
Did anyone relock the bootloader and go to sc to repair their mob? (India region)
[Moto G4 Plus Questions & Answers] deepak21:
Yeah... I tried but they say its out of warranty as it is rooted!!
[Moto G4 Plus Questions & Answers] gf3659:
My boot loader is unlocked.... so i can not give it in screen replacement.... Does re-lock boot loader can get my warrenty back??? i have still 7 months of warrenty left.....

thanks in advance
[Moto G4 Plus Questions & Answers] echo92:
Your warranty is gone - as I understand it, as soon as you request your unlock key from Motorola, they'll have flagged your IMEI as having requested the key and voided your warranty.

Re-locking your bootloader may persuade some service centres to take your device in under a warranty repair - it depends on if they just look at the receipts or check your IMEI, as well as the type of repair, I imagine. Again, it's at the service centre's discretion, and you may still have to pay for a screen replacement even if your bootloader is re-locked. Your experience - as always - may vary.

Also, you'll only be able to re-lock your bootloader if you're on the March 2017 build or earlier (NPJS25.93-14-4 or earlier); we don't have the June fastboot ROM to lock devices updated to the June security patch on stock and attempts to downgrade your device to lock may brick your device.
[Moto G4 Plus Questions & Answers] clever_idiot:
Can you tell me the detailed method of this? or Can you give me a link which already has the detailed process
[Moto G4 Plus Questions & Answers] echo92:
How much detail are you looking for? Most of the guides are generally the same though, and if you're looking to relock your bootloader, you must have a device that is completely stock (no custom kernel, no TWRP, no root and no system modifications), else your device may bootloop as the anti-root and verification checks are tripped. Generally, you'll be re-flashing the stock ROM completely anyway to accomplish re-locking. Furthermore, relocking your bootloader may wipe your device in the process (though looking through your previous posts, looks like you're just trying to get your device working).

A process that's worked for me in re-flashing is a fastboot stock guide such as this one: https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138

Again, which stock ROM (which build) have you been flashing with onto your device?
[Moto G4 Plus Questions & Answers] clever_idiot:
What I did was tried to root the device and install twrp via fastboot. nothing happended then, then I flashed the stock rom again with the help of fastboot, after two weeks of usage the phone was dead and it started showing this message

Your device has been unlocked and can't be trusted.

To learn more, visit:
motorola.com/unlockbootloader

ID: N/A

SINCE, then I am phone less and not able to use it. I went to the service centre guys but I think they might be fooling me because they said the motherboard had be tampered, whereas I didnt even open the phone, I am all new to rooting, how can I open the phone then? they told me it would cost me Rs. 10,000 :(:(:eek:
[Moto G4 Plus Questions & Answers] echo92:
I think by the motherboard being tampered with, they're referring to the bootloader being unlocked (which a service centre can see a record of), and I've noted that some service centres upon seeing that won't take your device or default to the motherboard replacement.

When you were rooting, what stock ROM did you have on your device and what did you reflash with to recover? Did you flash using the scripts or did you flash each command manually?

That message if you've unlocked your bootloader is normal though. You mentioned in your other post your device hangs after showing the message though?
[Moto G4 Plus Questions & Answers] clever_idiot:
No my phone does not hang but my phone does not even boot up, it just lights up and pops up that message, turns off and turns on again.

I flashed this STOCK ROM :- Moto_G4_Plus_XT1643_ATHENE_MPJ24.139-63

and the commands were these

fastboot oem fb_mode_set
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
[Moto G4 Plus Questions & Answers] echo92:
Uh oh, downgrading from Nougat to Marshmallow isn't advisable - though the fact you can boot to the bootloader suggests it's okay for now... Can you remember which build of Nougat you had?

Also, if you previously had Nougat - that MM build is useless for re-locking. You can only relock with ROM builds of the same or later than what you had on your device. Attempting to downgrade the bootloader may result in a hard brick later. Once we establish what Nougat build you had, we may be able to point you to more suitable stock ROMs. For now, do not flash anything else unless you've done your research.
[Moto G4 Plus Questions & Answers] clever_idiot:
I have a blurry remembrance of the version to be as 7.1.1
[Moto G4 Plus Questions & Answers] echo92:
That would suggest you were on a custom Nougat ROM - our stock ROM is only up to v7.0. Do you remember updating your stock ROM to Nougat at any point?

If you can boot to your bootloader, what version does it report? It should be starting with B1.xx, where xx could be 00, 03, 05 or 06.

If you still can't remember, you may wish to flash the latest June 2017 stock ROM (without relocking your bootloader): https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138
[Moto G4 Plus Questions & Answers] clever_idiot:
No no sir, I just searched through my google photos and i found out that it is 7.0 I had an OTA update regarding the same.

All I am getting on the boot loader is

android opended up from the belly
AP Fastboot Flash Mode (secure)
BL: B.e (*) (sha-7000.08.03.48R ATHENE_INDIA_DSDS_CUST
PRODUCT/VARIANT: athene_16mp XT1643 32GB P2A
SERIAL NUMBER IS MENTIONED
CPU IS MENTIONED
eMMC,DRAM,
CONSOLE
BATTERY LOW
flashing_unlocked
Software status: official
connect USB Data cable
[Moto G4 Plus Questions & Answers] echo92:
The above items in bold, is that what is actually shown or have you written them like that?

Hmm, I wonder if a full fastboot flash of the latest June 2017 stock ROM would rescue your device? https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138 You may choose to not lock your bootloader as described, but if you flash this June 2017 stock ROM, do not attempt to flash older stock ROMs onto your device, else you will have to pay that 10000 rupees to fix a hard brick.

You may wish for someone else to suggest another way to fix your device before you commence, though it looks like a flash of the stock Nougat ROM could repair your device.
[Moto G4 Plus Questions & Answers] clever_idiot:
I have written like that:laugh: