Can't restore stock firmware with fastboot - Moto G4 Plus Questions & Answers

I flashed a custom Oreo 8.1 ROM onto my Moto G4 Plus, and decided to go back to the stock firmware.
However, when attempting to restore the firmware with fastboot, several of the commands fail:
Code:
writing 'system'...
(bootloader) Security version downgrade
(bootloader) Image s failed validation
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
How can I restore the stock firmware? Is there another way, other than through fastboot?
Any help is greatly appreciated.
I installed the custom Oreo rom found here: https://forum.xda-developers.com/moto-g4-plus/development/rom-android-source-project-t3716697
I downloaded the firmware found here: https://forum.xda-developers.com/showpost.php?p=74467073&postcount=413
I followed the instructions found here: https://forum.xda-developers.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138

I may have figured it out - looks like I was trying to flash the non-US firmware instead of the US firmware. I'll let y'all know if I get it figured out or not.

Never mind, it's all good!! A lesson to others to check the build numbers and software channels before flashing.

Related

"(bootloader) Preflash validation failed" - Moto G4 Plus

My Moto G4 Plus has now no OS installed on it. I'm currently following a site (Stock Firmware of Moto G4 and Moto G4 Plus) to flash it back to stock. Right now i'm stuck at the last step (I skipped step 5 just to be sure of that each command is working). 1st command was working, but then 2nd command is got this:
Code:
C:\adb>fastboot flash partition gpt.bin
target reported max download size of 536870912 bytes
sending 'partition' (32 KB)...
OKAY [ 0.000s]
writing 'partition'...
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.053s
C:\adb>
Seems like this has been happening to older Moto G version (like Moto G 3 Gen, Moto E).
Can anybody help me, i'm really stuck and can't get anything to work. :crying:
http://www.filefactory.com/folder/c6cdedc45a775d27/?sort=created&order=DESC&show
Enviado desde mi Moto G (4) mediante Tapatalk
Aqryllic said:
My Moto G4 Plus has now no OS installed on it. I'm currently following a site (Stock Firmware of Moto G4 and Moto G4 Plus) to flash it back to stock. Right now i'm stuck at the last step (I skipped step 5 just to be sure of that each command is working). 1st command was working, but then 2nd command is got this:
Code:
C:\adb>fastboot flash partition gpt.bin
target reported max download size of 536870912 bytes
sending 'partition' (32 KB)...
OKAY [ 0.000s]
writing 'partition'...
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.053s
C:\adb>
Seems like this has been happening to older Moto G version (like Moto G 3 Gen, Moto E).
Can anybody help me, i'm really stuck and can't get anything to work. :crying:
Click to expand...
Click to collapse
Apparently you're trying to downgrade or install the wrong version of the firmware. The firmware has exactly to meet the version of your phone. So, for instance, for an XT1642 you flash software for an XT1642 and not for an XT1644. Read carefully and flash every file one by one in the exact order. And be sure your bootloader is unlocked.
Send with my Moto G4 Plus (XT1642) using Tapatalk!
rsd light 6.2.4 and fiemware
leave firmware zipped open rsd click browse and click firmware and then click unpack and start flashing ......works every time
Preflash validation failed error while flashing partition
I m also in trouble. Anybody please help.
I:\MOTO\ROMS\STOCK\G4_XT1641-XT1643_ATHENE_6.0.1_MPJ24.139-13.1_cid50_subsidy-DEFAULT_CFC.xml>fastboot flash partition gpt.bin
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slotartition: not found
target reported max download size of 536870912 bytes
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.074s
vishnucr3000 said:
I m also in trouble. Anybody please help.
I:\MOTO\ROMS\STOCK\G4_XT1641-XT1643_ATHENE_6.0.1_MPJ24.139-13.1_cid50_subsidy-DEFAULT_CFC.xml>fastboot flash partition gpt.bin
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slotartition: not found
target reported max download size of 536870912 bytes
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.074s
Click to expand...
Click to collapse
Your downloaded ROM is 6.0.1_MPJ24.139-13.1 , and its too old, which means you are downgrading firmware version.
Downgrading of gpt and bootloader is not possible, also it may cause problems to you.
Download latest firmware and flash it..
Hello. Edit your "flash.xml" from firmware and delete line related to "gpt.bin".
Reflash your firmware with rsdlight using flash.xml
moto g4 plus xt1643 stuck on fastboot mode
my moto g4 plus is bricked it was only showing
AP Fastboot Flash Mode (secure)
BL: B1.06(*) (sha-0edfb0d. 2017-06-01 12 : 10 : 43)
Baseband:
Product/Variant : athene_16mp 000000000000000 32gb P2A
Serial Number : 26da663
CPU : MSM8952
eMC : 32GB MICRON Q3J97V RV=08 PV=10 FV=00000000000000000A2
DRM : 3GB MICRON LP3 DIE=6GB M5=03 M6=00 M7=00 M8=7B
Console {NULL} : null
Tools Mode Config : DISABLED
Battery OK
oem_locked
Software Status : Modified
connect usb data cable
and i downloaded latest firmware of moto g4 plus xt1643 <Moto_G4_Plus_XT1643_ATHENE_MPJ24.139-63> it says that
(bootloader) Not in unlocked state
OKAY [ 0.028s]
finished. total time: 0.031s
C:\Users\shaikh\Downloads\mfastboot-v2>fastboot oem lock begin
...
(bootloader) Not in unlocked state
OKAY [ 0.860s]
finished. total time: 0.952s
C:\Users\shaikh\Downloads\mfastboot-v2>fastboot flash partition gpt.bin
target reported max download size of 536870912 bytes
sending 'partition' (32 KB)...
OKAY [ 0.016s]
writing 'partition'...
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 1.110s
i checked many times that i was flashing a correct rom of correct model number
and i also flash a latest versions and old versions roms of moto g4 plus
NOW WHAT I DO PLZZZZZZZZZZZ HELP PLZZZZZZZZZZZZZZZZZZZZZ
nawazsk611 said:
my moto g4 plus is bricked it was only showing
AP Fastboot Flash Mode (secure)
BL: B1.06(*) (sha-0edfb0d. 2017-06-01 12 : 10 : 43)
Baseband:
Product/Variant : athene_16mp 000000000000000 32gb P2A
Serial Number : 26da663
CPU : MSM8952
eMC : 32GB MICRON Q3J97V RV=08 PV=10 FV=00000000000000000A2
DRM : 3GB MICRON LP3 DIE=6GB M5=03 M6=00 M7=00 M8=7B
Console {NULL} : null
Tools Mode Config : DISABLED
Battery OK
oem_locked
Software Status : Modified
connect usb data cable
and i downloaded latest firmware of moto g4 plus xt1643 <Moto_G4_Plus_XT1643_ATHENE_MPJ24.139-63> it says that
...
<snip>
writing 'partition'...
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 1.110s
i checked many times that i was flashing a correct rom of correct model number
and i also flash a latest versions and old versions roms of moto g4 plus
NOW WHAT I DO PLZZZZZZZZZZZ HELP PLZZZZZZZZZZZZZZZZZZZZZ
Click to expand...
Click to collapse
From the looks of it you used the blankflash for the B1:06 bootloader. The reason you're getting the pre-flash validation error is that the MPJ24.139-63 firmware is too old to flash onto your device (that's the Marshmallow 6.0 July 2016 patch, not the latest unless you're wanting Marshmallow), whereas you have at least the June 2017/Sept 2017 bootloader on your device.
I would strongly recommend you flash the latest stock ROM we have, which is here: https://forum.xda-developers.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138 You can either flash the NPJS25.93-14-13 firmware as in the main post, or towards the end of the post, there are links for NPJS25.93-14-18 (April 2018 security patch): https://forum.xda-developers.com/showpost.php?p=76416801&postcount=785
If you really want to use Marshmallow, you could in theory flash without flashing GPT and bootloader, but you must not use OTA updates. If you want to update, you need to flash stock firmware.
If you want MM... YOU should 1st flash latest nougat... And then.. Boot into twrp don't flash it.. Just boot... And then wipe system, dalvik, data, cache.. And then flash MM.. without flashing gpt.bin and bootloader..
And as suggested by @echo92 you should not take any OTAs.. You'll brick your device..
flash was succesfully done by following your steps (BIG THANKS FOR THAT)
but phone is not turning on after reboot
it comes with motorola logo and then it will automatic turn of and now only led was blinking
and when i press power + volume up button at 1 minute then motorola logo was reappear and
then the same process was happening
and in device manager it was showing qualcomm loader 900 or something like this i didn't remember
what is the solution
nawazsk611 said:
flash was succesfully done by following your steps (BIG THANKS FOR THAT)
but phone is not turning on after reboot
it comes with motorola logo and then it will automatic turn of and now only led was blinking
and when i press power + volume up button at 1 minute then motorola logo was reappear and
then the same process was happening
and in device manager it was showing qualcomm loader 900 or something like this i didn't remember
what is the solution
Click to expand...
Click to collapse
Hmm, is this with a locked bootloader or unlocked bootloader?
What steps did you use, just for clarification? Did you flash the stock ROM with or without re-locking instructions?
Are you able to boot to the bootloader still (using power and volume down whilst your device is powered off)?
I am sending you a video after flashing my moto g4 plus xt1643
It was like bootloop happening
This is a link that i uploded on youtube after flashing
https://m.youtube.com/watch?v=v0sT45xXcuw
nawazsk611 said:
I am sending you a video after flashing my moto g4 plus xt1643
It was like bootloop happening
This is a link that i uploded on youtube after flashing
https://m.youtube.com/watch?v=v0sT45xXcuw
Click to expand...
Click to collapse
From the video I see no bootloader unlocked screen, which suggests your bootloader is locked.
Can you confirm if you performed all the flashing steps and they were reporting [okay]? A locked bootloader is quite strict and will not let you boot with custom firmware or stock firmware from other builds (must be the same build). I'd recommend booting to the bootloader and reflashing the stock ROM again. Please keep the log and look for any errors. At this stage I would forget marshmallow and focus on flashing the latest stock Nougat ROM.
If a reflash does not work, you may have a hardware error which only a service centre can fix. A boot loop with a locked bootloader suggests either a bad flash or bad hardware.
[FIX]Just restore from a twrp backup
Aqryllic said:
My Moto G4 Plus has now no OS installed on it. I'm currently following a site (Stock Firmware of Moto G4 and Moto G4 Plus) to flash it back to stock. Right now i'm stuck at the last step (I skipped step 5 just to be sure of that each command is working). 1st command was working, but then 2nd command is got this:
Code:
C:\adb>fastboot flash partition gpt.bin
target reported max download size of 536870912 bytes
sending 'partition' (32 KB)...
OKAY [ 0.000s]
writing 'partition'...
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.053s
C:\adb>
Seems like this has been happening to older Moto G version (like Moto G 3 Gen, Moto E).
Can anybody help me, i'm really stuck and can't get anything to work. :crying:
Click to expand...
Click to collapse
So i had the same problem with you, had tried to solve it for 12 hours straight and FINALLY I found a solution: search the internet for a TWRP backup and restore your phone to it. I managed to find one, but i have a z2 play. Hope you can find one as well.
i was downloaded latest firmware of moto g4 plus as you given a link of download now it was showing with this message
C:\Program Files\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.0
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:system: not found
target reported max download size of 536870912 bytes
sending 'system' (261013 KB)...
OKAY [ 11.739s]
writing 'system'...
(bootloader) Failed to flash sparse image
FAILED (remote failure)
finished. total time: 14.474s
WHAT IS THE SOLUTION !!!!!
Aqryllic said:
My Moto G4 Plus has now no OS installed on it. I'm currently following a site (Stock Firmware of Moto G4 and Moto G4 Plus) to flash it back to stock. Right now i'm stuck at the last step (I skipped step 5 just to be sure of that each command is working). 1st command was working, but then 2nd command is got this:
Code:
C:\adb>fastboot flash partition gpt.bin
target reported max download size of 536870912 bytes
sending 'partition' (32 KB)...
OKAY [ 0.000s]
writing 'partition'...
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.053s
C:\adb>
Seems like this has been happening to older Moto G version (like Moto G 3 Gen, Moto E).
Can anybody help me, i'm really stuck and can't get anything to work. :crying:
Click to expand...
Click to collapse
Bro try using the RSD-Lite . I had the same issue. I flashed the same ROM using RSD-Lite and it all worked fine.
Use this guide https://www.rootjunky.com/rsd-lite-mac-linux/
Please flash gtb.bin and bootloader.img of stock Rome npjs25.93.14.18. If you need these files please email me your mail I'd on [email protected]. I will mail these files.
Phpatel2003 said:
Please flash gtb.bin and bootloader.img of stock Rome npjs25.93.14.18. If you need these files please email me your mail I'd on edited. I will mail these files.
Click to expand...
Click to collapse
Please note these files are also available here: https://drive.google.com/drive/folders/0B-GUyOfb8OgzcUl1NUtHYWNIR2M or from the stock ROM provided here: https://forum.xda-developers.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138
I would also remove your email address to limit spammers and potential threats to your email security. If a member needs your contact details, I'm sure they can private message you.
Bro...my phone moto g4 plus .I install marshmallow 6.0 something it's showing nougat update then I did download and install after installing now it's time to reboot it's switched off its showing led blinking not switched on then I was searching for solution then I got the blankflash file and tried it's open fastboot mode but no OS installed then I did tried marshmallow but not install then I was tried latest updated nougat it's installed working perfectly.after one day I got security patch update its 40MB .I did download and install then after installing it's time to reboot phone switched off its led blinking not switched on.then I did tried all previous blankflash including latest updated blankflash 8.1.0 anthena file but not working for me it's says something errors.
Please please help me ..I haven't any another mobile only one phone that's now hardbricked ...please:crying:

