Installing the stock ROM back on Moto Z

Spaniard89

Member
Aug 24, 2016
14
5
0
Very recently, I unlocked my bootloader and installed Lineage 14.1 on EU Moto Z retail version bought from Germany. I would now like to go back to the stock firmware that came with the phone.

I tried to download the following rom https://forum.xda-developers.com/moto-z/development/moto-z-official-firmware-downloads-t3449837 and tried to flash each component separately using the fastboot command.

But everytime I try to flash gpt.bin :

Code:
fastboot flash partition gpt.bin
I get an error:

Code:
sending 'partition' (32 KB)...
OKAY [  0.059s]
writing 'partition'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.474s
I was wondering if there's a more consistent way to flash the stock rom back? A guide somewhere would be really helpful. I tried searching everywhere but didn't have any luck.
 

sp4rt4n-i17

Senior Member
Oct 19, 2012
62
19
0
Very recently, I unlocked my bootloader and installed Lineage 14.1 on EU Moto Z retail version bought from Germany. I would now like to go back to the stock firmware that came with the phone.

I tried to download the following rom https://forum.xda-developers.com/moto-z/development/moto-z-official-firmware-downloads-t3449837 and tried to flash each component separately using the fastboot command.

But everytime I try to flash gpt.bin :

Code:
fastboot flash partition gpt.bin
I get an error:

Code:
sending 'partition' (32 KB)...
OKAY [  0.059s]
writing 'partition'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.474s
I was wondering if there's a more consistent way to flash the stock rom back? A guide somewhere would be really helpful. I tried searching everywhere but didn't have any luck.
First of all, you have to use an Android 7 Image, most recent should be RETBR.
I was in the same situation, there is no need for flashing gpt.bin, the other files will work.
Your BL is more up-to-date than the most recent image and I think another problem is that it isn't RETEU...this will cause the error, however, it will work and you will get softwarechannel "reteu".

Only flaw will be, that you're unable to relock the BL.

Hope this helps.

PN me, if you want more information in german.

Gesendet von meinem XT1650 mit Tapatalk
 

Spaniard89

Member
Aug 24, 2016
14
5
0
First of all, you have to use an Android 7 Image, most recent should be RETBR.
I was in the same situation, there is no need for flashing gpt.bin, the other files will work.
Your BL is more up-to-date than the most recent image and I think another problem is that it isn't RETEU...this will cause the error, however, it will work and you will get softwarechannel "reteu".

Only flaw will be, that you're unable to relock the BL.

Hope this helps.

PN me, if you want more information in german.

Gesendet von meinem XT1650 mit Tapatalk
Thanks a lot for the info, where can I find the Android 7 image for moto Z? and what would be the steps in this case? Should I just install the zip file via twrp?
 

sp4rt4n-i17

Senior Member
Oct 19, 2012
62
19
0
Thanks a lot for the info, where can I find the Android 7 image for moto Z? and what would be the steps in this case? Should I just install the zip file via twrp?
take a look here

and choose "XT1650-03_GRIFFIN_RETBR_NPL25.86-30_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip"

you have to flash it via fastboot ... btw: TWRP will be gone after flashing, this is 'cause you will flash the original recovery (you will need this for OTA anyway)

steps would be:

0. download files, obviously
1. install motorola device manager, which should include fastboot drivers
2. install minimal adb&fastboot
3. extract files from zip and put them in the same directory as fastboot.exe (should be "C:\Program Files (x86)\Minimal ADB and Fastboot")
3. boot phone into fastboot mode (power off, power on while holding power+volume down, then choose "fastboot mode")
4. flash via fastboot:

fastboot flash bootloader bootloader.img
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase modemst1
fastboot erase modemst2
fastboot flash bluetooth BTFM.bin
fastboot flash dsp adspso.bin
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.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 system system.img_sparsechunk.8
fastboot flash system system.img_sparsechunk.9
fastboot flash system system.img_sparsechunk.10
fastboot flash system system.img_sparsechunk.11
fastboot flash system system.img_sparsechunk.12
fastboot flash oem oem.img
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo

fastboot erase ddr (don't know if this is nessecary)

fastboot reboot

5. profit?


if you need TWRP after this process: you could just "boot it" via "fastboot boot twrp.img" without installing it
 

Spaniard89

Member
Aug 24, 2016
14
5
0
take a look here

and choose "XT1650-03_GRIFFIN_RETBR_NPL25.86-30_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip"

you have to flash it via fastboot ... btw: TWRP will be gone after flashing, this is 'cause you will flash the original recovery (you will need this for OTA anyway)

steps would be:

0. download files, obviously
1. install motorola device manager, which should include fastboot drivers
2. install minimal adb&fastboot
3. extract files from zip and put them in the same directory as fastboot.exe (should be "C:\Program Files (x86)\Minimal ADB and Fastboot")
3. boot phone into fastboot mode (power off, power on while holding power+volume down, then choose "fastboot mode")
4. flash via fastboot:

fastboot flash bootloader bootloader.img
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase modemst1
fastboot erase modemst2
fastboot flash bluetooth BTFM.bin
fastboot flash dsp adspso.bin
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.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 system system.img_sparsechunk.8
fastboot flash system system.img_sparsechunk.9
fastboot flash system system.img_sparsechunk.10
fastboot flash system system.img_sparsechunk.11
fastboot flash system system.img_sparsechunk.12
fastboot flash oem oem.img
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo

fastboot erase ddr (don't know if this is nessecary)

fastboot reboot

5. profit?


if you need TWRP after this process: you could just "boot it" via "fastboot boot twrp.img" without installing it

Thanks you very much. I am sure this will help a lot of other people out there.
 

bokibo

Member
Sep 5, 2015
14
0
0
I saw that this is an old post but it did not helped me with my moto Z. I had android 8.0 installed on my moto Z and wifi was not working at all, bluetooth and wifi were disabled whole time, and phone frozed 30 sec after startup.
Following instruction from this post I installed android 7 on phone. Now phone is not freezing anymore but wifi and BT are still disabled. Can someone help me to choose correct ROM from this link? How to choose the one I need? I need something for Europe and to be Android 6.
 
Last edited: