moto g4 plus bricked - Moto G4 Plus Questions & Answers

last night i found an ota update of dec patch in my moto g4 plus i updated my moto g4 plus and then i installed custom rom but now i am trying to go back on stock rom and i was unabe to flash stock rom it gves error like
C:\Users\1313\Desktop\Fastboot\Fastboot>fastboot oem lock begin
... INFOStill require signed boot.img
OKAY [ 0.000s]
finished. total time: 0.000s
C:\Users\1313\Desktop\Fastboot\Fastboot>fastboot oem lock begin
... INFOStill require signed boot.img
OKAY [ 0.000s]
finished. total time: 0.000s
C:\Users\1313\Desktop\Fastboot\Fastboot>fastboot flash partition gpt.bin
sending 'partition' (32 KB)... OKAY [ 0.016s]
writing 'partition'... INFOSecurity version downgrade
INFOImage primary_gpt failed validation
INFOPreflash validation failed
FAILED (remote failure)
finished. total time: 0.047s
C:\Users\1313\Desktop\Fastboot\Fastboot>fastboot flash bootloader bootloader.img
sending 'bootloader' (3651 KB)... OKAY [ 0.156s]
writing 'bootloader'... INFOvalidating: bootloader.default.xml ...
INFOwill pass: flash:aboot
INFOwill pass: flash:rpm
INFOwill pass: flash:tz
INFOwill pass: flash:hyp
INFOwill pass: flash:cmnlib
INFOwill pass: flash:keymaster
INFOwill pass: flash:sbl1
INFOcommitting: bootloader.default.xml ...
INFO- flashing 'emmc_appsboot.mbn' to 'aboot'
INFO- flashing 'rpm.mbn' to 'rpm'
INFO- flashing 'tz.mbn' to 'tz'
INFO- flashing 'hyp.mbn' to 'hyp'
INFO- flashing 'cmnlib.mbn' to 'cmnlib'
INFO- flashing 'keymaster.mbn' to 'keymaster'
INFO- flashing 'sbl1.mbn' to 'sbl1'
OKAY [ 0.422s]
finished. total time: 0.578s
C:\Users\1313\Desktop\Fastboot\Fastboot>fastboot flash logo logo.bin
sending 'logo' (2186 KB)... OKAY [ 0.094s]
writing 'logo'... OKAY [ 0.063s]
finished. total time: 0.156s
C:\Users\1313\Desktop\Fastboot\Fastboot>fastboot flash boot boot.img
sending 'boot' (16384 KB)... OKAY [ 1.514s]
writing 'boot'... INFOSecurity version downgrade
INFOImage boot failed validation
INFOPreflash validation failed
FAILED (remote failure)
finished. total time: 1.686s
C:\Users\1313\Desktop\Fastboot\Fastboot>fastboot flash recovery recovery.img
sending 'recovery' (16484 KB)... OKAY [ 0.866s]
writing 'recovery'... INFOSecurity version downgrade
INFOImage recovery failed validation
INFOPreflash validation failed
FAILED (remote failure)
finished. total time: 1.053s
and it give all time error like this failed validiaioncand remote failure pls someone help me to out from this problem

Seems like you're attempting to flash an older stock ROM onto the December 2017 (NPJS2.93-14-13) update, hence the pre-flash validation errors.
If you're re-locking your bootloader (I imagine that's why you're using the fastboot oem lock begin commands), then you can only use the NPJS25.93-14-13 or newer firmware, luckily it just got leaked: https://forum.xda-developers.com/showpost.php?p=75069313&postcount=510
Of course, by re-locking your bootloader you won't be able to flash custom ROMs or non-stock firmware unless you unlock again.

thanks bro
echo92 said:
Seems like you're attempting to flash an older stock ROM onto the December 2017 (NPJS2.93-14-13) update, hence the pre-flash validation errors.
If you're re-locking your bootloader (I imagine that's why you're using the fastboot oem lock begin commands), then you can only use the NPJS25.93-14-13 or newer firmware, luckily it just got leaked: https://forum.xda-developers.com/showpost.php?p=75069313&postcount=510
Of course, by re-locking your bootloader you won't be able to flash custom ROMs or non-stock firmware unless you unlock again.
Click to expand...
Click to collapse
Thanks a lot bro i searched a lot but i cannot find his frimware i think we have to post a thread about this update in frimware section again thank u a lot bro

Related

Relock bootloader Prime variant

So basically I need to relock the bootloader, I have the prime variant.
I flashed via fastboot
ATHENE_AMZ_MPJ24.139-64
However it won't let me relock the stupid bootloader.
I get the "Still require signed boot.img" message.
Any suggestions?
I have found two problems with trying to oem lock the Moto G4 amazon prime variant. First you need to use the fastboot provided by motorola and second you have to run oem unlock twice before you flash the images otherwise it doesn't check if the images are signed at all.
You can get the official factory images here (make sure to get the one that matches your model number): https://motorola-global-portal.custhelp.com/app/standalone/bootloader/recovery-images#
I am able to get past that message by flashing boot after running:
./Linux/fastboot flash boot boot.img
but I get stuck at "Still require signed system.img and/or oem.img"
Here is what I have tried:
#########/ATHENE_AMZ_MPJ24.139-64_65_cid50_amz$ ./Linux/fastboot flash bootloader bootloader.img
target max-download-size: 512MB
sending 'bootloader' (3651 KB)...
OKAY [ 0.119s]
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.344s]
finished. total time: 0.463s
#########/ATHENE_AMZ_MPJ24.139-64_65_cid50_amz$ ./Linux/fastboot reboot-bootloader
rebooting into bootloader...
OKAY [ 0.007s]
finished. total time: 0.158s
#########/ATHENE_AMZ_MPJ24.139-64_65_cid50_amz$ ./Linux/fastboot flash logo logo.bin
target max-download-size: 512MB
sending 'logo' (1848 KB)...
OKAY [ 0.061s]
writing 'logo'...
OKAY [ 0.040s]
finished. total time: 0.101s
#########/ATHENE_AMZ_MPJ24.139-64_65_cid50_amz$ ./Linux/fastboot flash boot boot.img
target max-download-size: 512MB
sending 'boot' (16384 KB)...
OKAY [ 0.522s]
writing 'boot'...
(bootloader) Image not signed or corrupt
OKAY [ 0.134s]
finished. total time: 0.656s
#########/ATHENE_AMZ_MPJ24.139-64_65_cid50_amz$ ./Linux/fastboot oem lock
...
(bootloader) WARNING: This command erases all user data.
(bootloader) Please re-run this command to continue.
OKAY [ 0.003s]
finished. total time: 0.003s
#########/ATHENE_AMZ_MPJ24.139-64_65_cid50_amz$ ./Linux/fastboot oem lock
...
(bootloader) Flash valid Android images now
(bootloader) Then re-run this command to lock
OKAY [ 0.009s]
finished. total time: 0.009s
#########/ATHENE_AMZ_MPJ24.139-64_65_cid50_amz$ ./Linux/fastboot flash boot boot.img
target max-download-size: 512MB
sending 'boot' (16384 KB)...
OKAY [ 0.523s]
writing 'boot'...
OKAY [ 0.298s]
finished. total time: 0.821s
#########/ATHENE_AMZ_MPJ24.139-64_65_cid50_amz$ ./Linux/fastboot flash recovery recovery.img
target max-download-size: 512MB
sending 'recovery' (16484 KB)...
OKAY [ 0.544s]
writing 'recovery'...
OKAY [ 0.282s]
finished. total time: 0.826s
#########/ATHENE_AMZ_MPJ24.139-64_65_cid50_amz$ ./Linux/fastboot flash system system.img
target max-download-size: 512MB
sending sparse 'system' (514756 KB)...
OKAY [ 16.452s]
writing 'system'...
OKAY [ 8.234s]
sending sparse 'system' (511926 KB)...
OKAY [ 16.240s]
writing 'system'...
OKAY [ 8.101s]
sending sparse 'system' (513154 KB)...
OKAY [ 16.375s]
writing 'system'...
OKAY [ 8.126s]
sending sparse 'system' (479303 KB)...
OKAY [ 15.257s]
writing 'system'...
OKAY [ 12.622s]
finished. total time: 101.408s
#########/ATHENE_AMZ_MPJ24.139-64_65_cid50_amz$ ./Linux/fastboot flash modem NON-HLOS.bin
target max-download-size: 512MB
sending 'modem' (76861 KB)...
OKAY [ 2.421s]
writing 'modem'...
OKAY [ 0.607s]
finished. total time: 3.028s
#########/ATHENE_AMZ_MPJ24.139-64_65_cid50_amz$ ./Linux/fastboot erase modemst1
erasing 'modemst1'...
OKAY [ 0.019s]
finished. total time: 0.019s
#########/ATHENE_AMZ_MPJ24.139-64_65_cid50_amz$ ./Linux/fastboot erase modemst2
erasing 'modemst2'...
OKAY [ 0.020s]
finished. total time: 0.020s
#########/ATHENE_AMZ_MPJ24.139-64_65_cid50_amz$ ./Linux/fastboot flash fsg fsg.mbn
target max-download-size: 512MB
sending 'fsg' (1904 KB)...
OKAY [ 0.063s]
writing 'fsg'...
OKAY [ 0.043s]
finished. total time: 0.106s
#########/ATHENE_AMZ_MPJ24.139-64_65_cid50_amz$ ./Linux/fastboot oem lock
...
(bootloader) Still require signed system.img and/or oem.img
OKAY [ 0.013s]
finished. total time: 0.013s
#########/ATHENE_AMZ_MPJ24.139-64_65_cid50_amz$ ./Linux/fastboot erase cache
erasing 'cache'...
OKAY [ 0.016s]
finished. total time: 0.016s
#########/ATHENE_AMZ_MPJ24.139-64_65_cid50_amz$ ./Linux/fastboot erase userdata
erasing 'userdata'...
OKAY [ 0.036s]
finished. total time: 0.036s
#########/ATHENE_AMZ_MPJ24.139-64_65_cid50_amz$ ./Linux/fastboot oem lock
...
(bootloader) Still require signed system.img and/or oem.img
OKAY [ 0.013s]
finished. total time: 0.013s
#########/ATHENE_AMZ_MPJ24.139-64_65_cid50_amz$ ./Linux/fastboot oem lock begin
...
(bootloader) Still require signed system.img and/or oem.img
OKAY [ 0.014s]
finished. total time: 0.014s
#########/ATHENE_AMZ_MPJ24.139-64_65_cid50_amz$ ./Linux/fastboot flash system system.img
target max-download-size: 512MB
sending sparse 'system' (514756 KB)...
OKAY [ 16.505s]
writing 'system'...
OKAY [ 8.262s]
sending sparse 'system' (511926 KB)...
OKAY [ 16.568s]
writing 'system'...
OKAY [ 8.102s]
sending sparse 'system' (513154 KB)...
OKAY [ 16.474s]
writing 'system'...
OKAY [ 8.158s]
sending sparse 'system' (479303 KB)...
OKAY [ 15.311s]
writing 'system'...
OKAY [ 12.621s]
finished. total time: 102.001s
#########/ATHENE_AMZ_MPJ24.139-64_65_cid50_amz$ ./Linux/fastboot oem lock
...
(bootloader) Still require signed system.img and/or oem.img
OKAY [ 0.013s]
finished. total time: 0.013s
#########/ATHENE_AMZ_MPJ24.139-64_65_cid50_amz$ ./Linux/fastboot oem lock
...
(bootloader) Still require signed system.img and/or oem.img
OKAY [ 0.013s]
finished. total time: 0.013s
#########/ATHENE_AMZ_MPJ24.139-64_65_cid50_amz$ ./Linux/fastboot flash system system.img
target max-download-size: 512MB
sending sparse 'system' (514756 KB)...
OKAY [ 16.247s]
writing 'system'...
OKAY [ 8.307s]
sending sparse 'system' (511926 KB)...
OKAY [ 16.135s]
writing 'system'...
OKAY [ 8.105s]
sending sparse 'system' (513154 KB)...
OKAY [ 16.180s]
writing 'system'...
OKAY [ 8.117s]
sending sparse 'system' (479303 KB)...
OKAY [ 15.122s]
writing 'system'...
OKAY [ 12.627s]
finished. total time: 100.840s
#########/ATHENE_AMZ_MPJ24.139-64_65_cid50_amz$ ./Linux/fastboot oem lock
...
(bootloader) Still require signed system.img and/or oem.img
OKAY [ 0.013s]
finished. total time: 0.013s
Click to expand...
Click to collapse
---------- Post added at 03:59 PM ---------- Previous post was at 03:30 PM ----------
I got it to work after flashing the oem chunks from:
https://forum.xda-developers.com/moto-g4/development/unbrick-hard-bricked-moto-g4-amazon-t3486578

Trying everything to re-lock xt1625 G4

xt1625
Unlocked bootloader.
TWRP 3.1.1-0 currently while I troubleshoot.
I need to get this device back to stock, unrooted, bootloader locked. I am aware the warranty is gone.
I have tried flashing like 3 different versions of the stock firmware. I can flash the ROM no issue, but it WILL NOT LOCK the bootloader no matter what I do. All of the guides I've found involve this:
Code:
fastboot oem lock begin
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem lock
fastboot reboot
business, and it just does not work to lock the bootloader for me. I still get the "a signed boot.img is required" error, even after flashing a stock presumably signed boot.img 20 seconds prior. If I don't flash to Lineage in between tries, it won't even let me reflash boot.img or system etc because it'd be a "Security downgrade".
Is there a bullet-proof way to just bomb this thing from orbit with a stock 6.X image so that it locks the bootloader?
I did mine a few weeks ago. If you are on nugget here is the stock image for 1625
https://drive.google.com/file/d/0Bx6eXSiwEdFFWXZyYjB5S0xlZWs/view
Rempala said:
I did mine a few weeks ago. If you are on nugget here is the stock image for 1625
https://drive.google.com/file/d/0Bx6eXSiwEdFFWXZyYjB5S0xlZWs/view
Click to expand...
Click to collapse
Do you mean that you were able to flash and re-lock?
I just used the firmware you provided, no luck though. Still getting the "Still require signed boot.img" error when it tried to finish up the oem lock. And it appears it doesn't actually flash correctly either, version is still 6.0.1. Not sure what I'm doing wrong here.
Code:
F:\apps\AndroidTools\Moto G4 Plus XT1640-43 ATHENE NPJ25.93-14 Stock Img>fastboot oem lock begin
...
(bootloader) WARNING: This command erases all user data.
(bootloader) Please re-run this command to continue.
OKAY [ 0.005s]
finished. total time: 0.006s
F:\apps\AndroidTools\Moto G4 Plus XT1640-43 ATHENE NPJ25.93-14 Stock Img>fastboot oem lock begin
...
(bootloader) Flash valid Android images now
(bootloader) Then re-run this command to lock
OKAY [ 0.012s]
finished. total time: 0.012s
F:\apps\AndroidTools\Moto G4 Plus XT1640-43 ATHENE NPJ25.93-14 Stock Img>fastboot flash partition gpt.bin
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.044s
F:\apps\AndroidTools\Moto G4 Plus XT1640-43 ATHENE NPJ25.93-14 Stock Img>fastboot flash bootloader bootloader.img
target reported max download size of 536870912 bytes
sending 'bootloader' (3651 KB)...
OKAY [ 0.119s]
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.394s]
finished. total time: 0.514s
F:\apps\AndroidTools\Moto G4 Plus XT1640-43 ATHENE NPJ25.93-14 Stock Img>fastboot flash logo logo.bin
target reported max download size of 536870912 bytes
sending 'logo' (2105 KB)...
OKAY [ 0.069s]
writing 'logo'...
OKAY [ 0.070s]
finished. total time: 0.141s
F:\apps\AndroidTools\Moto G4 Plus XT1640-43 ATHENE NPJ25.93-14 Stock Img>fastboot flash boot boot.img
target reported max download size of 536870912 bytes
sending 'boot' (16384 KB)...
OKAY [ 0.519s]
writing 'boot'...
(bootloader) Security version downgrade
(bootloader) Image boot failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.686s
F:\apps\AndroidTools\Moto G4 Plus XT1640-43 ATHENE NPJ25.93-14 Stock Img>fastboot flash recovery recovery.img
target reported max download size of 536870912 bytes
sending 'recovery' (16484 KB)...
OKAY [ 0.523s]
writing 'recovery'...
(bootloader) Security version downgrade
(bootloader) Image recovery failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.691s
F:\apps\AndroidTools\Moto G4 Plus XT1640-43 ATHENE NPJ25.93-14 Stock Img>fastboot flash dsp adspso.bin
target reported max download size of 536870912 bytes
sending 'dsp' (16384 KB)...
OKAY [ 0.518s]
writing 'dsp'...
OKAY [ 0.298s]
finished. total time: 0.818s
F:\apps\AndroidTools\Moto G4 Plus XT1640-43 ATHENE NPJ25.93-14 Stock Img>fastboot flash oem oem.img
target reported max download size of 536870912 bytes
sending 'oem' (96490 KB)...
OKAY [ 3.039s]
writing 'oem'...
(bootloader) Security version downgrade
(bootloader) Image o failed validation
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 3.099s
F:\apps\AndroidTools\Moto G4 Plus XT1640-43 ATHENE NPJ25.93-14 Stock Img>fastboot flash system system.img_sparsechunk.0
target reported max download size of 536870912 bytes
sending 'system' (261001 KB)...
OKAY [ 8.213s]
writing 'system'...
(bootloader) Security version downgrade
(bootloader) Image s failed validation
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 8.278s
F:\apps\AndroidTools\Moto G4 Plus XT1640-43 ATHENE NPJ25.93-14 Stock Img>fastboot flash system system.img_sparsechunk.1
target reported max download size of 536870912 bytes
sending 'system' (250858 KB)...
OKAY [ 7.893s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 7.921s
F:\apps\AndroidTools\Moto G4 Plus XT1640-43 ATHENE NPJ25.93-14 Stock Img>fastboot flash system system.img_sparsechunk.2
target reported max download size of 536870912 bytes
sending 'system' (254625 KB)...
OKAY [ 8.012s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 8.040s
F:\apps\AndroidTools\Moto G4 Plus XT1640-43 ATHENE NPJ25.93-14 Stock Img>fastboot flash system system.img_sparsechunk.3
target reported max download size of 536870912 bytes
sending 'system' (261577 KB)...
OKAY [ 8.231s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 8.249s
F:\apps\AndroidTools\Moto G4 Plus XT1640-43 ATHENE NPJ25.93-14 Stock Img>fastboot flash system system.img_sparsechunk.4
target reported max download size of 536870912 bytes
sending 'system' (260443 KB)...
OKAY [ 8.194s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 8.230s
F:\apps\AndroidTools\Moto G4 Plus XT1640-43 ATHENE NPJ25.93-14 Stock Img>fastboot flash system system.img_sparsechunk.5
target reported max download size of 536870912 bytes
sending 'system' (248842 KB)...
OKAY [ 7.830s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 7.855s
F:\apps\AndroidTools\Moto G4 Plus XT1640-43 ATHENE NPJ25.93-14 Stock Img>fastboot flash system system.img_sparsechunk.6
target reported max download size of 536870912 bytes
sending 'system' (259549 KB)...
OKAY [ 8.167s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 8.209s
F:\apps\AndroidTools\Moto G4 Plus XT1640-43 ATHENE NPJ25.93-14 Stock Img>fastboot flash system system.img_sparsechunk.7
target reported max download size of 536870912 bytes
sending 'system' (82497 KB)...
OKAY [ 2.599s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 2.616s
F:\apps\AndroidTools\Moto G4 Plus XT1640-43 ATHENE NPJ25.93-14 Stock Img>fastboot flash modem NON-HLOS.bin
target reported max download size of 536870912 bytes
sending 'modem' (76954 KB)...
OKAY [ 2.424s]
writing 'modem'...
OKAY [ 1.073s]
finished. total time: 3.499s
F:\apps\AndroidTools\Moto G4 Plus XT1640-43 ATHENE NPJ25.93-14 Stock Img>fastboot erase modemst1
erasing 'modemst1'...
OKAY [ 0.022s]
finished. total time: 0.023s
F:\apps\AndroidTools\Moto G4 Plus XT1640-43 ATHENE NPJ25.93-14 Stock Img>fastboot erase modemst2
erasing 'modemst2'...
OKAY [ 0.032s]
finished. total time: 0.033s
F:\apps\AndroidTools\Moto G4 Plus XT1640-43 ATHENE NPJ25.93-14 Stock Img>fastboot flash fsg fsg.mbn
target reported max download size of 536870912 bytes
sending 'fsg' (2040 KB)...
OKAY [ 0.067s]
writing 'fsg'...
OKAY [ 0.058s]
finished. total time: 0.128s
F:\apps\AndroidTools\Moto G4 Plus XT1640-43 ATHENE NPJ25.93-14 Stock Img>fastboot erase cache
erasing 'cache'...
OKAY [ 0.016s]
finished. total time: 0.017s
F:\apps\AndroidTools\Moto G4 Plus XT1640-43 ATHENE NPJ25.93-14 Stock Img>fastboot erase userdata
erasing 'userdata'...
OKAY [ 0.031s]
finished. total time: 0.032s
F:\apps\AndroidTools\Moto G4 Plus XT1640-43 ATHENE NPJ25.93-14 Stock Img>fastboot erase customize
erasing 'customize'...
OKAY [ 0.015s]
finished. total time: 0.016s
F:\apps\AndroidTools\Moto G4 Plus XT1640-43 ATHENE NPJ25.93-14 Stock Img>fastboot erase clogo
erasing 'clogo'...
OKAY [ 0.015s]
finished. total time: 0.016s
F:\apps\AndroidTools\Moto G4 Plus XT1640-43 ATHENE NPJ25.93-14 Stock Img>fastboot oem lock
...
(bootloader) Still require signed boot.img
OKAY [ 0.004s]
finished. total time: 0.005s
F:\apps\AndroidTools\Moto G4 Plus XT1640-43 ATHENE NPJ25.93-14 Stock Img>fastboot oem lock
...
(bootloader) Still require signed boot.img
OKAY [ 0.004s]
finished. total time: 0.005s
F:\apps\AndroidTools\Moto G4 Plus XT1640-43 ATHENE NPJ25.93-14 Stock Img>
I think I gave u the wrong address. Here is the one I used, I just uploaded it to make sure. Yes I used it to relock the bootloader.
ATHENE_NPJS25.93-14-4_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
I'm not sure why that firmware worked differently than all the others I tried, but thanks! It did work, bootloader is once again locked. Appreciate the help.
hyperblau said:
I'm not sure why that firmware worked differently than all the others I tried, but thanks! It did work, bootloader is once again locked. Appreciate the help.
Click to expand...
Click to collapse
Because its the lastest release. (NPJS25.93-14-4)

Moto G4 XT1622 Bricked......

Hi There,
I hope someone can advise and possibly provide help resolving this problem.
The Moto G4 is not able to boot to OS, It only boots into bootloader, cannot go into recovery and cannot go into Factory Mode etc.
The error i get on the phone is....
"Start Up Failed"
Failed to verify hab image boot
Failed to verify boot image
ERROR: Failed to pass validation, backup to fastboot
Fastboot Reason: Fall-through from normal boot mode
I have tried to clear fb_mode and tried to unlock the bootloader without success.
I have tried various stock roms to get this fixed. The phone has never been unlocked and not been rooted.
C:\adb>fastboot oem fb_mode_set
...
OKAY [ -0.000s]
finished. total time: -0.000s
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.094s
C:\adb>fastboot flash bootloader bootloader.img
target reported max download size of 536870912 bytes
sending 'bootloader' (3651 KB)...
OKAY [ 0.172s]
writing 'bootloader'...
(bootloader) validating: bootloader.default.xml ...
(bootloader) Security version downgrade
(bootloader) Image aboot failed validation
(bootloader) Preflash validation failed
(bootloader) will fail: flash:aboot
FAILED (remote failure)
finished. total time: 0.319s
C:\adb>fastboot flash logo logo.bin
target reported max download size of 536870912 bytes
sending 'logo' (1848 KB)...
OKAY [ 0.094s]
writing 'logo'...
OKAY [ 0.078s]
finished. total time: 0.172s
C:\adb>fastboot flash boot boot.img
target reported max download size of 536870912 bytes
sending 'boot' (16384 KB)...
OKAY [ 0.687s]
writing 'boot'...
(bootloader) Image boot failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.891s
C:\adb>fastboot flash recovery recovery.img
target reported max download size of 536870912 bytes
sending 'recovery' (16484 KB)...
OKAY [ 0.664s]
writing 'recovery'...
(bootloader) Image recovery failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.883s
C:\adb>fastboot flash system system.img_sparsechunk.0
target reported max download size of 536870912 bytes
sending 'system' (257278 KB)...
OKAY [ 9.982s]
writing 'system'...
(bootloader) Image s failed validation
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 10.097s
C:\adb>fastboot flash system system.img_sparsechunk.1
target reported max download size of 536870912 bytes
sending 'system' (258607 KB)...
OKAY [ 10.125s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 10.157s
C:\adb>fastboot flash system system.img_sparsechunk.2
target reported max download size of 536870912 bytes
sending 'system' (258384 KB)...
OKAY [ 10.076s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 10.107s
C:\adb>fastboot flash system system.img_sparsechunk.3
target reported max download size of 536870912 bytes
sending 'system' (252313 KB)...
OKAY [ 9.973s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 10.004s
C:\adb>fastboot flash system system.img_sparsechunk.4
target reported max download size of 536870912 bytes
sending 'system' (254404 KB)...
OKAY [ 10.017s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 10.064s
C:\adb>fastboot flash system system.img_sparsechunk.5
target reported max download size of 536870912 bytes
sending 'system' (258060 KB)...
OKAY [ 10.114s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 10.161s
C:\adb>fastboot flash modem NON-HLOS.bin
target reported max download size of 536870912 bytes
sending 'modem' (76857 KB)...
OKAY [ 3.038s]
writing 'modem'...
OKAY [ 2.036s]
finished. total time: 5.075s
C:\adb>fastboot erase modemst1
erasing 'modemst1'...
OKAY [ 0.047s]
finished. total time: 0.047s
C:\adb>fastboot erase modemst2
erasing 'modemst2'...
OKAY [ 0.062s]
finished. total time: 0.062s
C:\adb>fastboot flash fsg fsg.mbn
target reported max download size of 536870912 bytes
sending 'fsg' (1864 KB)...
OKAY [ 0.100s]
writing 'fsg'...
OKAY [ 0.109s]
finished. total time: 0.210s
C:\adb>fastboot erase cache
erasing 'cache'...
OKAY [ 0.016s]
finished. total time: 0.031s
C:\adb>fastboot erase userdata
erasing 'userdata'...
OKAY [ 0.078s]
finished. total time: 0.078s
C:\adb>fastboot erase customize
erasing 'customize'...
OKAY [ 0.031s]
finished. total time: 0.031s
C:\adb>fastboot erase clogo
erasing 'clogo'...
OKAY [ 0.047s]
finished. total time: 0.047s
C:\adb>fastboot oem fb_mode_clear
...
OKAY [ -0.000s]
finished. total time: -0.000s
C:\adb>fastboot reboot
rebooting...
finished. total time: 0.016s
Click to expand...
Click to collapse
what have you done to your phone at the first place when it was working? did you unlock bootloader? were you flashing some customised roms? have your try to root? ... or something else?
Hi,
Nothing like rooting flashing roms etc. I think an update installed and booted to the Start Up Failed error.
Thanks,
Phatzy

Validating 'gpt.default.xml' is failed

F:\Software\Moto G5+\STOCK\POTTER_RETAIL_7.0_NPN25.137-92_cid50_subsidy-DEFAULT_
regulatory-DEFAULT_CFC.xml>fastboot oem lock begin
...
(bootloader) WARNING: This command erases all user data.
(bootloader) Please re-run this command to continue.
OKAY [ 0.016s]
finished. total time: 0.016s
F:\Software\Moto G5+\STOCK\POTTER_RETAIL_7.0_NPN25.137-92_cid50_subsidy-DEFAULT_
regulatory-DEFAULT_CFC.xml>fastboot oem fb_mode_set
...
OKAY [ -0.000s]
finished. total time: -0.000s
F:\Software\Moto G5+\STOCK\POTTER_RETAIL_7.0_NPN25.137-92_cid50_subsidy-DEFAULT_
regulatory-DEFAULT_CFC.xml>fastboot flash partition gpt.bin
target reported max download size of 536870912 bytes
sending 'partition' (45 KB)...
OKAY [ 0.000s]
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.094s
F:\Software\Moto G5+\STOCK\POTTER_RETAIL_7.0_NPN25.137-92_cid50_subsidy-DEFAULT_
regulatory-DEFAULT_CFC.xml>fastboot flash bootloader bootloader.img
target reported max download size of 536870912 bytes
sending 'bootloader' (5115 KB)...
OKAY [ 0.172s]
writing 'bootloader'...
(bootloader) Validating 'bootloader.default.xml'
(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 'devcfg.mbn' to 'devcfg'
(bootloader) - flashing 'cmnlib.mbn' to 'cmnlib'
(bootloader) - flashing 'cmnlib64.mbn' to 'cmnlib64'
(bootloader) - flashing 'keymaster.mbn' to 'keymaster'
(bootloader) - flashing 'prov.mbn' to 'prov'
(bootloader) - flashing 'sbl1.mbn' to 'sbl1'
OKAY [ 0.744s]
finished. total time: 0.932s
F:\Software\Moto G5+\STOCK\POTTER_RETAIL_7.0_NPN25.137-92_cid50_subsidy-DEFAULT_
regulatory-DEFAULT_CFC.xml>fastboot flash logo logo.bin
target reported max download size of 536870912 bytes
sending 'logo' (2186 KB)...
OKAY [ 0.078s]
writing 'logo'...
OKAY [ 0.141s]
finished. total time: 0.219s
F:\Software\Moto G5+\STOCK\POTTER_RETAIL_7.0_NPN25.137-92_cid50_subsidy-DEFAULT_
regulatory-DEFAULT_CFC.xml>fastboot flash boot boot.img
target reported max download size of 536870912 bytes
sending 'boot' (16384 KB)...
OKAY [ 0.531s]
writing 'boot'...
(bootloader) Image signed with key bad key
OKAY [ 0.455s]
finished. total time: 0.986s
F:\Software\Moto G5+\STOCK\POTTER_RETAIL_7.0_NPN25.137-92_cid50_subsidy-DEFAULT_
regulatory-DEFAULT_CFC.xml>fastboot flash recovery recovery.img
target reported max download size of 536870912 bytes
sending 'recovery' (20580 KB)...
OKAY [ 0.673s]
writing 'recovery'...
(bootloader) Image signed with key bad key
OKAY [ 0.547s]
finished. total time: 1.220s
F:\Software\Moto G5+\STOCK\POTTER_RETAIL_7.0_NPN25.137-92_cid50_subsidy-DEFAULT_
regulatory-DEFAULT_CFC.xml>fastboot flash dsp adspso.bin
target reported max download size of 536870912 bytes
sending 'dsp' (16384 KB)...
OKAY [ 0.518s]
writing 'dsp'...
OKAY [ 0.313s]
finished. total time: 0.831s
F:\Software\Moto G5+\STOCK\POTTER_RETAIL_7.0_NPN25.137-92_cid50_subsidy-DEFAULT_
regulatory-DEFAULT_CFC.xml>fastboot flash oem oem.img
target reported max download size of 536870912 bytes
sending 'oem' (102927 KB)...
OKAY [ 3.244s]
writing 'oem'...
OKAY [ 1.486s]
finished. total time: 4.731s
F:\Software\Moto G5+\STOCK\POTTER_RETAIL_7.0_NPN25.137-92_cid50_subsidy-DEFAULT_
regulatory-DEFAULT_CFC.xml>fastboot flash system system.img_sparsechunk.0
target reported max download size of 536870912 bytes
sending 'system' (517654 KB)...
OKAY [ 15.768s]
writing 'system'...
OKAY [ 7.770s]
finished. total time: 23.569s
F:\Software\Moto G5+\STOCK\POTTER_RETAIL_7.0_NPN25.137-92_cid50_subsidy-DEFAULT_
regulatory-DEFAULT_CFC.xml>fastboot flash system system.img_sparsechunk.1
target reported max download size of 536870912 bytes
sending 'system' (524282 KB)...
OKAY [ 16.363s]
writing 'system'...
OKAY [ 7.500s]
finished. total time: 23.863s
F:\Software\Moto G5+\STOCK\POTTER_RETAIL_7.0_NPN25.137-92_cid50_subsidy-DEFAULT_
regulatory-DEFAULT_CFC.xml>fastboot flash system system.img_sparsechunk.2
target reported max download size of 536870912 bytes
sending 'system' (488572 KB)...
OKAY [ 15.252s]
writing 'system'...
OKAY [ 7.083s]
finished. total time: 22.335s
F:\Software\Moto G5+\STOCK\POTTER_RETAIL_7.0_NPN25.137-92_cid50_subsidy-DEFAULT_
regulatory-DEFAULT_CFC.xml>fastboot flash system system.img_sparsechunk.3
target reported max download size of 536870912 bytes
sending 'system' (513680 KB)...
OKAY [ 15.862s]
writing 'system'...
OKAY [ 7.042s]
finished. total time: 22.935s
F:\Software\Moto G5+\STOCK\POTTER_RETAIL_7.0_NPN25.137-92_cid50_subsidy-DEFAULT_
regulatory-DEFAULT_CFC.xml>fastboot flash system system.img_sparsechunk.4
target reported max download size of 536870912 bytes
sending 'system' (488256 KB)...
OKAY [ 15.288s]
writing 'system'...
OKAY [ 7.166s]
finished. total time: 22.473s
F:\Software\Moto G5+\STOCK\POTTER_RETAIL_7.0_NPN25.137-92_cid50_subsidy-DEFAULT_
regulatory-DEFAULT_CFC.xml>fastboot flash modem NON-HLOS.bin
target reported max download size of 536870912 bytes
sending 'modem' (75260 KB)...
OKAY [ 2.296s]
writing 'modem'...
OKAY [ 1.190s]
finished. total time: 3.502s
F:\Software\Moto G5+\STOCK\POTTER_RETAIL_7.0_NPN25.137-92_cid50_subsidy-DEFAULT_
regulatory-DEFAULT_CFC.xml>fastboot erase modemst1
erasing 'modemst1'...
OKAY [ 0.057s]
finished. total time: 0.059s
F:\Software\Moto G5+\STOCK\POTTER_RETAIL_7.0_NPN25.137-92_cid50_subsidy-DEFAULT_
regulatory-DEFAULT_CFC.xml>fastboot erase modemst2
erasing 'modemst2'...
OKAY [ 0.059s]
finished. total time: 0.061s
F:\Software\Moto G5+\STOCK\POTTER_RETAIL_7.0_NPN25.137-92_cid50_subsidy-DEFAULT_
regulatory-DEFAULT_CFC.xml>fastboot flash fsg fsg.mbn
target reported max download size of 536870912 bytes
sending 'fsg' (2564 KB)...
OKAY [ 0.084s]
writing 'fsg'...
OKAY [ 0.141s]
finished. total time: 0.225s
F:\Software\Moto G5+\STOCK\POTTER_RETAIL_7.0_NPN25.137-92_cid50_subsidy-DEFAULT_
regulatory-DEFAULT_CFC.xml>fastboot erase cache
erasing 'cache'...
OKAY [ 0.016s]
finished. total time: 0.016s
F:\Software\Moto G5+\STOCK\POTTER_RETAIL_7.0_NPN25.137-92_cid50_subsidy-DEFAULT_
regulatory-DEFAULT_CFC.xml>fastboot erase userdata
erasing 'userdata'...
OKAY [ 0.202s]
finished. total time: 0.206s
F:\Software\Moto G5+\STOCK\POTTER_RETAIL_7.0_NPN25.137-92_cid50_subsidy-DEFAULT_
regulatory-DEFAULT_CFC.xml>fastboot erase customize
erasing 'customize'...
(bootloader) Permission denied
FAILED (remote failure)
finished. total time: 0.014s
F:\Software\Moto G5+\STOCK\POTTER_RETAIL_7.0_NPN25.137-92_cid50_subsidy-DEFAULT_
regulatory-DEFAULT_CFC.xml>fastboot erase clogo
erasing 'clogo'...
(bootloader) Permission denied
FAILED (remote failure)
finished. total time: 0.016s
F:\Software\Moto G5+\STOCK\POTTER_RETAIL_7.0_NPN25.137-92_cid50_subsidy-DEFAULT_
regulatory-DEFAULT_CFC.xml>fastboot oem fb_mode_clear
...
OKAY [ 0.000s]
finished. total time: 0.000s
F:\Software\Moto G5+\STOCK\POTTER_RETAIL_7.0_NPN25.137-92_cid50_subsidy-DEFAULT_
regulatory-DEFAULT_CFC.xml>fastboot oem lock
...
(bootloader) Flash valid Android images now
(bootloader) Then re-run this command to lock
OKAY [ 0.016s]
finished. total time: 0.016s
F:\Software\Moto G5+\STOCK\POTTER_RETAIL_7.0_NPN25.137-92_cid50_subsidy-DEFAULT_
regulatory-DEFAULT_CFC.xml>fastboot reboot
rebooting...
finished. total time: -0.000s
F:\Software\Moto G5+\STOCK\POTTER_RETAIL_7.0_NPN25.137-92_cid50_subsidy-DEFAULT_
regulatory-DEFAULT_CFC.xml>
F:\Software\Moto G5+\STOCK\POTTER_RETAIL_7.0_NPN25.137-92_cid50_subsidy-DEFAULT_
regulatory-DEFAULT_CFC.xml>
GPT IS CORRUPTED or you have to edit the xml file....wait for Oreo this next week
LLegion said:
GPT IS CORRUPTED or you have to edit the xml file....wait for Oreo this next week
Click to expand...
Click to collapse
please provide stock rom link for indian varient
LLegion said:
GPT IS CORRUPTED or you have to edit the xml file....wait for Oreo this next week
Click to expand...
Click to collapse
how to check which stock rom is installed in my phone when i bought???
DhruvanBhalara said:
how to check which stock rom is installed in my phone when i bought???
Click to expand...
Click to collapse
If you bought your phone in last year, chances are it probably came with the August patch or maybe the one earlier than August. I don't know which patch people who bought the phone this year are on out-of-the-box. RETIN devices are on 137-92-8 (March security patch) and the full fastboot ROM for 92-8 isn't available yet. If you recently updated or your phone was fully up-to-date before things got messy, chances are you were on the March patch. The only latest fastboot ROM available is 137-92-4 which I forgot which month was it for (please post the month if you know it).
psychopac said:
If you bought your phone in last year, chances are it probably came with the August patch or maybe the one earlier than August. I don't know which patch people who bought the phone this year are on out-of-the-box. RETIN devices are on 137-92-8 (March security patch) and the full fastboot ROM for 92-8 isn't available yet. If you recently updated or your phone was fully up-to-date before things got messy, chances are you were on the March patch. The only latest fastboot ROM available is 137-92-4 which I forgot which month was it for (please post the month if you know it).
Click to expand...
Click to collapse
if you have a link of The only latest fastboot ROM available is 137-92-4 then provide link for it.
DhruvanBhalara said:
if you have a link of The only latest fastboot ROM available is 137-92-4 then provide link for it.
Click to expand...
Click to collapse
https://drive.google.com/file/d/1xnlnyR8BmuQMGyYO2EYTELULmNqrHBGg/view
psychopac said:
https://drive.google.com/file/d/1xnlnyR8BmuQMGyYO2EYTELULmNqrHBGg/view
Click to expand...
Click to collapse
Thanks Brother. I hope It will relock my bootloader.
this rom will brick my device??
DhruvanBhalara said:
Thanks Brother. I hope It will relock my bootloader.
this rom will brick my device??
Click to expand...
Click to collapse
There is a possibility if you end up downgrading. But then again, I haven't tried anything with my phone yet so I might not know the outcome or I maybe be wrong
psychopac said:
There is a possibility if you end up downgrading. But then again, I haven't tried anything with my phone yet so I might not know the outcome or I maybe be wrong
Click to expand...
Click to collapse
i'm currently on pixel experience now i want to flash this stock rom. then any chances to brick my devices??
DhruvanBhalara said:
i'm currently on pixel experience now i want to flash this stock rom. then any chances to brick my devices??
Click to expand...
Click to collapse
you may lose volte.
dont go back to stock rom.
use any 8.1 rom instead.
R3dblue said:
you may lose volte.
dont go back to stock rom.
use any 8.1 rom instead.
Click to expand...
Click to collapse
should i wait for offical Oreo Rom??
DhruvanBhalara said:
should i wait for offical Oreo Rom??
Click to expand...
Click to collapse
Yes, I'd recommend you wait for official Oreo. Till then use a custom ROM
psychopac said:
Yes, I'd recommend you wait for official Oreo. Till then use a custom ROM
Click to expand...
Click to collapse
ok i wait fot it. Thanks Yoy.

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