****, phone aint booting up

So i unlocked the bootloader using the code that you get from the motorola official website and then installed twrp. It all went just find, but then I flashed the magisk zip and tried booting up but no response. Its like the power button doesnt work at all. Fastboot mode is still working and i can get into the recovery, tried restoring the old backup, factory reset, installing a rom (RR) but no luck. pls help this fella
Wipe data. Install the ROM of your choice.
If that fails, flash your device's stock ROM.
You have to flash a custom kernel like ElementalX before rooting because magisk roots your phone by patching the boot image which isn't supported by the stock kernel! This is why your phone is not booting up!
If you can still access bootloader mode, try this https://forum.xda-developers.com/moto-g4-plus/how-to/moto-g4-plus-xt1640-43-athene-npj25-93-t3549369
Saumitraa said:
You have to flash a custom kernel like ElementalX before rooting because magisk roots your phone by patching the boot image which isn't supported by the stock kernel! This is why your phone is not booting up!
If you can still access bootloader mode, try this https://forum.xda-developers.com/moto-g4-plus/how-to/moto-g4-plus-xt1640-43-athene-npj25-93-t3549369
Click to expand...
Click to collapse
i see, will try this right now
Darkther said:
i see, will try this right now
Click to expand...
Click to collapse
You have to flash the custom kernel before rooting only when you are on stock or stock based roms and not on custom roms! Good Luck
Saumitraa said:
You have to flash the custom kernel before rooting only when you are on stock or stock based roms and not on custom roms! Good Luck
Click to expand...
Click to collapse
while flashing the images i am getting the following error
Code:
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:partition: not found
target reported max download size of 536870912 bytes
sending 'partition' (32 KB)...
OKAY [ 0.006s]
writing 'partition'...
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.054s
Darkther said:
while flashing the images i am getting the following error
Click to expand...
Click to collapse
Looks like you are trying to get back to stock, follow the steps here
https://forum.xda-developers.com/moto-g4-plus/how-to/moto-g4-plus-xt1640-43-athene-npj25-93-t3549369
Darkther said:
while flashing the images i am getting the following error
Code:
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:partition: not found
target reported max download size of 536870912 bytes
sending 'partition' (32 KB)...
OKAY [ 0.006s]
writing 'partition'...
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.054s
Click to expand...
Click to collapse
If the above firmware isn't working, it might be because the firmware you're trying to flash is too old; you may have to flash the March 2017 firmware (the latest firmware we have) which is here: https://forum.xda-developers.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138

