cant flash my moto g4 plus - Moto G4 Plus Questions & Answers

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

gpav11 said:
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
Click to expand...
Click to collapse
It seems you are trying to downgrade your bootloader , which is not possible for now with the normal flashing method. And another thing dont play with gpt and bootloader if you dont want your device in hard brick. !

Start reading from post no. #14
http://forum.xda-developers.com/mot...rce-thread-t3386584/post67076984#post67076984

i got these errors
C:\adb>fastboot flash partition gpt.bin
target reported max download size of 536870912 bytes
sending 'partition' (32 KB)...
OKAY [ 0.031s]
writing 'partition'...
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.063s
C:\adb>fastboot flash boot boot.img
target reported max download size of 536870912 bytes
sending 'boot' (16384 KB)...
OKAY [ 0.513s]
writing 'boot'...
(bootloader) Image not signed or corrupt

C:\adb>fastboot oem lock
...
(bootloader) Still require signed boot.img
OKAY [ 0.000s]
finished. total time: 0.016s

gpav11 said:
i got these errors
C:\adb>fastboot flash partition gpt.bin
target reported max download size of 536870912 bytes
sending 'partition' (32 KB)...
OKAY [ 0.031s]
writing 'partition'...
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.063s
C:\adb>fastboot flash boot boot.img
target reported max download size of 536870912 bytes
sending 'boot' (16384 KB)...
OKAY [ 0.513s]
writing 'boot'...
(bootloader) Image not signed or corrupt
Click to expand...
Click to collapse
Did you read the thread i posted link in above reply...?
It says you have wrong file, download the correct file....

gpav11 said:
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
Click to expand...
Click to collapse
Idk what does @__Madddy wants to say, but here's the deal. You cannot downgrade gpt.bin. Also, if it says "signed image is corrupted" don't worry. It still got flashed. Seems like moto is trying to give us the impression that something is wrong but nothing like that. Just flash and boot up. But if your are trying to flash TWRP, don't boot up. Instead, go straight to the recovery by pressing volume down button 2 times and then pressing the power button the moment after it is flashed. When you flash TWRP and you normally bootup while in stock ROM , the stock ROM replaces your TWRP recovery with stock recovery.
Hope I have helped.

PseudoDev said:
Idk what does @__Madddy wants to say,
Click to expand...
Click to collapse
@__Madddy is trying to tell him that he cannot flash the gpt partitioning data over an older one.
gpav11 said:
flash partition gpt.bin
Click to expand...
Click to collapse
This doesn't mean he's flashing TWRP.
If he flashed TWRP and got the error, then what you're saying is correct.

zeomal said:
@__Madddy is trying to tell him that he cannot flash the gpt partitioning data over an older one.
This doesn't mean he's flashing TWRP.
If he flashed TWRP and got the error, then what you're saying is correct.
Click to expand...
Click to collapse
No, he just linked to another post asking him to read from post 14. If you see that, although this error is mentioned but the REASON for the bug is not mentioned. In that post, it's just a guy who flashed the wrong stock ROM and that's it.
I think
@gpav11 wants to know why he couldn't do it and so I explained the reason why he couldn't do it. Also, I mentioned about TWRP just in case. I clearly didn't mean he was going to flash it cause is added the word "but".

PseudoDev said:
Idk what does @__Madddy wants to say,
Click to expand...
Click to collapse
As i said start reading from post 14.. he had same problem and see next post what reply he got, and solved his problem, read 19th post...

Team,
I tried the rom given in the link also.
Still i get the issue of not able to lock the bootloader
Please help.
i used this G4_XT1641-XT1643_ATHENE_6.0.1_MPJ24.139-13.1_cid50_subsidy-DEFAULT_CFC.xml.zip which doesnt give an update after the flashing but gives me errors and cant lock the phone back.
i used this one also XT1626-XT1640-XT1641_ATHENE_6.0.1_MPJ24.139-23.1_cid50_subsidy-DEFAULT_CFC.xml.Zip , update after flashing but it also gives me the same errors and cant lock the phone back.

Related

XT1575 stuck in bootloop, bootloader is locked, how do I fix my phone?

