Moto G4 plus relock bootloader

Surioz07

Member
Jul 28, 2016
21
0
1
narayanasuri.github.io
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
 
Last edited:

Sheik.AlQla

Senior Member
Oct 23, 2012
263
42
0
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 />


Sent from my Moto G (4) using Tapatalk
 

guessingagain

Senior Member
Jul 28, 2016
217
53
0
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 />
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.
 

Sheik.AlQla

Senior Member
Oct 23, 2012
263
42
0
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.
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 ?
 
Nov 30, 2012
15
0
0
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.
 

ravkant shrma

Member
Nov 6, 2016
9
2
0
Now I Don't Want, I Find Updated Stock Frimware MPJ24.139-63, Now My Problem Has Been Solve...

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot oem lock begin
...
(bootloader) WARNING: This command erases all user data.
(bootloader) Please re-run this command to continue.
OKAY [ 0.016s]
finished. total time: 0.016s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot oem lock begin
...
(bootloader) Flash valid Android images now
(bootloader) Then re-run this command to lock
OKAY [ 0.031s]
finished. total time: 0.031s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash partition gpt.bin
target reported max download size of 536870912 bytes
sending 'partition' (32 KB)...
OKAY [ 0.031s]
writing 'partition'...
(bootloader) Flashing primary GPT image...
(bootloader) Flashing backup GPT image...
OKAY [ 0.094s]
finished. total time: 0.141s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash bootloader bootloader.img
target reported max download size of 536870912 bytes
sending 'bootloader' (3651 KB)...
OKAY [ 0.141s]
writing 'bootloader'...
(bootloader) validating: bootloader.default.xml ...
(bootloader) will pass: flash:aboot
(bootloader) will pass: flash:rpm
(bootloader) will pass: flash:tz
(bootloader) will pass: flash:hyp
(bootloader) will pass: flash:cmnlib
(bootloader) will pass: flash:keymaster
(bootloader) will pass: flash:sbl1
(bootloader) committing: bootloader.default.xml ...
(bootloader) - flashing 'emmc_appsboot.mbn' to 'aboot'
(bootloader) - flashing 'rpm.mbn' to 'rpm'
(bootloader) - flashing 'tz.mbn' to 'tz'
(bootloader) - flashing 'hyp.mbn' to 'hyp'
(bootloader) - flashing 'cmnlib.mbn' to 'cmnlib'
(bootloader) - flashing 'keymaster.mbn' to 'keymaster'
(bootloader) - flashing 'sbl1.mbn' to 'sbl1'
OKAY [ 0.453s]
finished. total time: 0.594s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash logo logo.bin
target reported max download size of 536870912 bytes
sending 'logo' (1848 KB)...
OKAY [ 0.094s]
writing 'logo'...
OKAY [ 0.063s]
finished. total time: 0.156s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash boot boot.img
target reported max download size of 536870912 bytes
sending 'boot' (16384 KB)...
OKAY [ 0.547s]
writing 'boot'...
OKAY [ 0.391s]
finished. total time: 0.938s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash recovery recovery.img
target reported max download size of 536870912 bytes
sending 'recovery' (16484 KB)...
OKAY [ 0.563s]
writing 'recovery'...
OKAY [ 0.406s]
finished. total time: 0.969s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash dsp adspso.bin
target reported max download size of 536870912 bytes
sending 'dsp' (16384 KB)...
OKAY [ 0.547s]
writing 'dsp'...
OKAY [ 0.250s]
finished. total time: 0.813s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash oem oem.img
target reported max download size of 536870912 bytes
sending 'oem' (124713 KB)...
OKAY [ 4.031s]
writing 'oem'...
OKAY [ 7.547s]
finished. total time: 14.344s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.0
target reported max download size of 536870912 bytes
sending 'system' (261790 KB)...
OKAY [ 8.438s]
writing 'system'...
OKAY [ 6.219s]
finished. total time: 14.656s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.1
target reported max download size of 536870912 bytes
sending 'system' (252965 KB)...
OKAY [ 8.172s]
writing 'system'...
OKAY [ 5.469s]
finished. total time: 13.641s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.2
target reported max download size of 536870912 bytes
sending 'system' (255295 KB)...
OKAY [ 8.234s]
writing 'system'...
OKAY [ 5.578s]
finished. total time: 13.813s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.3
target reported max download size of 536870912 bytes
sending 'system' (256631 KB)...
OKAY [ 8.281s]
writing 'system'...
OKAY [ 5.625s]
finished. total time: 13.906s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.4
target reported max download size of 536870912 bytes
sending 'system' (256412 KB)...
OKAY [ 8.281s]
writing 'system'...
OKAY [ 5.453s]
finished. total time: 13.750s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.5
target reported max download size of 536870912 bytes
sending 'system' (256741 KB)...
OKAY [ 8.281s]
writing 'system'...
OKAY [ 5.703s]
finished. total time: 13.984s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.6
target reported max download size of 536870912 bytes
sending 'system' (256027 KB)...
OKAY [ 8.281s]
writing 'system'...
OKAY [ 5.766s]
finished. total time: 14.047s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.7
target reported max download size of 536870912 bytes
sending 'system' (223276 KB)...
OKAY [ 7.219s]
writing 'system'...
OKAY [ 9.969s]
finished. total time: 17.203s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash modem NON-HLOS.bin
target reported max download size of 536870912 bytes
sending 'modem' (76865 KB)...
OKAY [ 2.500s]
writing 'modem'...
OKAY [ 1.156s]
finished. total time: 3.656s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot erase modemst1
erasing 'modemst1'...
OKAY [ 0.047s]
finished. total time: 0.047s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot erase modemst2
erasing 'modemst2'...
OKAY [ 0.031s]
finished. total time: 0.031s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash fsg fsg.mbn
target reported max download size of 536870912 bytes
sending 'fsg' (1904 KB)...
OKAY [ 0.078s]
writing 'fsg'...
OKAY [ 0.078s]
finished. total time: 0.156s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot erase cache
erasing 'cache'...
OKAY [ 0.047s]
finished. total time: 0.047s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot erase userdata
erasing 'userdata'...
OKAY [ 0.125s]
finished. total time: 0.125s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot erase customize
erasing 'customize'...
OKAY [ 0.031s]
finished. total time: 0.031s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot erase clogo
erasing 'clogo'...
OKAY [ 0.016s]
finished. total time: 0.031s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot oem lock
...
(bootloader) Lock complete! Flash signed images after reboot if needed
OKAY [ 0.156s]
finished. total time: 0.156s

:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D..................
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
 

mikerowes69

Senior Member
Jun 28, 2011
234
42
0
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
 

daverobinson88

Senior Member
Nov 15, 2016
82
11
0
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.
 

strongst

Forum Moderator
Staff member
Sep 18, 2007
11,655
8,643
253
prolific location
prolific-page.com
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.
There's no e-fuse which get tripped once and can't be resettet, so locking bootloader is possible
 

daverobinson88

Senior Member
Nov 15, 2016
82
11
0
There's no e-fuse which get tripped once and can't be resettet, so locking bootloader is possible
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.
 

Tel864

Senior Member
Nov 22, 2011
3,011
1,093
253
Greenville
There's no e-fuse which get tripped once and can't be resettet, so locking bootloader is possible
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.
 

SoNic67

Senior Member
Apr 10, 2011
1,058
202
0
Yes this worked for me . I successfully relocked the bootloader and even the "unlocked bootloader" warning was removed.
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.
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone