Moto G4 plus relock bootloader

Sheik.AlQla

Senior Member
Oct 23, 2012
263
42
0
I had problem with my device
when I do restart it goes to fastboot mode directly
which line should I flash to solve this small problem ?

Thank you for all :)
 

worravut

New member
Feb 15, 2010
2
0
0
mfastboot oem fb_mode_set
mfastboot flash partition gpt.bin
mfastboot flash bootloader bootloader.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash dsp adspso.bin
mfastboot flash oem oem.img
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
mfastboot flash system system.img_sparsechunk.4
mfastboot flash system system.img_sparsechunk.5
mfastboot flash system system.img_sparsechunk.6
mfastboot flash system system.img_sparsechunk.7
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
mfastboot erase customize
mfastboot erase clogo
mfastboot oem fb_mode_clear
mfastboot oem lock

It's not work for me. I use this.

mfastboot oem lock begin
mfastboot flash partition gpt.bin
mfastboot flash bootloader bootloader.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash dsp adspso.bin
mfastboot flash oem oem.img
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
mfastboot flash system system.img_sparsechunk.4
mfastboot flash system system.img_sparsechunk.5
mfastboot flash system system.img_sparsechunk.6
mfastboot flash system system.img_sparsechunk.7
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
mfastboot erase customize
mfastboot erase clogo
mfastboot oem lock
 

anhoxhrs

Senior Member
Jul 23, 2016
236
42
0
Somewhere on map!
[mfastboot oem fb_mode_clear]and[mfastboot oem fb_mode_set] are for unlocking most probably
i used oem lock begin first then used all of this commands after that.
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
 

Rahulsingh190

Senior Member
Oct 4, 2012
319
58
58
Can Anyone Who has relocked the Bootloader, Execute this command - "fastboot getvar all", and check the line - "iswarrantyvoid", does the value here, return back to "no" after relocking, or does it stays to "yes"?

Also, can the motorola figure out if we've unlocked the bootloader before, but then reflashed and locked it again, maybe something like a flash counter or a qfuse?

~Thanks
 
Last edited:
  • Like
Reactions: adeptustech

anhoxhrs

Senior Member
Jul 23, 2016
236
42
0
Somewhere on map!
It will say yes after relocking.As far as i have heard all the new phone come with a fuse,when you unlock the bootloader it breaks and becomes permanent.And last you have req the code from there site so its also a proof.
 
Last edited:

swarupgolui

Senior Member
Sep 7, 2016
97
73
18
Howrah
You'll have to reflash stock rom - and end with oem lock command....

Full reflash sequence:

mfastboot oem fb_mode_set
mfastboot flash partition gpt.bin
mfastboot flash bootloader bootloader.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash dsp adspso.bin
mfastboot flash oem oem.img
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
mfastboot flash system system.img_sparsechunk.4
mfastboot flash system system.img_sparsechunk.5
mfastboot flash system system.img_sparsechunk.6
mfastboot flash system system.img_sparsechunk.7
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
mfastboot erase customize
mfastboot erase clogo
mfastboot oem fb_mode_clear
mfastboot oem lock
( mfastboot oem lock ) Not Working For ME, Iam Using ( XT1626-XT1640-XT1641_ATHENE_6.0.1_MPJ24.139-23.1_cid50_subsidy-DEFAULT_CFC.xml ) For XT1643
bootloader unlocked Warning Still Showing..

Can Anyone Help Me Please?

Thanks..
 

Tel864

Senior Member
Nov 22, 2011
3,011
1,093
253
Greenville
( mfastboot oem lock ) Not Working For ME, Iam Using ( XT1626-XT1640-XT1641_ATHENE_6.0.1_MPJ24.139-23.1_cid50_subsidy-DEFAULT_CFC.xml ) For XT1643
bootloader unlocked Warning Still Showing..

Can Anyone Help Me Please?

Thanks..
That command doesn't really do anything as far as the warning or the warranty.
 

audismart007

Senior Member
Jul 28, 2014
113
20
18
London
i have rooted my g4 plus.now how can i revert to stockrom?
and what is the different between between stock rom and firmware? is it necessary to download both to revert to stock? and how to flash stock recovery? pls anyone help me.
 

swarupgolui

Senior Member
Sep 7, 2016
97
73
18
Howrah
i have rooted my g4 plus.now how can i revert to stockrom?
and what is the different between between stock rom and firmware? is it necessary to download both to revert to stock? and how to flash stock recovery? pls anyone help me.
I am Not creator of This Topic
Flashing Stock Firmware:
1) Download firmware for XT1643 from https://drive.google.com/file/d/0B1N6dGU7FEXsSjR3QUtsRU1RTVk/view
2) Download mfastboot from https://drive.google.com/file/d/0B5j...ew?usp=sharing
3) Extract the firmware into the folder containing mfastboot.
4) Reboot the phone into Bootloader (power off, then press the power and volume down buttons simultaneously).
5) Execute these commands and make sure you receive an 'OKAY' after each command.
Code:
mfastboot oem fb_mode_set
mfastboot flash partition gpt.bin
mfastboot flash bootloader bootloader.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash dsp adspso.bin
mfastboot flash oem oem.img
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
mfastboot flash system system.img_sparsechunk.4
mfastboot flash system system.img_sparsechunk.5
mfastboot flash system system.img_sparsechunk.6
mfastboot flash system system.img_sparsechunk.7
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
mfastboot erase customize
mfastboot erase clogo
mfastboot oem fb_mode_clear
mfastboot reboot

Hope Its Helpfull For You.... :D:D:D:D:D:D
 
Last edited:
  • Like
Reactions: audismart007

anhoxhrs

Senior Member
Jul 23, 2016
236
42
0
Somewhere on map!
Flashing Stock Firmware:
1) Download firmware for XT1643 from https://drive.google.com/file/d/0B1N6dGU7FEXsSjR3QUtsRU1RTVk/view
2) Download mfastboot from https://drive.google.com/file/d/0B5j...ew?usp=sharing
3) Extract the firmware into the folder containing mfastboot.
4) Reboot the phone into Bootloader (power off, then press the power and volume down buttons simultaneously).
5) Execute these commands and make sure you receive an 'OKAY' after each command.
Code:
mfastboot oem fb_mode_set
mfastboot flash partition gpt.bin
mfastboot flash bootloader bootloader.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash dsp adspso.bin
mfastboot flash oem oem.img
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
mfastboot flash system system.img_sparsechunk.4
mfastboot flash system system.img_sparsechunk.5
mfastboot flash system system.img_sparsechunk.6
mfastboot flash system system.img_sparsechunk.7
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
mfastboot erase customize
mfastboot erase clogo
mfastboot oem fb_mode_clear
mfastboot reboot

Hope Its Helpfull For You.... :D:D:D:D:D:D
LOL copied from another thread xD.
 
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