How unzip this firmware? - One (M9+) General

Have some trouble to flash my HTC M9+ to stock ROM
I Have the firmware: 0PK7IMG_HIAU_ML_TUHL_M60_SENSE70_MR_HTC_Europe_2.30.401.1_Radio_1.1550V70.2501.0304_HT[W.T]_release_490382_combined_signed
It has inside 10 zip's:
zip_0
zip_1
zip_2
zip_3
zip_4
zip_5
zip_6
zip_7
zip_8
zip_9
How can unzip to get the firmware? size of the firmware is 2.3 GB
Thanks

1. If you were familiar with ubuntu , decrypt RUU.zip by means of
ruuveal [options] --device DEVICE source.zip output.zip
then using "simg2img" to create system.img
2. 7zip
https://forum.xda-developers.com/on...how-to-extract-one-m9-rom-dump-image-t3062808
3. Now, you have this tool to decrypt and extract system.img from RUU.zip.
https://forum.xda-developers.com/chef-central/android/tool-universal-htc-ruu-rom-decryption-t3382928

yvtc75 said:
1. If you were familiar with ubuntu , decrypt RUU.zip by means of
ruuveal [options] --device DEVICE source.zip output.zip
then using "simg2img" to create system.img
2. 7zip
https://forum.xda-developers.com/on...how-to-extract-one-m9-rom-dump-image-t3062808
3. Now, you have this tool to decrypt and extract system.img from RUU.zip.
https://forum.xda-developers.com/chef-central/android/tool-universal-htc-ruu-rom-decryption-t3382928
Click to expand...
Click to collapse
Thank you very much
I have two files now: boot.img and system.img
and then:
C:\adb>fastboot oem rebootRUU
...
OKAY [ 0.031s]
finished. total time: 0.031s
C:\adb>fastboot flash boot boot.img
target reported max download size of 800000000 bytes
sending 'boot' (9188 KB)...
OKAY [ 1.342s]
writing 'boot'...
(bootloader) HOSD CL#821792
(bootloader) [email protected]
(bootloader) [email protected]%
(bootloader) Update partition OK
(bootloader) [email protected]
OKAY [ 2.215s]
finished. total time: 3.557s
C:\adb>fastboot flash system system.img
target reported max download size of 800000000 bytes
erasing 'system'...
OKAY [ 0.140s]
sending 'system' (638680 KB)...
OKAY [ 23.213s]
writing 'system'...
(bootloader) HOSD CL#821792
(bootloader) [email protected]
(bootloader) [email protected]%
(bootloader) Update partition OK
(bootloader) [email protected]
OKAY [ 14.336s]
finished. total time: 37.690s
C:\adb>fastboot reboot
rebooting...
finished. total time: 0.000s
the device reboot but frozen in white screen with green logo HTC
What can i do?
Thanks