Help please. Athene bricked after updating Lineage Nougat.

OP. After downloading Lineage last update through updater in settings, my phone was hardbricked.
I tried to follow this guide https://forum.xda-developers.com/moto-g4-plus/how-to/moto-g4-plus-hardbrick-solved-guide-t3657761 without success. My phone recovered from hardbricking with blankflash and now I'm into a barebone bootloader screen.
The point is I cannot continue with the steps because it seems I'm trying to downgrade the gpt and bootloader
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
Please, help me, thanks.
It lives now, I don't know why.
I tried a yolo and flashed a stock ROM in that barebone fastboot. Almost everything failed but, surprise, Lineage booted in a clean state.

roll back to a previous update xt1768

For some reason I can't flash Magisk on the latest updates (November / December) getting "unable to mount /data" or "unable to mount /cache" errors in twrp (3.2.3-r1) so I wanted to roll back to one of the previous updates (July / August) and try flashing Magisk from there. However, every time upon starting the flashfile I get this error:
Code:
Writing 'partition' (bootloader) Validating 'gpt.default.xml'
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
(bootloader) Cancelling 'gpt.default.xml'
FAILED (remote: '')
So I have two questions: 1) Was there something about the latest updates that prevents Magisk/root, and if so, how could I go about getting it done? Has anyone else run into this? I've read something about patching the boot.img, but I'm not sure what that has to do with this or how to accomplish that. 2) If there indeed was something in the recent updates that breaks the rooting process, is there a way to downgrade to an earlier update and get root from there?
Edit: rooted the phone by flashing a boot image that I patched through Magisk Manage. Didn't even know that's possible, as I used to always flash no-verity (as well as Magisk) through twrp on this phone.