This phone has not been rooted or unlocked, I was running official MM OTA when suddenly last night it stopped booting. The Moto logo appears and then it goes to black and stays there for eternity while draining battery. I tried going into recovery mode and wiping cache + factory reset, but it didn't help. The "restore-to-stock" tool floating around the internet fails as well:
Test
error: device not found
target reported max download size of 536870912 bytes
sending 'partition' (32 KB)...
OKAY [ 0.003s]
writing 'partition'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.366s
target reported max download size of 536870912 bytes
sending 'bootloader' (2699 KB)...
OKAY [ 0.061s]
writing 'bootloader'...
(bootloader) flashing aboot ...
(bootloader) flashing sbl1 ...
(bootloader) flashing pmic ...
(bootloader) flashing rpm ...
(bootloader) flashing tz ...
(bootloader) flashing hyp ...
(bootloader) flashing sdi ...
OKAY [ 2.715s]
finished. total time: 2.778s
target reported max download size of 536870912 bytes
sending 'logo' (2001 KB)...
OKAY [ 0.046s]
writing 'logo'...
OKAY [ 0.040s]
finished. total time: 0.090s
target reported max download size of 536870912 bytes
sending 'boot' (40960 KB)...
OKAY [ 0.922s]
writing 'boot'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 1.617s
target reported max download size of 536870912 bytes
sending 'recovery' (41040 KB)...
OKAY [ 0.916s]
writing 'recovery'...
OKAY [ 1.370s]
finished. total time: 2.288s
target reported max download size of 536870912 bytes
sending 'system' (260220 KB)...
OKAY [ 5.515s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
Click to expand...
Click to collapse
If I attempt to unlock the bootloader I get '(bootloader) Check 'Allow OEM Unlock' in Developer Options.' - which I can't do since the phone is bricked.
What can I do?
DrGamut said:
This phone has not been rooted or unlocked, I was running official MM OTA when suddenly last night it stopped booting. The Moto logo appears and then it goes to black and stays there for eternity while draining battery. I tried going into recovery mode and wiping cache + factory reset, but it didn't help. The "restore-to-stock" tool floating around the internet fails as well:
If I attempt to unlock the bootloader I get '(bootloader) Check 'Allow OEM Unlock' in Developer Options.' - which I can't do since the phone is bricked.
What can I do?
Click to expand...
Click to collapse
If you are not rooted or unlocked, time to take it to Motorola... Call em!
Naddict said:
If you are not rooted or unlocked, time to take it to Motorola... Call em!
Click to expand...
Click to collapse
This is my only option then? I was hoping for something faster, but if that's the only option I'll take it.
Problem was solved by flashing the 6.0 stock firmware found here!!!
DrGamut said:
Problem was solved by flashing the 6.0 stock firmware found here!!!
Click to expand...
Click to collapse
I'm in the same exact boat as you. I tried flashing everything under Android 6.0 on that page but no luck. Mine still bootloops. Exactly how did you do it? Thanks
iflyimpilot said:
I'm in the same exact boat as you. I tried flashing everything under Android 6.0 on that page but no luck. Mine still bootloops. Exactly how did you do it? Thanks
Click to expand...
Click to collapse
Another XT1575 user in the same boat. What procedures did you follow?

Moto Downgrade Utility

** View the making of moto downgrade tool at https://youtu.be/xaJKx9Vqdjc ***
Please like and subscribe to my youtube channel to encourage me to create more tools for the members of xda ! I really really appreciate it
Moto Downgrade Tool is a tool that I have quickly created to SAFELY downgrade android marshmallow to android lollipop on the XT1541 model.
You need Python 3.5 installed to run this program !!
make sure your phone is plugged into your pc and in fastboot mode when you start the tool.
INSTALL MOTO DRIVERS BEFORE USING THE TOOL !!!!
ADB and Fastboot is included in the downgrade tool.
Please comment if you have any issues ! This tool has been tested a few times by myself on my phone. , so it is guaranteed to be able to function correctly !
XDA:DevDB Information
Moto Downgrade Utility, Tool/Utility for the Moto G 2015
Contributors
therealduff1
Version Information
Status: Stable
Current Stable Version: 1.0
Created 2016-03-02
Last Updated 2016-03-02
Keep going on Master!
Sorry for the off topic questions
I'm searching a Rom with multi window feature + floating windows apps like last Sammy's roms for XT1541 do you know any?
Currently using last Resurrection Remix from Vatsal that have multi window but not floating windows
One off topic more:
I have XT1541 European version obtained in Spain but I'm using it in Argentina and my mobile connection (4g) its very slow
I have to change the modem or something else?
Thanks a lot mate!
Enviado desde mi XT1541 mediante Tapatalk
fedez said:
Keep going on Master!
Sorry for the off topic questions
I'm searching a Rom with multi window feature + floating windows apps like last Sammy's roms for XT1541 do you know any?
Currently using last Resurrection Remix from Vatsal that have multi window but not floating windows
One off topic more:
I have XT1541 European version obtained in Spain but I'm using it in Argentina and my mobile connection (4g) its very slow
I have to change the modem or something else?
Thanks a lot mate!
Enviado desde mi XT1541 mediante Tapatalk
Click to expand...
Click to collapse
No need to be sorry for off topic questions !
About the rom , i am not to sure about finding a rom with floating windows , but i would like that aswell !
Also , about using a european device in a different location, this is probably due to different network bands. I would NOT reccomend you flash another models modem, as this could hard brick your phone .
I foyu have any other questions, dont hesitate to ask !
I want to downgrade from stock mm(not rooted) to LP, possible?
arun356y said:
I want to downgrade from stock mm(not rooted) to LP, possible?
Click to expand...
Click to collapse
Using my tool , yes ! . Remember not to accept ota tho
How are you doing the downgrade without having the bootloader unlocked???
Also, is this flashing EVERYTHING, including the bootloader and partition table, or is this just a tool to perform the "normal" downgrade of flashing a factory firmware image and skipping gpt.bin and bootloader.img?
therealduff1 said:
Using my tool , yes ! . Remember not to accept ota tho
Click to expand...
Click to collapse
not to accept ota, why? if in future I want to update then?
acejavelin said:
How are you doing the downgrade without having the bootloader unlocked???
Also, is this flashing EVERYTHING, including the bootloader and partition table, or is this just a tool to perform the "normal" downgrade of flashing a factory firmware image and skipping gpt.bin and bootloader.img?
Click to expand...
Click to collapse
This tool flashes SIGNED images, which means it does not need bootloader unlock. Also , it skips gpt.bin and bootloader.img . It is a normal downgrade, but i made this tool for people who dont want to risk bricking their phones typing the wrong command or accidentally flashing gpt.bin or bootloader.img
therealduff1 said:
This tool flashes SIGNED images, which means it does not need bootloader unlock. Also , it skips gpt.bin and bootloader.img . It is a normal downgrade, but i made this tool for people who dont want to risk bricking their phones typing the wrong command or accidentally flashing gpt.bin or bootloader.img
Click to expand...
Click to collapse
So if I use fastboot and flash a lp I just need to skip those 2 files right?
Downgrading from Rooted Stock MM
I have the XT1541 rooted on stock MM, can i downgrade to stock lollipop without bricking the phone ?
I also flashed the squid kernel r15b (latest)
BurningKoala said:
So if I use fastboot and flash a lp I just need to skip those 2 files right?
Click to expand...
Click to collapse
No need to use fastboot if you trust my programming . but yes , skip gpt.bin and bootloader.IMG and you will be fine my program automatically does that
Hello does my xt1541 need to be unlocked and rooted for this tool to work and downgrade from mm to lollipop?
Agiofws said:
Hello does my xt1541 need to be unlocked and rooted for this tool to work and downgrade from mm to lollipop?
Click to expand...
Click to collapse
No root needed !
Luigi_Manga said:
Ok then, I'll try tonight, does this work whit every rom despite the different number of sparsechunks?
Sent from my MotoG3 using Tapatalk
Click to expand...
Click to collapse
Yes it should work perfectly
Didn't work, still on the crappy 6.0
Partition table has been skipped!
Bootloader has been skipped!
target reported max download size of 268435456 bytes
sending 'logo' (917 KB)...
OKAY [ 0.040s]
writing 'logo'...
OKAY [ 0.071s]
finished. total time: 0.114s
boot logo has been flashed
target reported max download size of 268435456 bytes
sending 'boot' (16384 KB)...
OKAY [ 0.649s]
writing 'boot'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 1.183s
boot.img has been flashed
target reported max download size of 268435456 bytes
sending 'recovery' (16484 KB)...
OKAY [ 0.651s]
writing 'recovery'...
OKAY [ 0.961s]
finished. total time: 1.616s
Stock lollipop recovery has now been flashed
target reported max download size of 268435456 bytes
sending 'system' (262140 KB)...
OKAY [ 10.071s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 10.515s
System part 1 has been flashed
target reported max download size of 268435456 bytes
sending 'system' (262143 KB)...
OKAY [ 10.079s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 10.124s
System part 2 has been flashed
target reported max download size of 268435456 bytes
sending 'system' (232632 KB)...
OKAY [ 8.988s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 9.060s
System part 3 has been flashed
target reported max download size of 268435456 bytes
sending 'system' (233355 KB)...
OKAY [ 8.971s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 9.014s
System part 4 has been flashed
target reported max download size of 268435456 bytes
sending 'system' (257122 KB)...
OKAY [ 9.884s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 9.927s
System part 5 has been flashed
target reported max download size of 268435456 bytes
sending 'system' (236089 KB)...
OKAY [ 9.090s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 9.124s
System part 7 has been flashed
system partitions successfully flashed
target reported max download size of 268435456 bytes
sending 'modem' (36940 KB)...
OKAY [ 1.423s]
writing 'modem'...
OKAY [ 0.994s]
finished. total time: 2.423s
Flashed Mobile Data Connection Chip Data
erasing 'modemst1'...
OKAY [ 0.019s]
finished. total time: 0.021s
erasing 'modemst2'...
OKAY [ 0.014s]
finished. total time: 0.015s
Old data erased
target reported max download size of 268435456 bytes
sending 'fsg' (2031 KB)...
OKAY [ 0.083s]
writing 'fsg'...
OKAY [ 0.083s]
finished. total time: 0.169s
Flashed FSG
erasing 'cache'...
OKAY [ 0.019s]
finished. total time: 0.021s
cache erased
erasing 'userdata'...
OKAY [ 0.199s]
finished. total time: 0.201s
userdata partition formatted
rebooting...
finished. total time: 0.006s
flash finished
***PLEASE READ BELOW***
YOU MUST NOT ACCEPT ANY OTA UPDATES ON YOUR PHONE WHILE IT IS RUNNING LOLLIPOP
OR YOU ARE RISKING A HARD BRICK DUE TO UPGRADING THE BOOTLOADER WHICH IS AT A DI
FFERENT VERSION
THAN EXPECTED
and thats all !
enjoy lollipop again!
Press any key to continue . . .
Click to expand...
Click to collapse
Sorry for the noob question but does the bootloader have to be unlocked?
BurningKoala said:
Didn't work, still on the crappy 6.0
Click to expand...
Click to collapse
Agiofws said:
Sorry for the noob question but does the bootloader have to be unlocked?
Click to expand...
Click to collapse
Downgrade using fastboot it's not possible without unlocked bootloader, that's why I think it didn't work.
coolizard said:
Downgrade using fastboot it's not possible without unlocked bootloader, that's why I think it didn't work.
Click to expand...
Click to collapse
I flashed mine using a locked bootloader
BurningKoala said:
Didn't work, still on the crappy 6.0
Click to expand...
Click to collapse
Ok right , this is a problem with the image, not my program . Are you flashing the correct image for your phone ?
therealduff1 said:
Ok right , this is a problem with the image, not my program . Are you flashing the correct image for your phone ?
Click to expand...
Click to collapse
Yes, I flashed the xt1541 vodafone EU that was on my phone (now I'm on vodafone 6.0), did you think that it's better I flash the no brand eu version?
edit: same errors with the retail eu

Moto G4(4th gen) Hardbricked

I can not unbricked my phone using old methods , I need new bootloader for February security patch updated device.
Same here I am also need 2018 Feb NPJS25.93.14-15. please help
Moto g4 Bricked said:
Same here I am also need 2018 Feb NPJS25.93.14-15. please help
Click to expand...
Click to collapse
Is your phone showing fastboot menu?
Have you tried the blankflash from this guide here: https://forum.xda-developers.com/moto-g4-plus/how-to/moto-g4-plus-hardbrick-solved-guide-t3657761
I have tried blank flash.
the problem is when flash partition from ATHENE_NPJS25.93-14-13_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
, I got error message:
>fastboot flash partition gpt.bin
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.091s
I am not sure if ATHENE_NPJS25.93-14-15 will work, and I can not found it.
echo92 said:
Have you tried the blankflash from this guide here: https://forum.xda-developers.com/moto-g4-plus/how-to/moto-g4-plus-hardbrick-solved-guide-t3657761
Click to expand...
Click to collapse
I have found ATHENE_NPJS25.93-14-15 here, but I am not able to test it now.
Can Anyone test it and report progress?
https://drive.google.com/file/d/1J31aHAQ7wAY2Qqy1U-9m8VtugD2XUtiw/view
llaalways said:
I have tried blank flash.
the problem is when flash partition from ATHENE_NPJS25.93-14-13_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
, I got error message:
>fastboot flash partition gpt.bin
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.091s
I am not sure if ATHENE_NPJS25.93-14-15 will work, and I can not found it.
Click to expand...
Click to collapse
my phone is rescued.
llaalways said:
I have found ATHENE_NPJS25.93-14-15 here, but I am not able to test it now.
Can Anyone test it and report progress?
https://drive.google.com/file/d/1J31aHAQ7wAY2Qqy1U-9m8VtugD2XUtiw/view
Click to expand...
Click to collapse

Device didn't start successfully. Bootloader issue?

So my moto G5 plus has had a problem. I was on stock oreo and it just crashed one day prompting "Your device didn't start up successfully". So I repaired it using the Lenovo software repair assistant and it worked quite perfectly. Now that I had a reset I thought of trying Pixel Experience [AOSP & CAF] ROM and flashed it.
It crashed again and now Lenovo software repair assistant is not able to repair it. Any particular reason? I had USB debugging on and OEM set to unlock when this ROM was working fine. I downloaded the stock ROM repair assistant suggested and tried fastboot way but it also didn't work. There was always remote failure.
Also, adb isn't detecting my device. fastboot is detecting though. here are some details:
Code:
C:\adb>adb devices
List of devices attached
*blank*
C:\adb>fastboot devices
ZY223XXJ9S fastboot
Code:
C:\adb\ROM>fastboot flash partition gpt.bin
target reported max download size of 534773760 bytes
sending 'partition' (45 KB)...
OKAY [ 0.004s]
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 failure)
finished. total time: 0.077s
C:\adb\ROM>fastboot flash bootloader bootloader.img
target reported max download size of 534773760 bytes
sending 'bootloader' (5115 KB)...
OKAY [ 0.117s]
writing 'bootloader'...
(bootloader) Validating 'bootloader.default.xml'
(bootloader) Committing 'bootloader.default.xml'
(bootloader) - flashing 'emmc_appsboot.mbn' to 'aboot'
(bootloader) Failed to erase partition
(bootloader) Failed to flash partition aboot
FAILED (remote failure)
finished. total time: 0.326s
C:\adb\ROM>fastboot flash logo logo.bin
target reported max download size of 534773760 bytes
sending 'logo' (2186 KB)...
OKAY [ 0.051s]
writing 'logo'...
(bootloader) Failed to erase partition
(bootloader) Failed to flash partition logo
FAILED (remote failure)
finished. total time: 0.064s
C:\adb\ROM>fastboot flash boot boot.img
target reported max download size of 534773760 bytes
sending 'boot' (16384 KB)...
OKAY [ 0.380s]
writing 'boot'...
(bootloader) Image signed with key bad key
(bootloader) Failed to erase partition
(bootloader) Failed to flash partition boot
FAILED (remote failure)
finished. total time: 0.486s
C:\adb\ROM>fastboot flash recovery recovery.img
target reported max download size of 534773760 bytes
sending 'recovery' (20580 KB)...
OKAY [ 0.462s]
writing 'recovery'...
(bootloader) Image signed with key bad key
(bootloader) Failed to erase partition
(bootloader) Failed to flash partition recovery
FAILED (remote failure)
finished. total time: 0.615s
C:\adb\ROM>fastboot flash dsp adspso.bin
target reported max download size of 534773760 bytes
sending 'dsp' (16384 KB)...
OKAY [ 0.356s]
writing 'dsp'...
(bootloader) Failed to erase partition
(bootloader) Failed to flash partition dsp
FAILED (remote failure)
finished. total time: 0.369s
C:\adb\ROM>fastboot flash oem oem.img
target reported max download size of 534773760 bytes
sending 'oem' (104608 KB)...
OKAY [ 2.268s]
writing 'oem'...
(bootloader) Failed to flash sparse image
FAILED (remote failure)
finished. total time: 2.279s
C:\adb\ROM>fastboot flash system system.img_sparsechunk.0
target reported max download size of 534773760 bytes
sending 'system' (256557 KB)...
OKAY [ 5.592s]
writing 'system'...
(bootloader) Failed to flash sparse image
FAILED (remote failure)
finished. total time: 5.621s
C:\adb\ROM>fastboot flash system system.img_sparsechunk.1
target reported max download size of 534773760 bytes
sending 'system' (256617 KB)...
OKAY [ 5.602s]
writing 'system'...
(bootloader) Failed to flash sparse image
FAILED (remote failure)
finished. total time: 5.726s
C:\adb\ROM>fastboot flash system system.img_sparsechunk.2
target reported max download size of 534773760 bytes
sending 'system' (254213 KB)...
OKAY [ 5.576s]
writing 'system'...
(bootloader) Failed to flash sparse image
FAILED (remote failure)
finished. total time: 5.636s
C:\adb\ROM>fastboot flash system system.img_sparsechunk.3
target reported max download size of 534773760 bytes
sending 'system' (256710 KB)...
OKAY [ 5.672s]
writing 'system'...
(bootloader) Failed to flash sparse image
FAILED (remote failure)
finished. total time: 5.735s
C:\adb\ROM>fastboot flash system system.img_sparsechunk.4
target reported max download size of 534773760 bytes
sending 'system' (256912 KB)...
OKAY [ 5.649s]
writing 'system'...
(bootloader) Failed to flash sparse image
FAILED (remote failure)
finished. total time: 5.811s
C:\adb\ROM>fastboot flash system system.img_sparsechunk.5
target reported max download size of 534773760 bytes
sending 'system' (257861 KB)...
OKAY [ 5.629s]
writing 'system'...
(bootloader) Failed to flash sparse image
FAILED (remote failure)
finished. total time: 5.764s
C:\adb\ROM>fastboot flash system system.img_sparsechunk.6
target reported max download size of 534773760 bytes
sending 'system' (260027 KB)...
OKAY [ 5.705s]
writing 'system'...
(bootloader) Failed to flash sparse image
FAILED (remote failure)
finished. total time: 5.869s
C:\adb\ROM>fastboot flash system system.img_sparsechunk.7
target reported max download size of 534773760 bytes
sending 'system' (257557 KB)...
OKAY [ 5.623s]
writing 'system'...
(bootloader) Failed to flash sparse image
FAILED (remote failure)
finished. total time: 5.793s
C:\adb\ROM>fastboot flash system system.img_sparsechunk.8
target reported max download size of 534773760 bytes
sending 'system' (257826 KB)...
OKAY [ 5.628s]
writing 'system'...
(bootloader) Failed to flash sparse image
FAILED (remote failure)
finished. total time: 5.680s
C:\adb\ROM>fastboot flash modem NON-HLOS.bin
target reported max download size of 534773760 bytes
sending 'modem' (71925 KB)...
OKAY [ 1.580s]
writing 'modem'...
(bootloader) Failed to erase partition
FAILED (remote failure)
finished. total time: 1.592s
C:\adb\ROM>fastboot erase modemst1
erasing 'modemst1'...
(bootloader) Failed to erase partition
FAILED (remote failure)
finished. total time: 0.009s
C:\adb\ROM>fastboot erase modemst2
erasing 'modemst2'...
(bootloader) Failed to erase partition
FAILED (remote failure)
finished. total time: 0.008s
C:\adb\ROM>fastboot flash fsg fsg.mbn
target reported max download size of 534773760 bytes
sending 'fsg' (3012 KB)...
OKAY [ 0.070s]
writing 'fsg'...
(bootloader) Failed to erase partition
(bootloader) Failed to flash partition fsg
FAILED (remote failure)
finished. total time: 0.083s
C:\adb\ROM>fastboot erase cache
erasing 'cache'...
OKAY [ 0.065s]
finished. total time: 0.068s
C:\adb\ROM>fastboot erase userdata
erasing 'userdata'...
(bootloader) Failed to erase partition
FAILED (remote failure)
finished. total time: 0.009s
C:\adb\ROM>fastboot erase customize
erasing 'customize'...
(bootloader) Permission denied
FAILED (remote failure)
finished. total time: 0.007s
C:\adb\ROM>fastboot erase clogo
erasing 'clogo'...
(bootloader) Permission denied
FAILED (remote failure)
finished. total time: 0.008s
C:\adb\ROM>fastboot oem fb_mode_clear
...
FAILED (remote failure)
finished. total time: 0.116s
C:\adb\ROM>fastboot reboot
rebooting...
finished. total time: 0.003s
My device is connected to pc as "fastboot potter S"
I also trying getting the unlock key through fastboot. While I got the key, I was not able to unlock it (remote failure). Is there a solution? Any other details required from my side?
Fair warning: I'm so not a pro at this (clearly). I already ordered a new phone but the feel that I'm not able to get a solution from hours and hours of browsing xda is just disheartening. I refuse to give up on this one. Too many good memories associated with it
Well if you were on pixel experience then your bootloader is already unlocked so no need to do that. The fb log shows security version downgrade which happens when you try to flash an older firmware. Try the getvar command and it should show some more details and then just download the correct firmware. Does your twrp work?
Exactly. Grab the latest firmware 8.1.0_OPS28.85-17-6-2 (February security patch) and flash it. There's no newer stock firmware so a downgrade isn't possible
Sent from my Moto G5 Plus using XDA Labs
debdeep98 said:
Well if you were on pixel experience then your bootloader is already unlocked so no need to do that. The fb log shows security version downgrade which happens when you try to flash an older firmware. Try the getvar command and it should show some more details and then just download the correct firmware. Does your twrp work?
Click to expand...
Click to collapse
I can't get pass the boot screen. It just says device didn't start successfully. I'll try the getvar and will post again. I can't even reboot the phone or the bootlocker using fastboot.

Can't flash rom, stuck in TWRP recovery

I've had my G4+ rooted for quite a while and i need to format it so my mom can have it since I recently changed to a OnePlus 6T.
I tried to use the factory reset from the settings (seems like it was a big mistake on my part) and it didn't work, so I'm now trying to flash a stock rom through adb (I'd done this before), but I don't know what I need to do at this point, I'm at a loss, I even tried the commands to flash the rom and it seems to copy the system files but some stuff fails in the process.. I don't know what to do, did I just brick my device? please help
In case that helps, I have TWRP installed
And I think this might help, I personally don't know what to do with this info but this is what the command prompt throws back at me when trying to flash the custom rom while in bootloader mode:
D:\Downloads\Moto G4\platform-tools>adb devices List of devices attached
D:\Downloads\Moto G4\platform-tools>fastboot oem fb_mode_set OKAY [ 0.003s] Finished. Total time: 0.007s
D:\Downloads\Moto G4\platform-tools>fastboot flash partition gpt.bin (bootloader) has-slotartition: not found (bootloader) is-logicalartition: not found Sending 'partition' (32 KB) OKAY [ 0.170s] Writing 'partition' (bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed FAILED (remote: '') fastboot: error: Command failed
D:\Downloads\Moto G4\platform-tools>fastboot flash bootloader bootloader.img (bootloader) has-slot:bootloader: not found (bootloader) is-logical:bootloader: not found Sending 'bootloader' (2546 KB) OKAY [ 0.250s] Writing 'bootloader' (bootloader) Invalid partition name bootloader FAILED (remote: '') fastboot: error: Command failed
D:\Downloads\Moto G4\platform-tools>fastboot flash logo logo.bin (bootloader) has-slot:logo: not found (bootloader) is-logical:logo: not found Sending 'logo' (2833 KB) OKAY [ 0.259s] Writing 'logo' OKAY [ 0.064s] Finished. Total time: 0.669s
D:\Downloads\Moto G4\platform-tools>fastboot flash boot boot.img (bootloader) has-slot:boot: not found (bootloader) is-logical:boot: not found Sending 'boot' (32768 KB) OKAY [ 1.203s] Writing 'boot' (bootloader) Image size exeeded partition limits (bootloader) Preflash validation failed FAILED (remote: '') fastboot: error: Command failed
D:\Downloads\Moto G4\platform-tools>fastboot flash recovery recovery.img (bootloader) has-slot:recovery: not found (bootloader) is-logical:recovery: not found Sending 'recovery' (32752 KB) OKAY [ 1.202s] Writing 'recovery' (bootloader) Image size exeeded partition limits (bootloader) Preflash validation failed FAILED (remote: '') fastboot: error: Command failed
D:\Downloads\Moto G4\platform-tools>fastboot flash system system.img_sparsechunk.0 (bootloader) has-slot:system: not found (bootloader) is-logical:system: not found Sending 'system' (262143 KB) OKAY [ 8.414s] Writing 'system' (bootloader) Preflash validation failed FAILED (remote: '') fastboot: error: Command failed
D:\Downloads\Moto G4\platform-tools>fastboot flash system system.img_sparsechunk.1 (bootloader) has-slot:system: not found (bootloader) is-logical:system: not found Sending 'system' (262142 KB) OKAY [ 8.415s] Writing 'system' (bootloader) Preflash validation failed FAILED (remote: '') fastboot: error: Command failed
D:\Downloads\Moto G4\platform-tools>fastboot flash system system.img_sparsechunk.2 (bootloader) has-slot:system: not found (bootloader) is-logical:system: not found Sending 'system' (239188 KB) OKAY [ 7.693s] Writing 'system' (bootloader) Preflash validation failed FAILED (remote: '') fastboot: error: Command failed
D:\Downloads\Moto G4\platform-tools>fastboot flash system system.img_sparsechunk.3 (bootloader) has-slot:system: not found (bootloader) is-logical:system: not found Sending 'system' (258879 KB) OKAY [ 8.313s] Writing 'system' (bootloader) Preflash validation failed FAILED (remote: '') fastboot: error: Command failed
D:\Downloads\Moto G4\platform-tools>fastboot flash system system.img_sparsechunk.4 (bootloader) has-slot:system: not found (bootloader) is-logical:system: not found Sending 'system' (260734 KB) OKAY [ 8.370s] Writing 'system' (bootloader) Preflash validation failed FAILED (remote: '') fastboot: error: Command failed
D:\Downloads\Moto G4\platform-tools>fastboot flash system system.img_sparsechunk.5 (bootloader) has-slot:system: not found (bootloader) is-logical:system: not found Sending 'system' (239870 KB) OKAY [ 7.714s] Writing 'system' (bootloader) Preflash validation failed FAILED (remote: '') fastboot: error: Command failed
D:\Downloads\Moto G4\platform-tools>fastboot flash system system.img_sparsechunk.6 (bootloader) has-slot:system: not found (bootloader) is-logical:system: not found Sending 'system' (232504 KB) OKAY [ 7.482s] Writing 'system' (bootloader) Preflash validation failed FAILED (remote: '') fastboot: error: Command failed
D:\Downloads\Moto G4\platform-tools>fastboot flash system system.img_sparsechunk.7 (bootloader) has-slot:system: not found (bootloader) is-logical:system: not found Sending 'system' (257945 KB) OKAY [ 8.283s] Writing 'system' (bootloader) Preflash validation failed FAILED (remote: '') fastboot: error: Command failed
D:\Downloads\Moto G4\platform-tools>fastboot flash system system.img_sparsechunk.8 (bootloader) has-slot:system: not found (bootloader) is-logical:system: not found Sending 'system' (257992 KB) OKAY [ 8.286s] Writing 'system' (bootloader) Preflash validation failed FAILED (remote: '') fastboot: error: Command failed
D:\Downloads\Moto G4\platform-tools>fastboot flash system system.img_sparsechunk.9 (bootloader) has-slot:system: not found (bootloader) is-logical:system: not found Sending 'system' (168148 KB) OKAY [ 5.483s] Writing 'system' (bootloader) Preflash validation failed FAILED (remote: '') fastboot: error: Command failed
D:\Downloads\Moto G4\platform-tools>fastboot flash modem NON-HLOS.bin (bootloader) has-slot:modem: not found (bootloader) is-logical:modem: not found Sending 'modem' (37144 KB) OKAY [ 1.341s] Writing 'modem' OKAY [ 0.569s] Finished. Total time: 2.398s
D:\Downloads\Moto G4\platform-tools>fastboot erase modemst1 (bootloader) has-slot:modemst1: not found Erasing 'modemst1' OKAY [ 0.022s] Finished. Total time: 0.222s
D:\Downloads\Moto G4\platform-tools>fastboot erase modemst2 (bootloader) has-slot:modemst2: not found Erasing 'modemst2' OKAY [ 0.023s] Finished. Total time: 0.241s
D:\Downloads\Moto G4\platform-tools>fastboot flash fsg fsg.mbn (bootloader) has-slot:fsg: not found (bootloader) is-logical:fsg: not found Sending 'fsg' (1260 KB) OKAY [ 0.210s] Writing 'fsg' OKAY [ 0.051s] Finished. Total time: 0.469s
D:\Downloads\Moto G4\platform-tools>fastboot erase cache (bootloader) has-slot:cache: not found Erasing 'cache' OKAY [ 0.015s] Finished. Total time: 0.214s
D:\Downloads\Moto G4\platform-tools>fastboot erase userdata (bootloader) has-slot:userdata: not found Erasing 'userdata' OKAY [ 0.127s] Finished. Total time: 0.327s
D:\Downloads\Moto G4\platform-tools>fastboot erase customize (bootloader) has-slot:customize: not found Erasing 'customize' OKAY [ 0.013s] Finished. Total time: 0.214s
D:\Downloads\Moto G4\platform-tools>fastboot erase clogo (bootloader) has-slot:clogo: not found Erasing 'clogo' OKAY [ 0.015s] Finished. Total time: 0.217s
D:\Downloads\Moto G4\platform-tools>fastboot oem fb_mode_clear OKAY [ 0.004s] Finished. Total time: 0.008s
D:\Downloads\Moto G4\platform-tools>
Click to expand...
Click to collapse
Also, I tried wiping system, data, cache and dalvik-cache and here's what TWRP says: TWRP Errors
I get similar errors when trying to install my stock zip (from the external sd, I don't have an OTG cable right now so I copied to the sd card)
Is it possible the bootloader was re-locked with fastboot?
What's the ROM version you're trying to flash? Assuming TWRP hasn't been replaced by stock recovery and you can still load it, it would be interesting to know what kind of errors happen if you tried a TWRP flashable ROM instead of a fastboot ROM. Use the phone's internal storage (/sdcard directory) and avoid using an external SD card. But first see if you can both format and wipe in TWRP without errors.
You don't need an OTG cable for any of this. To simplify trouble shooting, eliminate the external SD card even if temporarily.
manjaroid said:
Is it possible the bootloader was re-locked with fastboot?
What's the ROM version you're trying to flash? Assuming TWRP hasn't been replaced by stock recovery and you can still load it, it would be interesting to know what kind of errors happen if you tried a TWRP flashable ROM instead of a fastboot ROM. Use the phone's internal storage (/sdcard directory) and avoid using an external SD card. But first see if you can both format and wipe in TWRP without errors.
You don't need an OTG cable for any of this. To simplify trouble shooting, eliminate the external SD card even if temporarily.
Click to expand...
Click to collapse
I'm trying to flash a stock ROM from this thread: http://forum.xda-developers.com/moto-x-play/general/official-stock-firmwares-added-xt1562-t3195364.
I'm still using TWRP, it wasn't replaced by stock fortunately. I'll download one or two flashable roms and see if that works.
Also, just tried to go through the process of unlocking the bootloader (in case it was re-locked as you say), and when putting the unique key and all, it says:
Code:
(bootloader) invalid boot state
And something I missed to mention now that I think about it, upon booting the phone it doesn't show the usual unlocked bootloader warning, instead its all black and it just says: "N/A" literally.
Now, upon trying to flash a TWRP flashable ROM, specifically "AFH" from the Nougat 7.0 section of this thread, I got the following:
Image 1
Image 2
Zedlav said:
I'm trying to flash a stock ROM from this thread: http://forum.xda-developers.com/moto-x-play/general/official-stock-firmwares-added-xt1562-t3195364.
Click to expand...
Click to collapse
I'm curious why you installed Moto X Play firmware to a G4 Plus. Or was the URL above a mistake and you meant this one?
https://forum.xda-developers.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138
---------- Post added at 10:33 PM ---------- Previous post was at 10:02 PM ----------
Zedlav said:
Also, just tried to go through the process of unlocking the bootloader (in case it was re-locked as you say), and when putting the unique key and all, it says:
Code:
(bootloader) invalid boot state
Click to expand...
Click to collapse
That error indicates your bootloader is already unlocked. Flashing errors probably mean you're attempting to flash outdated firmware which sometimes causes problems with Motorola phones, so best to use the same or newer firmware than what was previously installed. See what happens with Oreo.
I suggest starting from scratch as cleanly as possible. I would even re-flash TWRP (official for G4 athene) for extra measure. And note the TWRP instructions about rebooting back into TWRP before flashing your Android ROM to avoid having to repeat installing TWRP. Also, the /system partition needs to be read-only if and when TWRP prompts you about it.
Format and wipe as described here: https://andi34.github.io/faq/faq_twrp.html
Then with the phone in fastboot mode and connected to your PC, flash the latest fastboot 8.1.0 ROM which will replace TWRP with stock recovery. If Android starts and runs normally after that, you should be able to re-lock the bootloader and hand it off to your mom.
And something I missed to mention now that I think about it, upon booting the phone it doesn't show the usual unlocked bootloader warning, instead its all black and it just says: "N/A" literally.
Click to expand...
Click to collapse
You'll see the N/A notice on the boot screen when booting into recovery or a custom ROM is booting. Once stock is running N/A should go away.
I'm curious why you installed Moto X Play firmware to a G4 Plus. Or was the URL above a mistake and you meant this one?
https://forum.xda-developers.com/mot...rch-1-t3608138
Click to expand...
Click to collapse
Oh god, I had been using the wrong rom all this time LOL, but it was working, I mean, before all of this I had flashed that x play stock rom on the g4 plus and it was working without a problem for some reason..
I suggest starting from scratch as cleanly as possible. I would even re-flash TWRP (official for G4 athene) for extra measure. And note the TWRP instructions about rebooting back into TWRP before flashing your Android ROM to avoid having to repeat installing TWRP. Also, the /system partition needs to be read-only if and when TWRP prompts you about it.
Format and wipe as described here: https://andi34.github.io/faq/faq_twrp.html
Then with the phone in fastboot mode and connected to your PC, flash the latest fastboot 8.1.0 ROM which will replace TWRP with stock recovery. If Android starts and runs normally after that, you should be able to re-lock the bootloader and hand it off to your mom.
Click to expand...
Click to collapse
Alright, so I reflashed TWRP, did the whole format and wipe thing: Format results Wipe results
I'm downloading the 8.0 image from the stock thread you linked me but its going to take a while, the servers seem to be very slow. In the meantime i tried flashing the twrp-flashable one I downloaded earlier: Image 1 Image 2 Image 3
It would seem it went okay, but I rebooted and nothing changed, so I tried flashing the X Play image i had as I had done before, but I still got errors in the process and it didn't work:
D:\Downloads\Moto G4\platform-tools>fastboot oem fb_mode_set
OKAY [ 0.004s]
Finished. Total time: 0.016s
D:\Downloads\Moto G4\platform-tools>fastboot flash partition gpt.bin
(bootloader) has-slotartition: not found
(bootloader) is-logicalartition: not found
Sending 'partition' (32 KB) OKAY [ 0.171s]
Writing 'partition' (bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
FAILED (remote: '')
fastboot: error: Command failed
D:\Downloads\Moto G4\platform-tools>fastboot flash bootloader bootloader.img
(bootloader) has-slot:bootloader: not found
(bootloader) is-logical:bootloader: not found
Sending 'bootloader' (2546 KB) OKAY [ 0.251s]
Writing 'bootloader' (bootloader) Invalid partition name bootloader
FAILED (remote: '')
fastboot: error: Command failed
D:\Downloads\Moto G4\platform-tools>fastboot flash logo logo.bin
(bootloader) has-slot:logo: not found
(bootloader) is-logical:logo: not found
Sending 'logo' (2833 KB) OKAY [ 0.260s]
Writing 'logo' OKAY [ 0.065s]
Finished. Total time: 0.670s
D:\Downloads\Moto G4\platform-tools>fastboot flash boot boot.img
(bootloader) has-slot:boot: not found
(bootloader) is-logical:boot: not found
Sending 'boot' (32768 KB) OKAY [ 1.203s]
Writing 'boot' (bootloader) Image size exeeded partition limits
(bootloader) Preflash validation failed
FAILED (remote: '')
fastboot: error: Command failed
D:\Downloads\Moto G4\platform-tools>fastboot flash recovery recovery.img
(bootloader) has-slot:recovery: not found
(bootloader) is-logical:recovery: not found
Sending 'recovery' (32752 KB) OKAY [ 1.203s]
Writing 'recovery' (bootloader) Image size exeeded partition limits
(bootloader) Preflash validation failed
FAILED (remote: '')
fastboot: error: Command failed
D:\Downloads\Moto G4\platform-tools>fastboot flash system system.img_sparsechunk.0
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (262143 KB) OKAY [ 8.415s]
Writing 'system' (bootloader) Preflash validation failed
FAILED (remote: '')
fastboot: error: Command failed
D:\Downloads\Moto G4\platform-tools>fastboot flash system system.img_sparsechunk.1
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (262142 KB) OKAY [ 8.415s]
Writing 'system' (bootloader) Preflash validation failed
FAILED (remote: '')
fastboot: error: Command failed
D:\Downloads\Moto G4\platform-tools>fastboot flash system system.img_sparsechunk.2
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (239188 KB) OKAY [ 7.693s]
Writing 'system' (bootloader) Preflash validation failed
FAILED (remote: '')
fastboot: error: Command failed
D:\Downloads\Moto G4\platform-tools>fastboot flash system system.img_sparsechunk.3
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (258879 KB) OKAY [ 8.312s]
Writing 'system' (bootloader) Preflash validation failed
FAILED (remote: '')
fastboot: error: Command failed
D:\Downloads\Moto G4\platform-tools>fastboot flash system system.img_sparsechunk.4
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (260734 KB) OKAY [ 8.370s]
Writing 'system' (bootloader) Preflash validation failed
FAILED (remote: '')
fastboot: error: Command failed
D:\Downloads\Moto G4\platform-tools>fastboot flash system system.img_sparsechunk.5
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (239870 KB) OKAY [ 7.714s]
Writing 'system' (bootloader) Preflash validation failed
FAILED (remote: '')
fastboot: error: Command failed
D:\Downloads\Moto G4\platform-tools>fastboot flash system system.img_sparsechunk.6
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (232504 KB) OKAY [ 7.482s]
Writing 'system' (bootloader) Preflash validation failed
FAILED (remote: '')
fastboot: error: Command failed
D:\Downloads\Moto G4\platform-tools>fastboot flash system system.img_sparsechunk.7
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (257945 KB) OKAY [ 8.283s]
Writing 'system' (bootloader) Preflash validation failed
FAILED (remote: '')
fastboot: error: Command failed
D:\Downloads\Moto G4\platform-tools>fastboot flash system system.img_sparsechunk.8
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (257992 KB) OKAY [ 8.286s]
Writing 'system' (bootloader) Preflash validation failed
FAILED (remote: '')
fastboot: error: Command failed
D:\Downloads\Moto G4\platform-tools>fastboot flash system system.img_sparsechunk.9
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (168148 KB) OKAY [ 5.458s]
Writing 'system' (bootloader) Preflash validation failed
FAILED (remote: '')
fastboot: error: Command failed
D:\Downloads\Moto G4\platform-tools>fastboot flash modem NON-HLOS.bin
(bootloader) has-slot:modem: not found
(bootloader) is-logical:modem: not found
Sending 'modem' (37144 KB) OKAY [ 1.337s]
Writing 'modem' OKAY [ 0.570s]
Finished. Total time: 2.365s
D:\Downloads\Moto G4\platform-tools>fastboot erase modemst1
(bootloader) has-slot:modemst1: not found
Erasing 'modemst1' OKAY [ 0.026s]
Finished. Total time: 0.242s
D:\Downloads\Moto G4\platform-tools>fastboot erase modemst2
(bootloader) has-slot:modemst2: not found
Erasing 'modemst2' OKAY [ 0.024s]
Finished. Total time: 0.222s
D:\Downloads\Moto G4\platform-tools>fastboot flash fsg fsg.mbn
(bootloader) has-slot:fsg: not found
(bootloader) is-logical:fsg: not found
Sending 'fsg' (1260 KB) OKAY [ 0.210s]
Writing 'fsg' OKAY [ 0.050s]
Finished. Total time: 0.468s
D:\Downloads\Moto G4\platform-tools>fastboot erase cache
(bootloader) has-slot:cache: not found
Erasing 'cache' OKAY [ 0.017s]
Finished. Total time: 0.214s
D:\Downloads\Moto G4\platform-tools>fastboot erase userdata
(bootloader) has-slot:userdata: not found
Erasing 'userdata' OKAY [ 0.475s]
Finished. Total time: 0.673s
D:\Downloads\Moto G4\platform-tools>fastboot erase customize
(bootloader) has-slot:customize: not found
Erasing 'customize' OKAY [ 0.013s]
Finished. Total time: 0.211s
D:\Downloads\Moto G4\platform-tools>fastboot erase clogo
(bootloader) has-slot:clogo: not found
Erasing 'clogo' OKAY [ 0.015s]
Finished. Total time: 0.211s
D:\Downloads\Moto G4\platform-tools>fastboot oem fb_mode_clear
OKAY [ 0.004s]
Finished. Total time: 0.007s
D:\Downloads\Moto G4\platform-tools>fastboot reboot
Rebooting OKAY [ 0.004s]
Finished. Total time: 0.009s
Click to expand...
Click to collapse
When I'm able to download the stock g4 plus image from the thread i'll try with that one and post my results, but I still don't understand what's going on
First off, whether you're flashing stock or custom, you need to stick to firmware specifically for Moto G4/G4 Plus athene. Just because firmware from a different Moto booted your phone doesn't mean it's working. Ditto for TWRP so make sure you're using the official release for G4 athene. An unofficial fork of TWRP probably won't do any harm, but for trouble shooting a stock Android install, there's no reason to stray from official TWRP.
Zedlav said:
....I'm downloading the 8.0 image...
Click to expand...
Click to collapse
Verify that this ROM is version 8.1.0 build OPJ28.111-22 or the more recent build OPJ28.111-22-1. If the ROM is literally version 8.0 that's not right.
Based on your fastboot errors, I'm wondering at this point if partitions have been mangled and even the correct firmware isn't going to flash successfully. Even if the phone boots and everything appears well at first glance, you could find out something is terribly wrong. Like the radio not working because EFS partitions (IMEI) are messed up.
Right now I'm not sure how to advise. I'm tempted to say "blankflash" but I don't think you're there yet because the phone is starting and you can load recovery. Let's hope somebody with more experience chimes in.
For now I suggest disregarding TWRP flashable ROMs and plan on getting through this with adb and fastboot.
I decided to give it another try, from the start:
Formatted data, then dalvik + system + cache, no problems, no red messages or anything lol
Then, reflashing TWRP:
D:\Downloads\Moto G4\platform-tools>fastboot flash recovery twrp.img
(bootloader) has-slot:recovery: not found
(bootloader) is-logical:recovery: not found
Sending 'recovery' (12644 KB) OKAY [ 0.569s]
Writing 'recovery' (bootloader) Image not signed or corrupt
OKAY [ 0.189s]
Finished. Total time: 0.967s
Click to expand...
Click to collapse
I guess that's.. not 100% okay but.. alright.
Now, as usual, bunch of errors while flashing:
D:\Downloads\Moto G4\platform-tools>fastboot flash partition gpt.bin
(bootloader) has-slotartition: not found
(bootloader) is-logicalartition: not found
Sending 'partition' (32 KB) OKAY [ 0.171s]
Writing 'partition' (bootloader) Flashing primary GPT image...
(bootloader) Flashing backup GPT image...
OKAY [ 0.088s]
Finished. Total time: 0.469s
D:\Downloads\Moto G4\platform-tools>fastboot flash bootloader bootloader.img
(bootloader) has-slot:bootloader: not found
(bootloader) is-logical:bootloader: not found
Sending 'bootloader' (3651 KB) OKAY [ 0.285s]
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.426s]
Finished. Total time: 0.922s
D:\Downloads\Moto G4\platform-tools>fastboot flash logo logo.bin
(bootloader) has-slot:logo: not found
(bootloader) is-logical:logo: not found
Sending 'logo' (2186 KB) OKAY [ 0.239s]
Writing 'logo' OKAY [ 0.056s]
Finished. Total time: 0.502s
D:\Downloads\Moto G4\platform-tools>fastboot flash boot boot.img
(bootloader) has-slot:boot: not found
(bootloader) is-logical:boot: not found
Sending 'boot' (16384 KB) OKAY [ 0.686s]
Writing 'boot' (bootloader) Image signed with key bad key
OKAY [ 0.381s]
Finished. Total time: 1.320s
D:\Downloads\Moto G4\platform-tools>fastboot flash recovery recovery.img
(bootloader) has-slot:recovery: not found
(bootloader) is-logical:recovery: not found
Sending 'recovery' (16484 KB) OKAY [ 0.689s]
Writing 'recovery' (bootloader) Image signed with key bad key
OKAY [ 0.414s]
Finished. Total time: 1.321s
D:\Downloads\Moto G4\platform-tools>fastboot flash dsp adspso.bin
(bootloader) has-slot:dsp: not found
(bootloader) is-logical:dsp: not found
Sending 'dsp' (16384 KB) OKAY [ 0.685s]
Writing 'dsp' OKAY [ 0.244s]
Finished. Total time: 1.457s
D:\Downloads\Moto G4\platform-tools>fastboot flash oem oem.img
(bootloader) has-slotem: not found
(bootloader) is-logicalem: not found
Sending 'oem' (69480 KB) OKAY [ 2.356s]
Writing 'oem' OKAY [ 0.988s]
Finished. Total time: 4.045s
D:\Downloads\Moto G4\platform-tools>fastboot flash system system.img_sparsechunk.0
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (256517 KB) OKAY [ 8.240s]
Writing 'system' OKAY [ 3.703s]
Finished. Total time: 14.796s
D:\Downloads\Moto G4\platform-tools>fastboot flash system system.img_sparsechunk.1
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (258339 KB) OKAY [ 8.297s]
Writing 'system' OKAY [ 3.449s]
Finished. Total time: 13.631s
D:\Downloads\Moto G4\platform-tools>fastboot flash system system.img_sparsechunk.2
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (260247 KB) OKAY [ 8.356s]
Writing 'system' OKAY [ 3.572s]
Finished. Total time: 14.133s
D:\Downloads\Moto G4\platform-tools>fastboot flash system system.img_sparsechunk.3
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (261038 KB) OKAY [ 8.381s]
Writing 'system' OKAY [ 3.399s]
Finished. Total time: 15.160s
D:\Downloads\Moto G4\platform-tools>fastboot flash system system.img_sparsechunk.4
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (258070 KB) OKAY [ 8.286s]
Writing 'system' OKAY [ 3.368s]
Finished. Total time: 15.010s
D:\Downloads\Moto G4\platform-tools>fastboot flash system system.img_sparsechunk.5
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (262061 KB) OKAY [ 8.413s]
Writing 'system' OKAY [ 3.328s]
Finished. Total time: 13.900s
D:\Downloads\Moto G4\platform-tools>fastboot flash system system.img_sparsechunk.6
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (244352 KB) OKAY [ 7.856s]
Writing 'system' OKAY [ 3.871s]
Finished. Total time: 14.325s
D:\Downloads\Moto G4\platform-tools>fastboot flash system system.img_sparsechunk.7
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (88696 KB) OKAY [ 2.959s]
Writing 'system' OKAY [ 1.172s]
Finished. Total time: 4.785s
D:\Downloads\Moto G4\platform-tools>fastboot flash modem NON-HLOS.bin
(bootloader) has-slot:modem: not found
(bootloader) is-logical:modem: not found
Sending 'modem' (69401 KB) OKAY [ 2.353s]
Writing 'modem' OKAY [ 1.004s]
Finished. Total time: 4.087s
D:\Downloads\Moto G4\platform-tools>fastboot erase modemst1
(bootloader) has-slot:modemst1: not found
Erasing 'modemst1' OKAY [ 0.027s]
Finished. Total time: 0.225s
D:\Downloads\Moto G4\platform-tools>fastboot erase modemst2
(bootloader) has-slot:modemst2: not found
Erasing 'modemst2' OKAY [ 0.023s]
Finished. Total time: 0.222s
D:\Downloads\Moto G4\platform-tools>fastboot flash fsg fsg.mbn
(bootloader) has-slot:fsg: not found
(bootloader) is-logical:fsg: not found
Sending 'fsg' (2104 KB) OKAY [ 0.235s]
Writing 'fsg' OKAY [ 0.063s]
Finished. Total time: 0.506s
D:\Downloads\Moto G4\platform-tools>fastboot erase cache
(bootloader) has-slot:cache: not found
Erasing 'cache' OKAY [ 0.018s]
Finished. Total time: 0.215s
D:\Downloads\Moto G4\platform-tools>fastboot erase userdata
(bootloader) has-slot:userdata: not found
Erasing 'userdata' OKAY [ 0.447s]
Finished. Total time: 0.646s
D:\Downloads\Moto G4\platform-tools>fastboot reboot
Rebooting OKAY [ 0.005s]
Finished. Total time: 0.009s
Click to expand...
Click to collapse
Now, it says ID: bad key instead of ID: N/A, and there's the android mascot with its belly open saying: No command.
So yeah, didn't work.. I guess I'll look into the blankflash process but I have never done that before
EDIT: weird af thing just happened, I started the blankflash.bat from the guide while I was in fastboot but it was kinda stuck in "waiting for device" so i decided to close and reboot, and now it seems to be loading with the moto and lenovo logos... Now it seems to be working properly lol, this feels weird
Zedlav said:
Now, it says ID: bad key instead of ID: N/A, and there's the android mascot with its belly open saying: No command.
So yeah, didn't work.. I guess I'll look into the blankflash process but I have never done that before
EDIT: weird af thing just happened, I started the blankflash.bat from the guide while I was in fastboot but it was kinda stuck in "waiting for device" so i decided to close and reboot, and now it seems to be loading with the moto and lenovo logos... Now it seems to be working properly lol, this feels weird
Click to expand...
Click to collapse
After a clean install like this the first boot-up can take abnormally long. You probably just needed to wait it out. So is the phone starting and running now?
TWRP's output appears scary at first but looks like it flashed normally. All those "not found" messages during the ROM flash were followed by a bunch of "OKAY" messages. And I see that you flashed recovery.img which overwrote TWRP, so you must have seen the Android mascot in bootloader mode at some point during a reboot. All good!
If the phone is booting normally with stock recovery installed, you're ready to re-lock the bootloader if that's what you want. When the bootloader is locked the N/A and/or bad key notice will disappear along with Moto's unlocked bootloader screen. (I had it wrong in my other post; "bad key" is displayed when booting custom ROMs and custom recovery, where "N/A" is a normal part of the unlocked bootloader screen.)
Btw, blankflash is for devices that are hard bricked but you weren't even soft bricked (except for the brief time immediately after format). It's a last resort when phones play dead or partitions are scrambled. I'm glad to hear you stopped it before it did anything.
It seems to be working fine now, but there's an issue right now that I don't understand.
It only boots into the system if I go into the bootloader and restart from there. I had powered it off to save battery and powered it on right now, it goes straight to the android mascot thing with the belly open along with "No command" text. At that point I go to bootloader, click on "Start", then it boots up with the moto and lenovo logos and sounds.
From what I gather i'd say it isn't getting the command to boot up android when powering on, but no idea how to change that. I need to fix this because I know my mom will not be able to reproduce these steps in the case the phone powers off for whatever reason... Any ideas?
And also, thanks a lot for all of your help!!
Zedlav said:
It seems to be working fine now, but there's an issue right now that I don't understand.
It only boots into the system if I go into the bootloader and restart from there. I had powered it off to save battery and powered it on right now, it goes straight to the android mascot thing with the belly open along with "No command" text. At that point I go to bootloader, click on "Start", then it boots up with the moto and lenovo logos and sounds.
From what I gather i'd say it isn't getting the command to boot up android when powering on, but no idea how to change that. I need to fix this because I know my mom will not be able to reproduce these steps in the case the phone powers off for whatever reason... Any ideas?
And also, thanks a lot for all of your help!!
Click to expand...
Click to collapse
Here in the forums there should be a lot of discussion about all kinds of devices with this same problem. Solutions vary depending on what caused it.
First try a couple of cold restarts. Power off and let the phone sit a few minutes before each start up. If the system still isn't booting try clearing Dalvik cache, power off and start back up. If you're still booting straight into the bootloader try flashing the ROM all over again. You don't need TWRP recovery for this, just flash while the phone is in bootloader mode.
By chance did you flash the 7.0 Nougat ROM? If so try 8.1.0 Oreo. There are bootloop issues with Moto phones that have been downgraded.
I've been using the 8.1.0 Oreo rom. Before all of this happened it used to have a 7.0.1 rom (which I noticed it was the X Play's rom after all this time lol) and never got updated.
I flashed TWRP to wipe Dalvik, did that and rebooted, it didn't help, and after that I couldn't reach TWRP recovery through bootloader. So then I re-flashed the rom (this time changing the recovery line to flash twrp instead of stock), but nothing changed, I still can't boot the phone without going through the bootloader, not even through TWRP's Reboot > system.
Sorry I took a while to answer back, its been a busy couple of days
Zedlav said:
I've been using the 8.1.0 Oreo rom. Before all of this happened it used to have a 7.0.1 rom (which I noticed it was the X Play's rom after all this time lol) and never got updated.
Click to expand...
Click to collapse
Sorry, but right now I'm stumped on what to try next. You don't want to duplicate this post but you might consider starting a new post on the topic of flashing the wrong firmware. I still wonder how that may have affected your partitions.
If the fight is still on, maybe this post is pertinent to your problem installing stock Android to your G4 Plus.
https://forum.xda-developers.com/showpost.php?p=80118362&postcount=1442
Fingers crossed.

Categories

Resources