cejas_99 said:
Thank you very much
I have two files now: boot.img and system.img
and then:
C:\adb>fastboot oem rebootRUU
...
OKAY [ 0.031s]
finished. total time: 0.031s
C:\adb>fastboot flash boot boot.img
target reported max download size of 800000000 bytes
sending 'boot' (9188 KB)...
OKAY [ 1.342s]
writing 'boot'...
(bootloader) HOSD CL#821792
(bootloader) [email protected]
(bootloader) [email protected]%
(bootloader) Update partition OK
(bootloader) [email protected]
OKAY [ 2.215s]
finished. total time: 3.557s
C:\adb>fastboot flash system system.img
target reported max download size of 800000000 bytes
erasing 'system'...
OKAY [ 0.140s]
sending 'system' (638680 KB)...
OKAY [ 23.213s]
writing 'system'...
(bootloader) HOSD CL#821792
(bootloader) [email protected]
(bootloader) [email protected]%
(bootloader) Update partition OK
(bootloader) [email protected]
OKAY [ 14.336s]
finished. total time: 37.690s
C:\adb>fastboot reboot
rebooting...
finished. total time: 0.000s
the device reboot but frozen in white screen with green logo HTC
What can i do?
Thanks
Click to expand...
Click to collapse
oh~ no~ Don't mess up.
If you want to flash rom, adopt this method.
https://forum.xda-developers.com/showpost.php?p=61801034&postcount=8
https://forum.xda-developers.com/on...neral/help-flashing-stock-rom-htc-m9-t3711628
To flash this on S-On, you must have your device Relocked (on S-Off you don't need to relock) and then in fastboot mode:
fastboot oem rebootRUU
fastboot flash zip rom.zip
fastboot flash zip rom.zip
fastboot reboot
If you wanna flash dump image, use the following command.
https://forum.xda-developers.com/on...c-one-m9-stock-backup-stock-recovery-t3190453
fastboot flash system system.img

cejas_99 said:
Have some trouble to flash my HTC M9+ to stock ROM
I Have the firmware: 0PK7IMG_HIAU_ML_TUHL_M60_SENSE70_MR_HTC_Europe_2.30.401.1_Radio_1.1550V70.2501.0304_HT[W.T]_release_490382_combined_signed
It has inside 10 zip's:
zip_0
zip_1
zip_2
zip_3
zip_4
zip_5
zip_6
zip_7
zip_8
zip_9
How can unzip to get the firmware? size of the firmware is 2.3 GB
Thanks
Click to expand...
Click to collapse
You will propably get an error trying to unzip these archives. It is because it is not meant to be unzipped. Try to rename the zip file to 0PK7IMG and put it on your sd card. Alternatively, you can try to flash it via adb.

Related

Boot loop after attempting to 'flash a factory image | Return to Stock'

Firstly I hope that this is an OK place to post this if not could you please guide me to the correct location, also I pretty nooby at this.
My phone before hand;
XT1562
I had successfully managed to install cyanogenmod from this forum thread using TWRP.
The Bootloader is unlocked.
What Have I done;
I wanted to return to stock and so I followed this guide.
I am now stuck in a boot loop at the after the bootloader, in my inexperience I feel it might be that there isn't actually a ROM installed due to this message appearing often "(bootloader) has-slotartition: not found" or "(bootloader) has-slot:system: not found" as visible in the CMD log below.
This is the CMD LOG from my attempt, feel free to ask for info and I am very greatful for any and all help.
C:\Users\John Doe\AppData\Local\Android\Sdk\platform-tools>fastboot flash partition gpt.bin
(bootloader) has-slotartition: not found
target reported max download size of 268435456 bytes
sending 'partition' (32 KB)...
OKAY [ 0.186s]
writing 'partition'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.848s
C:\Users\John Doe\AppData\Local\Android\Sdk\platform-tools>fastboot flash bootloader bootloader.img
(bootloader) has-slot:bootloader: not found
target reported max download size of 268435456 bytes
sending 'bootloader' (2546 KB)...
OKAY [ 0.508s]
writing 'bootloader'...
(bootloader) flashing sbl1 ...
(bootloader) flashing aboot ...
(bootloader) flashing tz ...
(bootloader) flashing hyp ...
(bootloader) flashing rpm ...
OKAY [ 2.377s]
finished. total time: 2.888s
C:\Users\John Doe\AppData\Local\Android\Sdk\platform-tools>fastboot flash logo logo.bin
(bootloader) has-slot:logo: not found
target reported max download size of 268435456 bytes
sending 'logo' (2833 KB)...
OKAY [ 0.511s]
writing 'logo'...
OKAY [ 0.128s]
finished. total time: 0.643s
C:\Users\John Doe\AppData\Local\Android\Sdk\platform-tools>fastboot flash boot boot.img
(bootloader) has-slot:boot: not found
target reported max download size of 268435456 bytes
sending 'boot' (32768 KB)...
OKAY [ 1.547s]
writing 'boot'...
OKAY [ 0.429s]
finished. total time: 1.979s
C:\Users\John Doe\AppData\Local\Android\Sdk\platform-tools>fastboot flash recovery recovery.img
(bootloader) has-slot:recovery: not found
target reported max download size of 268435456 bytes
sending 'recovery' (32752 KB)...
OKAY [ 1.567s]
writing 'recovery'...
OKAY [ 0.473s]
finished. total time: 2.044s
C:\Users\John Doe\AppData\Local\Android\Sdk\platform-tools>fastboot flash system system.img_sparsechunk.0
(bootloader) has-slot:system: not found
target reported max download size of 268435456 bytes
sending 'system' (262140 KB)...
OKAY [ 10.558s]
writing 'system'...
OKAY [ 3.985s]
finished. total time: 14.546s
C:\Users\John Doe\AppData\Local\Android\Sdk\platform-tools>fastboot flash partition gpt.bin
(bootloader) has-slotartition: not found
target reported max download size of 268435456 bytes
sending 'partition' (32 KB)...
OKAY [ 0.187s]
writing 'partition'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.800s
C:\Users\John Doe\AppData\Local\Android\Sdk\platform-tools>fastboot flash bootloader bootloader.img
(bootloader) has-slot:bootloader: not found
target reported max download size of 268435456 bytes
sending 'bootloader' (2546 KB)...
OKAY [ 0.531s]
writing 'bootloader'...
(bootloader) flashing sbl1 ...
(bootloader) flashing aboot ...
(bootloader) flashing tz ...
(bootloader) flashing hyp ...
(bootloader) flashing rpm ...
OKAY [ 2.379s]
finished. total time: 2.914s
C:\Users\John Doe\AppData\Local\Android\Sdk\platform-tools>fastboot flash logo logo.bin
(bootloader) has-slot:logo: not found
target reported max download size of 268435456 bytes
sending 'logo' (2833 KB)...
OKAY [ 0.510s]
writing 'logo'...
OKAY [ 0.164s]
finished. total time: 0.676s
C:\Users\John Doe\AppData\Local\Android\Sdk\platform-tools>fastboot flash boot boot.img
(bootloader) has-slot:boot: not found
target reported max download size of 268435456 bytes
sending 'boot' (32768 KB)...
OKAY [ 1.662s]
writing 'boot'...
OKAY [ 0.481s]
finished. total time: 2.148s
C:\Users\John Doe\AppData\Local\Android\Sdk\platform-tools>fastboot flash recovery recovery.img
(bootloader) has-slot:recovery: not found
target reported max download size of 268435456 bytes
sending 'recovery' (32752 KB)...
OKAY [ 1.670s]
writing 'recovery'...
OKAY [ 0.433s]
finished. total time: 2.105s
C:\Users\John Doe\AppData\Local\Android\Sdk\platform-tools>fastboot flash system system.img_sparsechunk.0
(bootloader) has-slot:system: not found
target reported max download size of 268435456 bytes
sending 'system' (262140 KB)...
OKAY [ 10.687s]
writing 'system'...
OKAY [ 3.774s]
finished. total time: 14.463s
C:\Users\John Doe\AppData\Local\Android\Sdk\platform-tools>fastboot flash system system.img_sparsechunk.1
(bootloader) has-slot:system: not found
target reported max download size of 268435456 bytes
sending 'system' (240784 KB)...
OKAY [ 9.744s]
writing 'system'...
OKAY [ 3.268s]
finished. total time: 13.017s
C:\Users\John Doe\AppData\Local\Android\Sdk\platform-tools>fastboot flash system system.img_sparsechunk.2
(bootloader) has-slot:system: not found
target reported max download size of 268435456 bytes
sending 'system' (259766 KB)...
OKAY [ 10.496s]
writing 'system'...
OKAY [ 3.484s]
finished. total time: 13.984s
C:\Users\John Doe\AppData\Local\Android\Sdk\platform-tools>fastboot flash system system.img_sparsechunk.3
(bootloader) has-slot:system: not found
target reported max download size of 268435456 bytes
sending 'system' (259602 KB)...
OKAY [ 10.399s]
writing 'system'...
OKAY [ 3.393s]
finished. total time: 13.796s
C:\Users\John Doe\AppData\Local\Android\Sdk\platform-tools>fastboot flash system system.img_sparsechunk.4
(bootloader) has-slot:system: not found
target reported max download size of 268435456 bytes
sending 'system' (241316 KB)...
OKAY [ 9.722s]
writing 'system'...
OKAY [ 3.637s]
finished. total time: 13.361s
C:\Users\John Doe\AppData\Local\Android\Sdk\platform-tools>fastboot flash system system.img_sparsechunk.5
(bootloader) has-slot:system: not found
target reported max download size of 268435456 bytes
sending 'system' (246121 KB)...
OKAY [ 9.933s]
writing 'system'...
OKAY [ 3.173s]
finished. total time: 13.109s
C:\Users\John Doe\AppData\Local\Android\Sdk\platform-tools>fastboot flash system system.img_sparsechunk.6
(bootloader) has-slot:system: not found
target reported max download size of 268435456 bytes
sending 'system' (245397 KB)...
OKAY [ 9.887s]
writing 'system'...
OKAY [ 3.106s]
finished. total time: 12.996s
C:\Users\John Doe\AppData\Local\Android\Sdk\platform-tools>fastboot flash modem NON-HLOS.bin
(bootloader) has-slot:modem: not found
target reported max download size of 268435456 bytes
sending 'modem' (37100 KB)...
OKAY [ 1.676s]
writing 'modem'...
OKAY [ 0.638s]
finished. total time: 2.317s
C:\Users\John Doe\AppData\Local\Android\Sdk\platform-tools>fastboot erase modemst1
(bootloader) has-slot:modemst1: not found
erasing 'modemst1'...
OKAY [ 0.113s]
finished. total time: 0.114s
C:\Users\John Doe\AppData\Local\Android\Sdk\platform-tools>fastboot erase modemst2
(bootloader) has-slot:modemst2: not found
erasing 'modemst2'...
OKAY [ 0.110s]
finished. total time: 0.111s
C:\Users\John Doe\AppData\Local\Android\Sdk\platform-tools>fastboot flash fsg fsg.mbn
(bootloader) has-slot:fsg: not found
target reported max download size of 268435456 bytes
sending 'fsg' (1206 KB)...
OKAY [ 0.348s]
writing 'fsg'...
OKAY [ 0.087s]
finished. total time: 0.437s
C:\Users\John Doe\AppData\Local\Android\Sdk\platform-tools>fastboot erase cache
(bootloader) has-slot:cache: not found
erasing 'cache'...
OKAY [ 0.172s]
finished. total time: 0.173s
C:\Users\John Doe\AppData\Local\Android\Sdk\platform-tools>fastboot erase userdata
(bootloader) has-slot:userdata: not found
erasing 'userdata'...
OKAY [ 0.191s]
finished. total time: 0.194s
C:\Users\John Doe\AppData\Local\Android\Sdk\platform-tools>fastboot reboot
rebooting...
finished. total time: 0.007s
Click to expand...
Click to collapse
dj945 said:
Firstly I hope that this is an OK place to post this if not could you please guide me to the correct location, also I pretty nooby at this.
My phone before hand;
XT1562
I had successfully managed to install cyanogenmod from this forum thread using TWRP.
The Bootloader is unlocked.
What Have I done;
I wanted to return to stock and so I followed this guide.
I am now stuck in a boot loop at the after the bootloader, in my inexperience I feel it might be that there isn't actually a ROM installed due to this message appearing often "(bootloader) has-slotartition: not found" or "(bootloader) has-slot:system: not found" as visible in the CMD log below.
This is the CMD LOG from my attempt, feel free to ask for info and I am very greatful for any and all help.
Click to expand...
Click to collapse
Refer
http://forum.xda-developers.com/moto-x-play/general/reminder-how-to-downgrade-6-0-to-5-1-1-t3267253
Don't flash gpt and bootloader.
And check no of sparsechunk files and flash all of them.
drmuruga said:
Refer
http://forum.xda-developers.com/moto-x-play/general/reminder-how-to-downgrade-6-0-to-5-1-1-t3267253
Don't flash gpt and bootloader.
And check no of sparsechunk files and flash all of them.
Click to expand...
Click to collapse
As I have already tried those two flashes, should I remove them if so how, or do I juts flash the rest and forget I had previously tried gpt and bootloader?
Thanks for reading
dj945 said:
As I have already tried those two flashes, should I remove them if so how, or do I juts flash the rest and forget I had previously tried gpt and bootloader?
Thanks for reading
Click to expand...
Click to collapse
Just skip those two and flash the rest
same problem
Me too experincing the same commands in cmd . How did you installed the os ?. thanks in advance .
i had bootloop also.i think the commands regard other firmware version maybe lollipop.in the point it says sparsechunk 1 to 6...add sparsechunk 7,8 and 9 with copy paste...i resolved this way...
I have the same issue on Moto g5s plus (sanders). The stock os wont flash and just bootloops, and I have tried flashing different versions of the android sanders os.
Use the link below. Below link will definitely work. I personally did multiple times. Worked flawlessly.
https://github.com/motoxplay/stock.
Make sure that you will flash only 7.1.1 else your bootloader gets corrupt.
Guys i recently wanted to unroot my phone Moto X Play(XT1562) LUX so did it from the supersu app only and then wanted to lock the bootloader but the fastboot devices were not showing on my laptop and so i installed lineage os on my phone and since then it is rebooting into the recovery mode and in order to start the os i need to press start from the bootloader.
I saw that dd command helps fix this pls guide me.

Stuck in fastboot mode after flashing firmware with locked bootloader

Hello everyone, this is my first post so i´ll try to be as clear as posible
I tried today to flash through fastboot a firmware that was corrupted into my Moto G4 XT1621 and i didn´t unlock my bootloader first so i got an error when trying to flash the firmware, after thar i tried to reboot my phone but every time it turns on it goes into fastboot mode whith a message saying:
Start up failed:
Your device didn´t start up successfully. Use the software repair assistant on computer to repair your device. (i don´t know of what software repair assistant it´s talking about)
Whenever i try to flash an stock rom i get the following errors:
C:\Users\Claudio Magallón\Downloads\por favor>fastboot oem fb_mode_set
...
OKAY [ 0.005s]
finished. total time: 0.005s
C:\Users\Claudio Magallón\Downloads\por favor>fastboot flash partition gpt.bin
target reported max download size of 536870912 bytes
sending 'partition' (32 KB)...
OKAY [ 0.022s]
writing 'partition'...
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.073s
C:\Users\Claudio Magallón\Downloads\por favor>fastboot flash bootloader bootloader.img
target reported max download size of 536870912 bytes
sending 'bootloader' (3651 KB)...
OKAY [ 0.151s]
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.411s]
finished. total time: 0.563s
C:\Users\Claudio Magallón\Downloads\por favor>fastboot flash logo logo.bin
target reported max download size of 536870912 bytes
sending 'logo' (1848 KB)...
OKAY [ 0.093s]
writing 'logo'...
OKAY [ 0.067s]
finished. total time: 0.159s
C:\Users\Claudio Magallón\Downloads\por favor>fastboot flash boot boot.img
target reported max download size of 536870912 bytes
sending 'boot' (16384 KB)...
OKAY [ 0.534s]
writing 'boot'...
(bootloader) Security version downgrade
(bootloader) Image boot failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.713s
C:\Users\Claudio Magallón\Downloads\por favor>fastboot flash recovery recovery.img
target reported max download size of 536870912 bytes
sending 'recovery' (16484 KB)...
OKAY [ 0.538s]
writing 'recovery'...
(bootloader) Security version downgrade
(bootloader) Image recovery failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.719s
C:\Users\Claudio Magallón\Downloads\por favor>fastboot flash dsp adspso.bin
target reported max download size of 536870912 bytes
sending 'dsp' (16384 KB)...
OKAY [ 0.544s]
writing 'dsp'...
OKAY [ 0.274s]
finished. total time: 0.819s
C:\Users\Claudio Magallón\Downloads\por favor>fastboot flash oem oem.img
target reported max download size of 536870912 bytes
sending 'oem' (124713 KB)...
OKAY [ 3.942s]
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: 4.027s
C:\Users\Claudio Magallón\Downloads\por favor>fastboot flash system system.img_sparsechunk.0
target reported max download size of 536870912 bytes
sending 'system' (257282 KB)...
OKAY [ 8.110s]
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.205s
C:\Users\Claudio Magallón\Downloads\por favor>fastboot flash system system.img_sparsechunk.1
target reported max download size of 536870912 bytes
sending 'system' (258607 KB)...
OKAY [ 8.152s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 8.183s
C:\Users\Claudio Magallón\Downloads\por favor>fastboot flash system system.img_sparsechunk.2
target reported max download size of 536870912 bytes
sending 'system' (260204 KB)...
OKAY [ 8.494s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 8.529s
C:\Users\Claudio Magallón\Downloads\por favor>fastboot flash system system.img_sparsechunk.3
target reported max download size of 536870912 bytes
sending 'system' (250512 KB)...
OKAY [ 7.904s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 7.937s
C:\Users\Claudio Magallón\Downloads\por favor>fastboot flash system system.img_sparsechunk.4
target reported max download size of 536870912 bytes
sending 'system' (254492 KB)...
OKAY [ 8.036s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 8.073s
C:\Users\Claudio Magallón\Downloads\por favor>fastboot flash system system.img_sparsechunk.5
target reported max download size of 536870912 bytes
sending 'system' (257841 KB)...
OKAY [ 8.130s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 8.161s
C:\Users\Claudio Magallón\Downloads\por favor>fastboot flash system system.img_sparsechunk.6
target reported max download size of 536870912 bytes
sending 'system' (256191 KB)...
OKAY [ 8.080s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 8.125s
C:\Users\Claudio Magallón\Downloads\por favor>fastboot flash system system.img_sparsechunk.7
target reported max download size of 536870912 bytes
sending 'system' (150189 KB)...
OKAY [ 4.743s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 4.777s
C:\Users\Claudio Magallón\Downloads\por favor>fastboot flash modem NON-HLOS.bin
target reported max download size of 536870912 bytes
sending 'modem' (76861 KB)...
OKAY [ 2.436s]
writing 'modem'...
OKAY [ 1.127s]
finished. total time: 3.564s
C:\Users\Claudio Magallón\Downloads\por favor>fastboot erase modemst1
erasing 'modemst1'...
OKAY [ 0.038s]
finished. total time: 0.038s
C:\Users\Claudio Magallón\Downloads\por favor>fastboot erase modemst2
erasing 'modemst2'...
OKAY [ 0.025s]
finished. total time: 0.025s
C:\Users\Claudio Magallón\Downloads\por favor>fastboot flash fsg fsg.mbn
target reported max download size of 536870912 bytes
sending 'fsg' (1868 KB)...
OKAY [ 0.078s]
writing 'fsg'...
OKAY [ 0.060s]
finished. total time: 0.139s
C:\Users\Claudio Magallón\Downloads\por favor>fastboot erase cache
erasing 'cache'...
OKAY [ 0.030s]
finished. total time: 0.030s
C:\Users\Claudio Magallón\Downloads\por favor>fastboot erase userdata
erasing 'userdata'...
OKAY [ 0.052s]
finished. total time: 0.053s
C:\Users\Claudio Magallón\Downloads\por favor>fastboot erase customize
erasing 'customize'...
OKAY [ 0.030s]
finished. total time: 0.030s
C:\Users\Claudio Magallón\Downloads\por favor>fastboot erase clogo
erasing 'clogo'...
OKAY [ 0.054s]
finished. total time: 0.054s
C:\Users\Claudio Magallón\Downloads\por favor>fastboot oem fb_mode_clear
...
OKAY [ 0.005s]
finished. total time: 0.005s
I will appreciate all of your help, i only have 1 week with my phone and i dont want to be left with a brick.
Did you try this?
http://forum.xda-developers.com/moto-g4/development/unbrick-hard-bricked-moto-g4-amazon-t3486578
Try to unlock your bootloader on this link http://a df.ly/1fSnaw
And flash the stock rom o this link http://a df.ly/1fRBXU
Firmware pass: www.stockrom.net
mfastboot oem fb_mode_set
mfastboot flash partition gpt.bin
mfastboot flash bootloader bootloader.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash dsp adspso.bin
mfastboot flash oem oem.img
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
mfastboot flash system system.img_sparsechunk.4
mfastboot flash system system.img_sparsechunk.5
mfastboot flash system system.img_sparsechunk.6
mfastboot flash system system.img_sparsechunk.7
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
mfastboot erase customize
mfastboot erase clogo
mfastboot oem fb_mode_clear
mfastboot reboot
Thanks to both of you, i have just tried both methods.
The first one where i have to flash an XT1025 Amazon Rom is giving me the same error i detailed on my first post.
The second one, when i try to unlock my boot loader is giving me the next message:
(bootloader) Check 'Allow OEM Unlock' in Android Settings > Developer
(bootloader) Options
OKAY [ 0.021s]
finished. total time: 0.021s
C:\Users\Claudio MagallÛn\Downloads\XT1621>
The problem is that i can't turn on my phone to check 'Allow OEM Unlock' option

Twrp flashed but not opening...dtb not found error

My device is Asus Zenfone Max(sd615) 32gb varient.
With TWRP my device can't access to recovery when i type fastboot boot recovery.img after a flash, i don't know if the problem come from my fastboot. Somebody for help me, or fix this issue.
Here is the commands I have performed as instructed....
`C:\Android>fastboot oem device-info
...
(bootloader) Device tampered: false
(bootloader) Device unlocked: true
(bootloader) Charger screen enabled: true
(bootloader) Display panel:
(bootloader) console_enabled: 0
(bootloader) exec_console_unconsole: 0
OKAY [ 0.017s]
finished. total time: 0.019s
C:\Android>fastboot flash recovery recovery.img
target reported max download size of 1073741824 bytes
sending 'recovery' (15920 KB)...
OKAY [ 0.507s]
writing 'recovery'...
OKAY [ 0.303s]
finished. total time: 0.817s
C:\Android>fastboot boot recovery.img
downloading 'boot.img'...
OKAY [ 0.516s]
booting...
FAILED (remote: dtb not found)
finished. total time: `0.556s``
Pls tell me how can I fix this dtb not found error

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.

Unlocked bootloader Phone stuck in bootloop

I successfully unlocked my bootloader last night. I went through the process of patching the img file through magisk to root and flashed it via fastbooot. I have been stuck in a loop since. I can still get into fastboot. I have tried Smart Assistant and RSD but they wont detect my phone.
I tried a using different firmware as others have posted and i'm still stuck.
here is my process on powershell:
PS C:\Android> fastboot flash partition gpt.bin
target reported max download size of 536870912 bytes
sending 'partition' (45 KB)...
OKAY [ 0.002s]
writing 'partition'...
(bootloader) Validating 'gpt.default.xml'
(bootloader) Committing 'gpt.default.xml'
(bootloader) - flashing 'gpt_main0.bin' to 'partition:0'
(bootloader) Flashing primary GPT image...
(bootloader) Flashing backup GPT image...
OKAY [ 0.092s]
finished. total time: 0.095s
PS C:\Android> fastboot flash bootloader bootloader.img
target reported max download size of 536870912 bytes
sending 'bootloader' (7419 KB)...
OKAY [ 0.179s]
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_30.mbn' to 'cmnlib'
(bootloader) - flashing 'cmnlib64_30.mbn' to 'cmnlib64'
(bootloader) - flashing 'keymaster64.mbn' to 'keymaster'
(bootloader) - flashing 'prov.mbn' to 'prov'
(bootloader) - flashing 'sbl1.mbn' to 'sbl1'
OKAY [ 0.317s]
finished. total time: 0.497s
PS C:\Android> fastboot reboot-bootloader
rebooting into bootloader...
OKAY [ 0.001s]
finished. total time: 0.002s
PS C:\Android> fastboot flash modem NON-HLOS.bin
target reported max download size of 536870912 bytes
sending 'modem' (65900 KB)...
OKAY [ 1.527s]
writing 'modem'...
OKAY [ 0.512s]
finished. total time: 2.040s
PS C:\Android> fastboot flash fsg fsg.mbn
target reported max download size of 536870912 bytes
sending 'fsg' (11612 KB)...
OKAY [ 0.270s]
writing 'fsg'...
OKAY [ 0.089s]
finished. total time: 0.361s
PS C:\Android> fastboot erase modemst1
erasing 'modemst1'...
OKAY [ 0.015s]
finished. total time: 0.015s
PS C:\Android> fastboot erase modemst2
erasing 'modemst2'...
OKAY [ 0.015s]
finished. total time: 0.016s
PS C:\Android> fastboot flash bluetooth BTFM.bin
error: cannot load 'BTFM.bin'
PS C:\Android> fastboot flash dsp dspso.bin
error: cannot load 'dspso.bin'
PS C:\Android> fastboot flash dsp dspso.bin
error: cannot load 'dspso.bin'
PS C:\Android> fastboot flash dsp adspso.bin
target reported max download size of 536870912 bytes
sending 'dsp' (16384 KB)...
OKAY [ 0.380s]
writing 'dsp'...
OKAY [ 0.104s]
finished. total time: 0.486s
PS C:\Android> fastboot flash logo logo.bin
target reported max download size of 536870912 bytes
sending 'logo' (2633 KB)...
OKAY [ 0.062s]
writing 'logo'...
OKAY [ 0.044s]
finished. total time: 0.107s
PS C:\Android> fastboot flash boot boot.img
target reported max download size of 536870912 bytes
sending 'boot' (32768 KB)...
OKAY [ 0.789s]
writing 'boot'...
(bootloader) Image signed with key bad key
OKAY [ 0.641s]
finished. total time: 1.431s
PS C:\Android> fastboot flash system system.img_sparsechunk.0
target reported max download size of 536870912 bytes
sending 'system' (256852 KB)...
OKAY [ 5.933s]
writing 'system'...
OKAY [ 1.093s]
finished. total time: 7.028s
PS C:\Android> fastboot flash system system.img_sparsechunk.1
target reported max download size of 536870912 bytes
sending 'system' (262141 KB)...
OKAY [ 6.062s]
writing 'system'...
OKAY [ 1.102s]
finished. total time: 7.166s
PS C:\Android> fastboot flash system system.img_sparsechunk.2
target reported max download size of 536870912 bytes
sending 'system' (234600 KB)...
OKAY [ 5.424s]
writing 'system'...
OKAY [ 0.955s]
finished. total time: 6.379s
PS C:\Android> fastboot flash system system.img_sparsechunk.3 target reported max download size of 536870912 bytes
sending 'system' (259529 KB)...
OKAY [ 5.998s]
writing 'system'...
OKAY [ 1.075s]
finished. total time: 7.075s
PS C:\Android> fastboot flash system system.img_sparsechunk.4
target reported max download size of 536870912 bytes
sending 'system' (262141 KB)...
OKAY [ 6.061s]
writing 'system'...
OKAY [ 1.114s]
finished. total time: 7.177s
PS C:\Android> fastboot flash system system.img_sparsechunk.5
target reported max download size of 536870912 bytes
sending 'system' (252895 KB)...
OKAY [ 5.852s]
writing 'system'...
OKAY [ 1.144s]
finished. total time: 6.997s
PS C:\Android> fastboot flash system system.img_sparsechunk.6
target reported max download size of 536870912 bytes
sending 'system' (262140 KB)...
OKAY [ 6.070s]
writing 'system'...
OKAY [ 1.092s]
finished. total time: 7.163s
PS C:\Android> fastboot flash system system.img_sparsechunk.7
target reported max download size of 536870912 bytes
sending 'system' (260863 KB)...
OKAY [ 6.071s]
writing 'system'...
OKAY [ 1.883s]
finished. total time: 7.955s
PS C:\Android> fastboot flash system_b system_other.img
error: cannot load 'system_other.img'
PS C:\Android> fastboot flash oem oem_other.img
target reported max download size of 536870912 bytes
sending 'oem' (43696 KB)...
OKAY [ 1.012s]
writing 'oem'...
OKAY [ 0.219s]
finished. total time: 1.233s
PS C:\Android> fastboot flash oem oem.img
target reported max download size of 536870912 bytes
sending 'oem' (68308 KB)...
OKAY [ 1.584s]
writing 'oem'...
OKAY [ 0.300s]
finished. total time: 1.887s
PS C:\Android> fastboot erase carrier
erasing 'carrier'...
OKAY [ 0.032s]
finished. total time: 0.033s
PS C:\Android> fastboot erase userdata
erasing 'userdata'...
OKAY [ 0.082s]
finished. total time: 0.083s
PS C:\Android> fastboot erase ddr
erasing 'ddr'...
(bootloader) Permission denied
FAILED (remote failure)
finished. total time: 0.004s
PS C:\Android> fastboot erase ddr
erasing 'ddr'...
(bootloader) Permission denied
FAILED (remote failure)
finished. total time: 0.004s
PS C:\Android> fastboot reboot
rebooting...
finished. total time: 0.001s
You need to wipe everything with fastboot commands. Then flash stock again. Also there's no need to do any of that anymore to get root. Just flash the latest magisk in TWRP next time.
Phalanx7621 said:
You need to wipe everything with fastboot commands. Then flash stock again. Also there's no need to do any of that anymore to get root. Just flash the latest magisk in TWRP next time.
Click to expand...
Click to collapse
Thank you for the reply
Should "Fastboot erase" wipe it all out?
do you know where I can the correct stock room for XT1962-1?
Sent from my SM-N975U using Tapatalk
Extract all files from stock zip and run flashall.bat file at command prompt with phone connected in bootloader mode. This will flash and erase all to correct retail stock at Lolinet mirror
https://mirrors.lolinet.com/firmware/moto/river/official/RETAIL/
Flashall.bat file
Extract into adb folder (same as all files in stock zip file)
HueyT said:
Extract into adb folder (same as all files in stock zip file)
Click to expand...
Click to collapse
Thank you for your help!! I'll let you know how it goes
Sent from my SM-N975U using Tapatalk
HueyT said:
Extract into adb folder (same as all files in stock zip file)
Click to expand...
Click to collapse
Update: I'm back up and running! I really appreciate the help! my bootloader is still unlocked, what is the best way to root this device?
dnsource said:
Update: I'm back up and running! I really appreciate the help! my bootloader is still unlocked, what is the best way to root this device?
Click to expand...
Click to collapse
Install TWRP and then flash Magisk 20.2 and Magisk Manager APK
While patching the boot.img for your first installation, did you choose "Preserve force encryption" in "Advanced Settings"?

Categories

Resources