[SOFTBRIK] Moto G4 Play XT1601 - blankflash error

Hello all,
I am not very familiar with flashing devices and therefore I'm asking for help before trying further be myself.
In short: I flashed Lineage OS 17.1 to my daughters Moto G4 Play (as described in the Lineage-Wiki), recognized an incompatibility of LineageOS with "Google Family Link", reflashed (not the latest) stock rom, started the phone, first ota-update went through, after the 2nd phone didn't start anymore.
Found the threat "[HARDBRIK] Moto G4 Play XT1603..."(didn't recognize the different "variant") , executed the blankflash but now :
my bootloader is locked again
my Product/Variant displays "harpia radio5" (instead of "harpia XT1601")
Could someone give me an advice how to proceed?
Many thanks, Chris
Tried to proceed by myself but didn't get far.
When trying to unlock my bootloader again I receive the following:
>fastboot oem get_unlock_data
(bootloader) Failed to get unlock data, please try again!
FAILED (remote: '')
fastboot: error: Command failed
When trying to flash an recovery image it fails:
>fastboot.exe flash recovery twrp-3.5.0_9-0-harpia.img
(bootloader) has-slot:recovery: not found
(bootloader) is-logical:recovery: not found
Sending 'recovery' (16106 KB) OKAY [ 0.623s]
Writing 'recovery' (bootloader) Permission denied
FAILED (remote: '')
fastboot: error: Command failed
Can anybody give me a hint?
same problem here
you need the stock firmware of your variant flashing first the GPT.bin
you bootloader is lock when blankflash and you need flash all firmware ,then unlock the bootloader with your code without forgetting to put oem unlock in the developer options
angelgs826 said:
you need the stock firmware of your variant flashing first the GPT.bin
Click to expand...
Click to collapse
Thank you, your comment was very useful.

Categories

Resources