Need Some Help With Recently Hard Bricked Phone - Moto G5S Questions & Answers

So I recently bricked my moto g5s xt1792 trying to downgrade to stock 7.0. So I found a blankflash that worked after many many hours looking for one, now that I'm able to send fastboot commands seems that all my partitions are gone or something like that. This is what happens when i try to flash a stock 8.1.0 rom.
Spoiler: When I try to flash stock 8.1.0
getvar:max-sparse-size FAILED (remote failure)
finished. total time: 0.006s
... FAILED (remote failure)
finished. total time: 0.136s
sending 'partition' (45 KB)... OKAY [ 0.174s]
writing 'partition'... INFOValidating 'gpt.default.xml'
INFOSecurity version downgrade
INFOImage primary_gpt failed validation
INFOPreflash validation failed
INFOCancelling 'gpt.default.xml'
FAILED (remote failure)
finished. total time: 0.250s
sending 'bootloader' (5179 KB)... OKAY [ 0.638s]
writing 'bootloader'... INFOValidating 'bootloader.default.xml'
INFOInvalid partition name aboot
INFOInvalid partition name rpm
INFOInvalid partition name tz
INFOInvalid partition name devcfg
INFOInvalid partition name cmnlib
INFOInvalid partition name cmnlib64
INFOInvalid partition name keymaster
INFOInvalid partition name prov
INFOInvalid partition name sbl1
INFOCancelling 'bootloader.default.xml'
FAILED (remote failure)
finished. total time: 0.740s
sending 'modem' (67934 KB)... OKAY [ 6.418s]
writing 'modem'... INFOInvalid partition name modem
FAILED (remote failure)
finished. total time: 6.431s
sending 'fsg' (3560 KB)... OKAY [ 0.479s]
writing 'fsg'... INFOInvalid partition name fsg
FAILED (remote failure)
finished. total time: 0.497s
sending 'dsp' (16384 KB)... OKAY [ 1.674s]
writing 'dsp'... INFOInvalid partition name dsp
FAILED (remote failure)
finished. total time: 1.681s
sending 'logo' (2195 KB)... OKAY [ 0.363s]
writing 'logo'... INFOInvalid partition name logo
FAILED (remote failure)
finished. total time: 0.380s
sending 'boot' (16384 KB)... OKAY [ 1.678s]
writing 'boot'... INFOInvalid partition name boot
FAILED (remote failure)
finished. total time: 1.695s
sending 'recovery' (16484 KB)... OKAY [ 1.689s]
writing 'recovery'... INFOInvalid partition name recovery
FAILED (remote failure)
finished. total time: 1.702s
sending 'system' (256294 KB)... OKAY [ 23.090s]
writing 'system'... INFOInvalid partition name system
FAILED (remote failure)
finished. total time: 23.106s
sending 'system' (256762 KB)... OKAY [ 24.051s]
writing 'system'... INFOInvalid partition name system
FAILED (remote failure)
finished. total time: 24.059s
sending 'system' (255764 KB)... OKAY [ 22.857s]
writing 'system'... INFOInvalid partition name system
FAILED (remote failure)
finished. total time: 22.873s
sending 'system' (260630 KB)... OKAY [ 24.257s]
writing 'system'... INFOInvalid partition name system
FAILED (remote failure)
finished. total time: 24.269s
sending 'system' (257441 KB)... OKAY [ 22.475s]
writing 'system'... INFOInvalid partition name system
FAILED (remote failure)
finished. total time: 22.491s
sending 'system' (246125 KB)... OKAY [ 22.857s]
writing 'system'... INFOInvalid partition name system
FAILED (remote failure)
finished. total time: 22.861s
sending 'system' (258569 KB)... OKAY [ 22.753s]
writing 'system'... INFOInvalid partition name system
FAILED (remote failure)
finished. total time: 22.770s
sending 'system' (251493 KB)... OKAY [ 23.562s]
writing 'system'... INFOInvalid partition name system
FAILED (remote failure)
finished. total time: 23.571s
sending 'system' (257925 KB)... OKAY [ 23.966s]
writing 'system'... INFOInvalid partition name system
FAILED (remote failure)
finished. total time: 23.982s
sending 'system' (213764 KB)... OKAY [ 19.225s]
writing 'system'... INFOInvalid partition name system
FAILED (remote failure)
finished. total time: 19.241s
sending 'oem' (257482 KB)... OKAY [ 23.949s]
writing 'oem'... INFOInvalid partition name oem
FAILED (remote failure)
finished. total time: 23.965s
erasing 'modemst1'... INFOPermission denied
FAILED (remote failure)
finished. total time: 0.108s
erasing 'modemst2'... INFOPermission denied
FAILED (remote failure)
finished. total time: 0.155s
erasing 'cache'... INFOPermission denied
FAILED (remote failure)
finished. total time: 0.156s
erasing 'userdata'... INFOPermission denied
FAILED (remote failure)
finished. total time: 0.146s
erasing 'DDR'... INFOPermission denied
FAILED (remote failure)
finished. total time: 0.155s
sending 'fsg' (3560 KB)... OKAY [ 0.480s]
writing 'fsg'... INFOInvalid partition name fsg
FAILED (remote failure)
finished. total time: 0.497s
... FAILED (remote failure)
finished. total time: 0.136s
Another thing is that my bootloader is now locked and i can't get it to unlock because I don't have an OS installed to goto developer's options and activate the unlock oem. This is what happens when I try to unlock the bootloader.
Spoiler: When I try to unlock bootloader
C:\Users\Dox\Downloads\MONTANA_OPP28.65-37-7_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot oem
unlock 6FQIJANR**********
... INFOWARNING: This command erases all user data.
INFOPlease re-run this command to continue.
OKAY [ 0.003s]
finished. total time: 0.003s
C:\Users\Dox\Downloads\MONTANA_OPP28.65-37-7_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot oem
unlock 6FQIJANR***********
... INFOCheck 'Allow OEM Unlock' in Android Settings > Developer
INFOOptions
OKAY [ 0.012s]
finished. total time: 0.013s
I also tried to boot to twrp and I can't do it.
Spoiler: Trying to boot to recovery
C:\Users\Dox\Downloads\MONTANA_OPP28.65-37-7_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot boot
twrp-3.6.1_9-0-montana.img
downloading 'boot.img'... OKAY [ 1.582s]
booting... INFOpermission denied!
FAILED (remote failure)
finished. total time: 1.586s
I've tried to flash only the partition with no luck.
Spoiler: Trying to flash partition
C:\Users\Dox\Downloads\MONTANA_OPP28.65-37-7_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot flas
h partition gpt.bin
sending 'partition' (45 KB)... OKAY [ 0.006s]
writing 'partition'... INFOValidating 'gpt.default.xml'
INFOSecurity version downgrade
INFOImage primary_gpt failed validation
INFOPreflash validation failed
INFOCancelling 'gpt.default.xml'
FAILED (remote failure)
finished. total time: 0.067s
So I'm in need of help I really don't know how to proceed I've searched a lot, basically all day today. I was wondering if I did the SD card method that I was supposed to do when I hard bricked it if it will work.
OKAY I GOT THIS WORKING
Basically I had to find an newer version of security patch to flash my partitions so I tried many gpt.bin till i found one that went through. Here's the logs for anyone with the same problem.
Spoiler: Successful Logs
C:\\Users\\Dox\\Downloads\\www.stockrom.net_MONTANA_OPPS28.65-37-7-11_cid50_subsidy-DEFAULT_regulatory_NO_ERASE
_CFC.xml>fastboot flash partition gpt.bin
target reported max download size of 535822336 bytes
sending 'partition' (45 KB)...
OKAY [ 0.021s]
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.107s]
finished. total time: 0.131s
C:\\Users\\Dox\\Downloads\\www.stockrom.net_MONTANA_OPPS28.65-37-7-11_cid50_subsidy-DEFAULT_regulatory_NO_ERASE
_CFC.xml>flashfile.bat
C:\\Users\\Dox\\Downloads\\www.stockrom.net_MONTANA_OPPS28.65-37-7-11_cid50_subsidy-DEFAULT_regulatory_NO_ERASE
_CFC.xml>echo off
max-sparse-size: 268435456
finished. total time: 0.002s
...
OKAY [ 0.002s]
finished. total time: 0.003s
target reported max download size of 535822336 bytes
sending 'partition' (45 KB)...
OKAY [ 0.030s]
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.103s]
finished. total time: 0.135s
target reported max download size of 535822336 bytes
sending 'bootloader' (5179 KB)...
OKAY [ 0.190s]
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.536s]
finished. total time: 0.730s
target reported max download size of 535822336 bytes
sending 'modem' (67978 KB)...
OKAY [ 2.169s]
writing 'modem'...
OKAY [ 1.078s]
finished. total time: 3.251s
target reported max download size of 535822336 bytes
sending 'fsg' (3560 KB)...
OKAY [ 0.138s]
writing 'fsg'...
OKAY [ 0.138s]
finished. total time: 0.278s
target reported max download size of 535822336 bytes
sending 'dsp' (16384 KB)...
OKAY [ 0.537s]
writing 'dsp'...
OKAY [ 0.298s]
finished. total time: 0.837s
target reported max download size of 535822336 bytes
sending 'logo' (2195 KB)...
OKAY [ 0.095s]
writing 'logo'...
OKAY [ 0.115s]
finished. total time: 0.212s
target reported max download size of 535822336 bytes
sending 'boot' (16384 KB)...
OKAY [ 0.546s]
writing 'boot'...
(bootloader) Image signed with key bad key
OKAY [ 0.390s]
finished. total time: 0.938s
target reported max download size of 535822336 bytes
sending 'recovery' (16484 KB)...
OKAY [ 0.543s]
writing 'recovery'...
(bootloader) Image signed with key bad key
OKAY [ 0.428s]
finished. total time: 0.976s
target reported max download size of 535822336 bytes
sending 'system' (256294 KB)...
OKAY [ 8.163s]
writing 'system'...
OKAY [ 4.188s]
finished. total time: 12.354s
target reported max download size of 535822336 bytes
sending 'system' (256762 KB)...
OKAY [ 8.183s]
writing 'system'...
OKAY [ 3.305s]
finished. total time: 11.494s
target reported max download size of 535822336 bytes
sending 'system' (255764 KB)...
OKAY [ 8.305s]
writing 'system'...
OKAY [ 3.544s]
finished. total time: 11.851s
target reported max download size of 535822336 bytes
sending 'system' (260630 KB)...
OKAY [ 8.460s]
writing 'system'...
OKAY [ 3.410s]
finished. total time: 11.873s
target reported max download size of 535822336 bytes
sending 'system' (257521 KB)...
OKAY [ 8.251s]
writing 'system'...
OKAY [ 3.361s]
finished. total time: 11.618s
target reported max download size of 535822336 bytes
sending 'system' (245941 KB)...
OKAY [ 7.905s]
writing 'system'...
OKAY [ 3.184s]
finished. total time: 11.093s
target reported max download size of 535822336 bytes
sending 'system' (258569 KB)...
OKAY [ 8.360s]
writing 'system'...
OKAY [ 3.238s]
finished. total time: 11.602s
target reported max download size of 535822336 bytes
sending 'system' (251493 KB)...
OKAY [ 8.189s]
writing 'system'...
OKAY [ 3.692s]
finished. total time: 11.885s
target reported max download size of 535822336 bytes
sending 'system' (257933 KB)...
OKAY [ 8.473s]
writing 'system'...
OKAY [ 3.742s]
finished. total time: 12.219s
target reported max download size of 535822336 bytes
sending 'system' (214096 KB)...
OKAY [ 7.047s]
writing 'system'...
OKAY [ 2.682s]
finished. total time: 9.732s
target reported max download size of 535822336 bytes
sending 'oem' (247426 KB)...
OKAY [ 8.158s]
writing 'oem'...
OKAY [ 3.280s]
finished. total time: 11.442s
erasing 'cache'...
OKAY [ 0.028s]
finished. total time: 0.029s
erasing 'userdata'...
OKAY [ 0.146s]
finished. total time: 0.147s
erasing 'DDR'...
OKAY [ 0.016s]
finished. total time: 0.018s
target reported max download size of 535822336 bytes
sending 'fsg' (3560 KB)...
OKAY [ 0.145s]
writing 'fsg'...
OKAY [ 0.128s]
finished. total time: 0.276s
...
OKAY [ 0.002s]
finished. total time: 0.003s
It's crazy I almost thought I had lost my phone.
So I imagine there's a lot of people looking for a way to fix this. So here are the link of the files I used.
Blankflash file that works on moto g5s xt1792:
blankflash working for xt1792 moto g5s
Here's the stock rom to use so everything comes back to normal:
Rom that will work after blankflash
And here are the command files .bat:
flashing commands .bat

Doxmey said:
So I recently bricked my moto g5s xt1792 trying to downgrade to stock 7.0. So I found a blankflash that worked after many many hours looking for one, now that I'm able to send fastboot commands seems that all my partitions are gone or something like that. This is what happens when i try to flash a stock 8.1.0 rom.
Spoiler: When I try to flash stock 8.1.0
getvar:max-sparse-size FAILED (remote failure)
finished. total time: 0.006s
... FAILED (remote failure)
finished. total time: 0.136s
sending 'partition' (45 KB)... OKAY [ 0.174s]
writing 'partition'... INFOValidating 'gpt.default.xml'
INFOSecurity version downgrade
INFOImage primary_gpt failed validation
INFOPreflash validation failed
INFOCancelling 'gpt.default.xml'
FAILED (remote failure)
finished. total time: 0.250s
sending 'bootloader' (5179 KB)... OKAY [ 0.638s]
writing 'bootloader'... INFOValidating 'bootloader.default.xml'
INFOInvalid partition name aboot
INFOInvalid partition name rpm
INFOInvalid partition name tz
INFOInvalid partition name devcfg
INFOInvalid partition name cmnlib
INFOInvalid partition name cmnlib64
INFOInvalid partition name keymaster
INFOInvalid partition name prov
INFOInvalid partition name sbl1
INFOCancelling 'bootloader.default.xml'
FAILED (remote failure)
finished. total time: 0.740s
sending 'modem' (67934 KB)... OKAY [ 6.418s]
writing 'modem'... INFOInvalid partition name modem
FAILED (remote failure)
finished. total time: 6.431s
sending 'fsg' (3560 KB)... OKAY [ 0.479s]
writing 'fsg'... INFOInvalid partition name fsg
FAILED (remote failure)
finished. total time: 0.497s
sending 'dsp' (16384 KB)... OKAY [ 1.674s]
writing 'dsp'... INFOInvalid partition name dsp
FAILED (remote failure)
finished. total time: 1.681s
sending 'logo' (2195 KB)... OKAY [ 0.363s]
writing 'logo'... INFOInvalid partition name logo
FAILED (remote failure)
finished. total time: 0.380s
sending 'boot' (16384 KB)... OKAY [ 1.678s]
writing 'boot'... INFOInvalid partition name boot
FAILED (remote failure)
finished. total time: 1.695s
Spoiler: When I try to flash stock 8.1.0
sending 'recovery' (16484 KB)... OKAY [ 1.689s]
writing 'recovery'... INFOInvalid partition name recovery
FAILED (remote failure)
finished. total time: 1.702s
sending 'system' (256294 KB)... OKAY [ 23.090s]
writing 'system'... INFOInvalid partition name system
FAILED (remote failure)
finished. total time: 23.106s
sending 'system' (256762 KB)... OKAY [ 24.051s]
writing 'system'... INFOInvalid partition name system
FAILED (remote failure)
finished. total time: 24.059s
sending 'system' (255764 KB)... OKAY [ 22.857s]
writing 'system'... INFOInvalid partition name system
FAILED (remote failure)
finished. total time: 22.873s
sending 'system' (260630 KB)... OKAY [ 24.257s]
writing 'system'... INFOInvalid partition name system
FAILED (remote failure)
finished. total time: 24.269s
sending 'system' (257441 KB)... OKAY [ 22.475s]
writing 'system'... INFOInvalid partition name system
FAILED (remote failure)
finished. total time: 22.491s
sending 'system' (246125 KB)... OKAY [ 22.857s]
writing 'system'... INFOInvalid partition name system
FAILED (remote failure)
finished. total time: 22.861s
sending 'system' (258569 KB)... OKAY [ 22.753s]
writing 'system'... INFOInvalid partition name system
FAILED (remote failure)
finished. total time: 22.770s
sending 'system' (251493 KB)... OKAY [ 23.562s]
writing 'system'... INFOInvalid partition name system
FAILED (remote failure)
finished. total time: 23.571s
sending 'system' (257925 KB)... OKAY [ 23.966s]
writing 'system'... INFOInvalid partition name system
FAILED (remote failure)
finished. total time: 23.982s
sending 'system' (213764 KB)... OKAY [ 19.225s]
writing 'system'... INFOInvalid partition name system
FAILED (remote failure)
finished. total time: 19.241s
sending 'oem' (257482 KB)... OKAY [ 23.949s]
writing 'oem'... INFOInvalid partition name oem
FAILED (remote failure)
finished. total time: 23.965s
erasing 'modemst1'... INFOPermission denied
FAILED (remote failure)
finished. total time: 0.108s
erasing 'modemst2'... INFOPermission denied
FAILED (remote failure)
finished. total time: 0.155s
erasing 'cache'... INFOPermission denied
FAILED (remote failure)
finished. total time: 0.156s
erasing 'userdata'... INFOPermission denied
FAILED (remote failure)
finished. total time: 0.146s
erasing 'DDR'... INFOPermission denied
FAILED (remote failure)
finished. total time: 0.155s
sending 'fsg' (3560 KB)... OKAY [ 0.480s]
writing 'fsg'... INFOInvalid partition name fsg
FAILED (remote failure)
finished. total time: 0.497s
... FAILED (remote failure)
finished. total time: 0.136s
Another thing is that my bootloader is now locked and i can't get it to unlock because I don't have an OS installed to goto developer's options and activate the unlock oem. This is what happens when I try to unlock the bootloader.
Spoiler: When I try to unlock bootloader
C:\Users\Dox\Downloads\MONTANA_OPP28.65-37-7_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot oem
unlock 6FQIJANR**********
... INFOWARNING: This command erases all user data.
INFOPlease re-run this command to continue.
OKAY [ 0.003s]
finished. total time: 0.003s
C:\Users\Dox\Downloads\MONTANA_OPP28.65-37-7_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot oem
unlock 6FQIJANR***********
... INFOCheck 'Allow OEM Unlock' in Android Settings > Developer
INFOOptions
OKAY [ 0.012s]
finished. total time: 0.013s
I also tried to boot to twrp and I can't do it.
Spoiler: Trying to boot to recovery
C:\Users\Dox\Downloads\MONTANA_OPP28.65-37-7_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot boot
Spoiler: Trying to boot to recovery
twrp-3.6.1_9-0-montana.img
downloading 'boot.img'... OKAY [ 1.582s]
booting... INFOpermission denied!
FAILED (remote failure)
finished. total time: 1.586s
I've tried to flash only the partition with no luck.
Spoiler: Trying to flash partition
C:\Users\Dox\Downloads\MONTANA_OPP28.65-37-7_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot flas
h partition gpt.bin
sending 'partition' (45 KB)... OKAY [ 0.006s]
writing 'partition'... INFOValidating 'gpt.default.xml'
INFOSecurity version downgrade
INFOImage primary_gpt failed validation
INFOPreflash validation failed
INFOCancelling 'gpt.default.xml'
FAILED (remote failure)
finished. total time: 0.067s
So I'm in need of help I really don't know how to proceed I've searched a lot, basically all day today. I was wondering if I did the SD card method that I was supposed to do when I hard bricked it if it will work.
OKAY I GOT THIS WORKING
Basically I had to find an newer version of security patch to flash my partitions so I tried many gpt.bin till i found one that went through. Here's the logs for anyone with the same problem.
Spoiler: Successful Logs
C:\\Users\\Dox\\Downloads\\www.stockrom.net_MONTANA_OPPS28.65-37-7-11_cid50_subsidy-DEFAULT_regulatory_NO_ERASE
_CFC.xml>fastboot flash partition gpt.bin
target reported max download size of 535822336 bytes
sending 'partition' (45 KB)...
OKAY [ 0.021s]
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.107s]
finished. total time: 0.131s
C:\\Users\\Dox\\Downloads\\www.stockrom.net_MONTANA_OPPS28.65-37-7-11_cid50_subsidy-DEFAULT_regulatory_NO_ERASE
_CFC.xml>flashfile.bat
C:\\Users\\Dox\\Downloads\\www.stockrom.net_MONTANA_OPPS28.65-37-7-11_cid50_subsidy-DEFAULT_regulatory_NO_ERASE
_CFC.xml>echo off
max-sparse-size: 268435456
finished. total time: 0.002s
...
OKAY [ 0.002s]
finished. total time: 0.003s
target reported max download size of 535822336 bytes
sending 'partition' (45 KB)...
OKAY [ 0.030s]
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.103s]
finished. total time: 0.135s
target reported max download size of 535822336 bytes
sending 'bootloader' (5179 KB)...
OKAY [ 0.190s]
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.536s]
finished. total time: 0.730s
target reported max download size of 535822336 bytes
sending 'modem' (67978 KB)...
OKAY [ 2.169s]
writing 'modem'...
OKAY [ 1.078s]
finished. total time: 3.251s
target reported max download size of 535822336 bytes
sending 'fsg' (3560 KB)...
OKAY [ 0.138s]
writing 'fsg'...
OKAY [ 0.138s]
finished. total time: 0.278s
target reported max download size of 535822336 bytes
sending 'dsp' (16384 KB)...
OKAY [ 0.537s]
writing 'dsp'...
OKAY [ 0.298s]
finished. total time: 0.837s
target reported max download size of 535822336 bytes
sending 'logo' (2195 KB)...
OKAY [ 0.095s]
writing 'logo'...
OKAY [ 0.115s]
finished. total time: 0.212s
target reported max download size of 535822336 bytes
sending 'boot' (16384 KB)...
OKAY [ 0.546s]
writing 'boot'...
(bootloader) Image signed with key bad key
OKAY [ 0.390s]
finished. total time: 0.938s
target reported max download size of 535822336 bytes
sending 'recovery' (16484 KB)...
OKAY [ 0.543s]
writing 'recovery'...
(bootloader) Image signed with key bad key
OKAY [ 0.428s]
finished. total time: 0.976s
target reported max download size of 535822336 bytes
sending 'system' (256294 KB)...
OKAY [ 8.163s]
writing 'system'...
OKAY [ 4.188s]
finished. total time: 12.354s
target reported max download size of 535822336 bytes
sending 'system' (256762 KB)...
OKAY [ 8.183s]
writing 'system'...
OKAY [ 3.305s]
finished. total time: 11.494s
target reported max download size of 535822336 bytes
sending 'system' (255764 KB)...
OKAY [ 8.305s]
writing 'system'...
OKAY [ 3.544s]
finished. total time: 11.851s
target reported max download size of 535822336 bytes
sending 'system' (260630 KB)...
OKAY [ 8.460s]
writing 'system'...
OKAY [ 3.410s]
finished. total time: 11.873s
target reported max download size of 535822336 bytes
sending 'system' (257521 KB)...
OKAY [ 8.251s]
writing 'system'...
OKAY [ 3.361s]
finished. total time: 11.618s
target reported max download size of 535822336 bytes
sending 'system' (245941 KB)...
OKAY [ 7.905s]
writing 'system'...
OKAY [ 3.184s]
finished. total time: 11.093s
target reported max download size of 535822336 bytes
sending 'system' (258569 KB)...
OKAY [ 8.360s]
writing 'system'...
OKAY [ 3.238s]
finished. total time: 11.602s
target reported max download size of 535822336 bytes
sending 'system' (251493 KB)...
OKAY [ 8.189s]
writing 'system'...
OKAY [ 3.692s]
finished. total time: 11.885s
target reported max download size of 535822336 bytes
sending 'system' (257933 KB)...
OKAY [ 8.473s]
writing 'system'...
OKAY [ 3.742s]
finished. total time: 12.219s
target reported max download size of 535822336 bytes
sending 'system' (214096 KB)...
OKAY [ 7.047s]
writing 'system'...
OKAY [ 2.682s]
finished. total time: 9.732s
target reported max download size of 535822336 bytes
sending 'oem' (247426 KB)...
OKAY [ 8.158s]
writing 'oem'...
OKAY [ 3.280s]
finished. total time: 11.442s
erasing 'cache'...
OKAY [ 0.028s]
finished. total time: 0.029s
erasing 'userdata'...
OKAY [ 0.146s]
finished. total time: 0.147s
erasing 'DDR'...
OKAY [ 0.016s]
finished. total time: 0.018s
target reported max download size of 535822336 bytes
sending 'fsg' (3560 KB)...
OKAY [ 0.145s]
writing 'fsg'...
OKAY [ 0.128s]
finished. total time: 0.276s
...
OKAY [ 0.002s]
finished. total time: 0.003s
It's crazy I almost thought I had lost my phone.
So I imagine there's a lot of people looking for a way to fix this. So here are the link of the files I used.
Blankflash file that works on moto g5s xt1792:
blankflash working for xt1792 moto g5s
Here's the stock rom to use so everything comes back to normal:
Rom that will work after blankflash
And here are the command files .bat:
flashing commands .bat
Click to expand...
Click to collapse
My dear, I really want to thank you for your contribution. I was about to get crazy tring to fix that mobile.

Related

Phone got bricked after accidental update on rooted phone, help?

Hi
I have had my Z2 Play for half a year, and soon after I got it I unlocked the bootloader with Motorola's official method, installed TWRP, rooted it with Magisk and installed Xposed Framework. I was on Nougat all the time and used it happily. A few months ago it started repeatedly asking me to OTA update, but I just ignored the messages. Then one day, I must have accidentally pressed something, because I think it tried to update. I got a message that the update failed or something like that.
The phone gradually got worse after that, randomly rebooting into TWRP. I could somehow get it to boot Android by going to the bootloader and chosing "factory mode" but mostly the modem would not work at all and the phone would not be usable.
Trying to solve it, I decided to flash a whole ROM, hoping to remove all of the damage done by the botchered update. Since I already had unlocked my bootloader and TWRP, I decided to just flash a custom ROM, since I did not know if flashing stock would work with TWRP. I found some of the custom ROMs here on XDA, and tried to flash them with TWRP. However, flashing would not work. I got some error code 255. I am attaching a screenshot of the error.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I tried both flashing via the adb sideload method via my Mac and via USB OTG (flash drive) but I got the same result for both.
Having seen this, I decided to try to relock the bootloader and restore stock firmware. I tried following this tutorial. However, that did not seem to work. Here is my fastboot output:
Code:
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot devices
ZY224BLVMC fastboot
Pals-MacBook-Air:platform-tools Fiksdal$ ./fasboot oem lock begin
-bash: ./fasboot: No such file or directory
Pals-MacBook-Air:platform-tools Fiksdal$ fastboot oem lock begin
-bash: fastboot: command not found
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot oem lock begin
(bootloader) WARNING: This command erases all user data.
(bootloader) Please re-run this command to continue.
OKAY [ 0.003s]
Finished. Total time: 0.005s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot oem lock begin
(bootloader) Flash valid Android images now
(bootloader) Then re-run this command to lock
OKAY [ 0.018s]
Finished. Total time: 0.018s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash partition gpt.bin
(bootloader) has-slot:partition: not found
Sending 'partition' (45 KB) OKAY [ 0.008s]
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.264s
Pals-MacBook-Air:platform-tools Fiksdal$ sudo fastboot flash partition gpt.bin
Password:
sudo: fastboot: command not found
Pals-MacBook-Air:platform-tools Fiksdal$ sudo ./fastboot flash partition gpt.bin
(bootloader) has-slot:partition: not found
Sending 'partition' (45 KB) OKAY [ 0.005s]
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.259s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash bootloader bootloader.img
(bootloader) has-slot:bootloader: not found
Sending 'bootloader' (5115 KB) OKAY [ 0.209s]
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.548s]
Finished. Total time: 0.943s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash logo logo.bin
(bootloader) has-slot:logo: not found
Sending 'logo' (2192 KB) OKAY [ 0.093s]
Writing 'logo' OKAY [ 0.066s]
Finished. Total time: 0.344s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash recovery recovery.img
(bootloader) has-slot:recovery: not found
Sending 'recovery' (20580 KB) OKAY [ 0.838s]
Writing 'recovery' (bootloader) Security version downgrade
(bootloader) Image recovery failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
Finished. Total time: 1.234s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash recovery recovery.img
(bootloader) has-slot:recovery: not found
Sending 'recovery' (20580 KB) OKAY [ 0.729s]
Writing 'recovery' (bootloader) Security version downgrade
(bootloader) Image recovery failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
Finished. Total time: 1.125s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash dsp adspso.bin
(bootloader) has-slot:dsp: not found
Sending 'dsp' (16384 KB) OKAY [ 0.667s]
Writing 'dsp' OKAY [ 0.132s]
Finished. Total time: 0.984s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash oem oem.img
(bootloader) has-slot:oem: not found
Sending 'oem' (232923 KB) OKAY [ 10.302s]
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: 10.554s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash system system.img_sparsechunk.0
(bootloader) has-slot:system: not found
Sending 'system' (517135 KB) OKAY [ 20.549s]
Writing 'system' (bootloader) Security version downgrade
(bootloader) Image s failed validation
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash system system.img_sparsechunk.1
(bootloader) has-slot:system: not found
Sending 'system' (522979 KB) OKAY [ 20.458s]
Writing 'system' (bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
Finished. Total time: 20.674s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash system system.img_sparsechunk.2
(bootloader) has-slot:system: not found
Sending 'system' (524215 KB) OKAY [ 20.487s]
Writing 'system' (bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
Finished. Total time: 20.704s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash system system.img_sparsechunk.3
(bootloader) has-slot:system: not found
Sending 'system' (521087 KB) OKAY [ 19.126s]
Writing 'system' (bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
Finished. Total time: 19.330s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash system system.img_sparsechunk.4
(bootloader) has-slot:system: not found
Sending 'system' (518083 KB) OKAY [ 19.082s]
Writing 'system' (bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
Finished. Total time: 19.295s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash system system.img_sparsechunk.5
(bootloader) has-slot:system: not found
Sending 'system' (515569 KB) OKAY [ 18.974s]
Writing 'system' (bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
Finished. Total time: 19.192s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash system system.img_sparsechunk.6
(bootloader) has-slot:system: not found
Sending 'system' (250209 KB) OKAY [ 9.380s]
Writing 'system' (bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
Finished. Total time: 9.579s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash system system.img_sparsechunk.7
(bootloader) has-slot:system: not found
fastboot: error: cannot load 'system.img_sparsechunk.7': No such file or directory
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash modem NON-HLOS.bin
(bootloader) has-slot:modem: not found
Sending 'modem' (75092 KB) OKAY [ 2.888s]
Writing 'modem' OKAY [ 1.878s]
Finished. Total time: 4.954s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot erase modemst1
(bootloader) has-slot:modemst1: not found
Erasing 'modemst1' OKAY [ 0.020s]
Finished. Total time: 0.210s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot erase modemst2
(bootloader) has-slot:modemst2: not found
Erasing 'modemst2' OKAY [ 0.020s]
Finished. Total time: 0.210s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash fsg fsg.mbn
(bootloader) has-slot:fsg: not found
Sending 'fsg' (2932 KB) OKAY [ 0.114s]
Writing 'fsg' OKAY [ 0.065s]
Finished. Total time: 0.364s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot erase cache
(bootloader) has-slot:cache: not found
Erasing 'cache' OKAY [ 0.016s]
Finished. Total time: 0.206s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot erase userdata
(bootloader) has-slot:userdata: not found
Erasing 'userdata' OKAY [ 2.252s]
Finished. Total time: 2.442s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot erase customize
(bootloader) has-slot:customize: not found
Erasing 'customize' (bootloader) Permission denied
FAILED (remote failure)
Finished. Total time: 0.194s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot erase customize
(bootloader) has-slot:customize: not found
Erasing 'customize' (bootloader) Permission denied
FAILED (remote failure)
Finished. Total time: 0.194s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot erase clogo
(bootloader) has-slot:clogo: not found
Erasing 'clogo' (bootloader) Permission denied
FAILED (remote failure)
Finished. Total time: 0.192s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot oem lock
(bootloader) Still require signed boot.img
OKAY [ 0.003s]
Finished. Total time: 0.003s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot reboot
Rebooting
Finished. Total time: 0.005s[/HTML]
This seemed to do nothing to my device. I wondered if maybe the bootloader was in some sort of locked/unlocked limbo, so I tried to unlock the bootloader again using the key I got from Moto by email. That did not work either.
Code:
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot oem unlock THECODEFORMYDEVICE
(bootloader) invalid boot state
OKAY [ 0.005s]
Finished. Total time: 0.008s
So I seem to be getting nowhere. There has to be some way to totally wipe everything, to get a fresh start? I do not care if I have to restore stock firmware, stock bootloader, whatever. I just want to be able to at least use my phone somehow. Is my device totally bricked? Is there nothing I can do?
I used adb and fastboot on macOS High Sierra.
1) What custom ROM are you trying to flash? That TWRP error 255 suggests you're trying to flash a 64 bit custom ROM onto your device whilst you have a 32 bit TWRP. I'd try finding a 32 bit custom ROM and flash that, or try to update your TWRP to 64 bit and try again with the custom ROM you've downloaded.
2) Looking at your fastboot flash log, your bootloader appears to be 'locked' from the initial OEM lock command, but as you've tried to flash a stock ROM older than the firmware you had on your device, your device bootloader rejected the flash (security version downgrade and pre-flash validation errors point to using a much older firmware than what you had on your device).
Can I ask why you wanted to re-lock your bootloader? As far as I understand, you don't have to lock the bootloader to revert back to stock in most cases...
I'm not familiar with Z2 Play firmwares, though rahulsnair has uploaded the Oreo June 2018 security patch firmware here: https://forum.xda-developers.com/z2-play/how-to/fastboot-rom-albusretail8-0-0opss27-76-t3822195 If you can confirm that this firmware has been released to your device variant/software channel, I'd suggest downloading that firmware, and delete the old firmware you have. Extract the newer firmware to your ADB directory and try to flash again.
If that doesn't work, you may have to consider submitting your device to a service centre (unless someone else has suggestions?).
echo92 said:
1) What custom ROM are you trying to flash? That TWRP error 255 suggests you're trying to flash a 64 bit custom ROM onto your device whilst you have a 32 bit TWRP. I'd try finding a 32 bit custom ROM and flash that, or try to update your TWRP to 64 bit and try again with the custom ROM you've downloaded.
2) Looking at your fastboot flash log, your bootloader appears to be 'locked' from the initial OEM lock command, but as you've tried to flash a stock ROM older than the firmware you had on your device, your device bootloader rejected the flash (security version downgrade and pre-flash validation errors point to using a much older firmware than what you had on your device).
Can I ask why you wanted to re-lock your bootloader? As far as I understand, you don't have to lock the bootloader to revert back to stock in most cases...
I'm not familiar with Z2 Play firmwares, though rahulsnair has uploaded the Oreo June 2018 security patch firmware here: https://forum.xda-developers.com/z2-play/how-to/fastboot-rom-albusretail8-0-0opss27-76-t3822195 If you can confirm that this firmware has been released to your device variant/software channel, I'd suggest downloading that firmware, and delete the old firmware you have. Extract the newer firmware to your ADB directory and try to flash again.
If that doesn't work, you may have to consider submitting your device to a service centre (unless someone else has suggestions?).
Click to expand...
Click to collapse
Whoah, thank you! I got it to boot!
I flashed the Oreo firmware that you linked me to using the method the post supplied. (I also ran
Code:
./fastboot oem unlock
first).
After that, when I tried rebooting the phone, I saw (for less than one second) some icon with an Android laying down., then the screen went totally black without any further progress.
I then held down power and volume down to boot into bootloader, then I chose "FACTORY MODE". It then booted Oreo! There was some "encrypting your device message", and then it continued booting Oreo.
However, I still could connect to no cellular networks. It could have something to do with the fact that I am in "FACTORY MODE"? I put my two sims in there, but they both do not connect to anything at all. Although the phone can read the name of their operator. I seem to recall that I could indeed connect to cellular networks in "FACTORY MODE" before, so I am not sure.
I tried rebooting the phone again and it now got stuck in this screen with the Android laying down. It says "No command." This time the image persisted for longer before the screen got stuck. Then it went black for a while, while the "device is unlocked" warning screen came back, and now the Android laying down again. It seems to loop like this. I can only get it to boot Android "normally" by going through the bootloader and chosing factory mode. That would be fine, except I do not have cellular connectivity, only WiFi. Seems strange to me, as I did restore the whole firmware, which should include the modem driver, right? Maybe I flashed the wrong region firmware or something? However, this exact problem was there even before I flashed any firmware at all. It was in the beginning, after the accidental update. The phone would not boot properly, and I had to use factory mode. Then also, the phone woud boot, but had no cellular connectivity, exactly like this now.
In case it helps, I am posting my fastboot output
Code:
Pals-MacBook-Air:~ Fiksdal$ cd Downloads/platform-tools
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot devices
ZY224BLVMC fastboot
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot oem fb_mode_set
OKAY [ 0.005s]
Finished. Total time: 0.008s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash partition gpt.bin
(bootloader) has-slot:partition: not found
Sending 'partition' (45 KB) OKAY [ 0.008s]
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.160s]
Finished. Total time: 0.189s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash bootloader bootloader.img
(bootloader) has-slot:bootloader: not found
Sending 'bootloader' (5115 KB) OKAY [ 0.248s]
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.578s]
Finished. Total time: 0.847s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash modem NON-HLOS.bin
(bootloader) has-slot:modem: not found
Sending 'modem' (71565 KB) OKAY [ 3.333s]
Writing 'modem' OKAY [ 0.474s]
Finished. Total time: 3.824s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash fsg fsg.mbn
(bootloader) has-slot:fsg: not found
Sending 'fsg' (4020 KB) OKAY [ 0.200s]
Writing 'fsg' OKAY [ 0.069s]
Finished. Total time: 0.287s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot erase modemst1
(bootloader) has-slot:modemst1: not found
Erasing 'modemst1' OKAY [ 0.020s]
Finished. Total time: 0.042s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot erase modemst2
(bootloader) has-slot:modemst2: not found
Erasing 'modemst2' OKAY [ 0.020s]
Finished. Total time: 0.043s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash dsp adspso.bin
(bootloader) has-slot:dsp: not found
Sending 'dsp' (16384 KB) OKAY [ 0.825s]
Writing 'dsp' OKAY [ 0.138s]
Finished. Total time: 0.981s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash logo logo.bin
(bootloader) has-slot:logo: not found
Sending 'logo' (2192 KB) OKAY [ 0.111s]
Writing 'logo' OKAY [ 0.065s]
Finished. Total time: 0.193s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash boot boot.img
(bootloader) has-slot:boot: not found
Sending 'boot' (16384 KB) OKAY [ 0.810s]
Writing 'boot' (bootloader) Image signed with key bad key
OKAY [ 0.280s]
Finished. Total time: 1.107s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash recovery recovery.img
(bootloader) has-slot:recovery: not found
Sending 'recovery' (20580 KB) OKAY [ 1.036s]
Writing 'recovery' (bootloader) Image signed with key bad key
OKAY [ 0.342s]
Finished. Total time: 1.396s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash system system.img_sparsechunk.0
(bootloader) has-slot:system: not found
Sending 'system' (262141 KB) OKAY [ 12.459s]
Writing 'system' OKAY [ 1.390s]
Finished. Total time: 13.866s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash system system.img_sparsechunk.1
(bootloader) has-slot:system: not found
Sending 'system' (255693 KB) OKAY [ 12.038s]
Writing 'system' OKAY [ 1.319s]
Finished. Total time: 13.375s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash system system.img_sparsechunk.2
(bootloader) has-slot:system: not found
Sending 'system' (243069 KB) OKAY [ 11.486s]
Writing 'system' OKAY [ 1.386s]
Finished. Total time: 12.891s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash system system.img_sparsechunk.3
(bootloader) has-slot:system: not found
Sending 'system' (260338 KB) OKAY [ 12.294s]
Writing 'system' OKAY [ 1.982s]
Finished. Total time: 14.294s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash system system.img_sparsechunk.4
(bootloader) has-slot:system: not found
Sending 'system' (260451 KB) OKAY [ 12.350s]
Writing 'system' OKAY [ 1.436s]
Finished. Total time: 13.804s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash system system.img_sparsechunk.5
(bootloader) has-slot:system: not found
Sending 'system' (242833 KB) OKAY [ 11.667s]
Writing 'system' OKAY [ 1.249s]
Finished. Total time: 12.934s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash system system.img_sparsechunk.6
(bootloader) has-slot:system: not found
Sending 'system' (262140 KB) OKAY [ 12.659s]
Writing 'system' OKAY [ 1.301s]
Finished. Total time: 13.978s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash system system.img_sparsechunk.7
(bootloader) has-slot:system: not found
Sending 'system' (262141 KB) OKAY [ 12.531s]
Writing 'system' OKAY [ 1.479s]
Finished. Total time: 14.027s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash system system.img_sparsechunk.8
(bootloader) has-slot:system: not found
Sending 'system' (262142 KB) OKAY [ 12.492s]
Writing 'system' OKAY [ 1.586s]
Finished. Total time: 14.096s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash system system.img_sparsechunk.9
(bootloader) has-slot:system: not found
Sending 'system' (262141 KB) OKAY [ 12.641s]
Writing 'system' OKAY [ 1.326s]
Finished. Total time: 13.985s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash system system.img_sparsechunk.10
(bootloader) has-slot:system: not found
Sending 'system' (239064 KB) OKAY [ 11.553s]
Writing 'system' OKAY [ 1.200s]
Finished. Total time: 12.771s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash system system.img_sparsechunk.11
(bootloader) has-slot:system: not found
Sending 'system' (45248 KB) OKAY [ 2.014s]
Writing 'system' OKAY [ 0.265s]
Finished. Total time: 2.297s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot flash oem oem.img
(bootloader) has-slot:oem: not found
Sending 'oem' (155105 KB) OKAY [ 7.322s]
Writing 'oem' OKAY [ 0.869s]
Finished. Total time: 8.207s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot erase carrier
(bootloader) has-slot:carrier: not found
Erasing 'carrier' OKAY [ 0.041s]
Finished. Total time: 0.063s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot erase DDR
(bootloader) has-slot:DDR: not found
Erasing 'DDR' OKAY [ 0.007s]
Finished. Total time: 0.028s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot erase userdata
(bootloader) has-slot:userdata: not found
Erasing 'userdata' OKAY [ 0.073s]
Finished. Total time: 0.096s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot erase cache
(bootloader) has-slot:cache: not found
Erasing 'cache' OKAY [ 0.015s]
Finished. Total time: 0.037s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot oem fb_mode_clear
OKAY [ 0.005s]
Finished. Total time: 0.005s
Pals-MacBook-Air:platform-tools Fiksdal$ ./fastboot reboot
Rebooting
Finished. Total time: 0.005s
Fiksdal said:
Hi
I have had my Z2 Play for half a year, and soon after I got it I unlocked the bootloader with Motorola's official method, installed TWRP, rooted it with Magisk and installed Xposed Framework. I was on Nougat all the time and used it happily. A few months ago it started repeatedly asking me to OTA update, but I just ignored the messages. Then one day, I must have accidentally pressed something, because I think it tried to update. I got a message that the update failed or something like that.
The phone gradually got worse after that, randomly rebooting into TWRP. I could somehow get it to boot Android by going to the bootloader and chosing "factory mode" but mostly the modem would not work at all and the phone would not be usable.
Trying to solve it, I decided to flash a whole ROM, hoping to remove all of the damage done by the botchered update. Since I already had unlocked my bootloader and TWRP, I decided to just flash a custom ROM, since I did not know if flashing stock would work with TWRP. I found some of the custom ROMs here on XDA, and tried to flash them with TWRP. However, flashing would not work. I got some error code 255. I am attaching a screenshot of the error.
I tried both flashing via the adb sideload method via my Mac and via USB OTG (flash drive) but I got the same result for both.
Having seen this, I decided to try to relock the bootloader and restore stock firmware. I tried following this tutorial. However, that did not seem to work. Here is my fastboot output:
This seemed to do nothing to my device. I wondered if maybe the bootloader was in some sort of locked/unlocked limbo, so I tried to unlock the bootloader again using the key I got from Moto by email. That did not work either.
So I seem to be getting nowhere. There has to be some way to totally wipe everything, to get a fresh start? I do not care if I have to restore stock firmware, stock bootloader, whatever. I just want to be able to at least use my phone somehow. Is my device totally bricked? Is there nothing I can do?
I used adb and fastboot on macOS High Sierra.
Click to expand...
Click to collapse
I can't unlock the bootloader of my z2 play:crying:....... please tell me the process:crying:........

Having an issue flashing anything through fastboot

This is what I get with the flash all for the sprint variant.
C:\Users\Justin.DESKTOP-1V2F2T9\Downloads\FlashAllUtils>fastboot oem fb_mode_set
< waiting for device >
...
FAILED (command write failed (No such file or directory))
finished. total time: 0.012s
C:\Users\Justin.DESKTOP-1V2F2T9\Downloads\FlashAllUtils>fastboot getvar max-sparse-size
< waiting for device >
max-sparse-size: 268435456
finished. total time: 0.002s
C:\Users\Justin.DESKTOP-1V2F2T9\Downloads\FlashAllUtils>fastboot flash partition gpt.bin
target reported max download size of 536870912 bytes
sending 'partition' (206 KB)...
OKAY [ 0.007s]
writing 'partition'...
(bootloader) Validating 'gpt.default.xml'
(bootloader) Committing 'gpt.default.xml'
(bootloader) - flashing 'gpt_main0.bin' to 'partition:0'
(bootloader) - flashing 'gpt_main1.bin' to 'partition:1'
(bootloader) - flashing 'gpt_main2.bin' to 'partition:2'
(bootloader) - flashing 'gpt_main3.bin' to 'partition:3'
(bootloader) - flashing 'gpt_main4.bin' to 'partition:4'
(bootloader) - flashing 'gpt_main5.bin' to 'partition:5'
OKAY [ 0.214s]
finished. total time: 0.223s
C:\Users\Justin.DESKTOP-1V2F2T9\Downloads\FlashAllUtils>fastboot flash bootloader bootloader.img
target reported max download size of 536870912 bytes
sending 'bootloader' (9884 KB)...
OKAY [ 0.277s]
writing 'bootloader'...
(bootloader) Validating 'bootloader.default.xml'
(bootloader) Committing 'bootloader.default.xml'
(bootloader) - flashing 'xbl.elf' to 'xbl'
(bootloader) - flashing 'cmnlib.mbn' to 'cmnlib'
(bootloader) - flashing 'cmnlib64.mbn' to 'cmnlib64'
(bootloader) - flashing 'abl.elf' to 'abl'
(bootloader) - flashing 'keymaster.mbn' to 'keymaster'
(bootloader) - flashing 'rpm.mbn' to 'rpm'
(bootloader) - flashing 'pmic.elf' to 'pmic'
(bootloader) - flashing 'hyp.mbn' to 'hyp'
(bootloader) - flashing 'tz.mbn' to 'tz'
(bootloader) - flashing 'devcfg.mbn' to 'devcfg'
(bootloader) - flashing 'storsec.mbn' to 'storsec'
(bootloader) - flashing 'prov64.mbn' to 'prov'
OKAY [ 0.197s]
finished. total time: 0.476s
C:\Users\Justin.DESKTOP-1V2F2T9\Downloads\FlashAllUtils>fastboot flash modem NON-HLOS.bin
target reported max download size of 536870912 bytes
sending 'modem' (97383 KB)...
FAILED (remote: unknown command)
finished. total time: 0.004s
C:\Users\Justin.DESKTOP-1V2F2T9\Downloads\FlashAllUtils>fastboot flash fsg fsg.mbn
(bootloader) partition-: not found
sending 'fsg' (5596 KB)...
(bootloader) Requested download size is more than max allowed
FAILED (remote failure)
finished. total time: 0.006s
C:\Users\Justin.DESKTOP-1V2F2T9\Downloads\FlashAllUtils>fastboot erase modemst1
erasing 'modemst1'...
(bootloader) Invalid partition name modemst1on-
FAILED (remote failure)
finished. total time: 0.005s
C:\Users\Justin.DESKTOP-1V2F2T9\Downloads\FlashAllUtils>fastboot erase modemst2
erasing 'modemst2'...
OKAY [ 0.011s]
finished. total time: 0.012s
C:\Users\Justin.DESKTOP-1V2F2T9\Downloads\FlashAllUtils>fastboot flash bluetooth BTFM.bin
(bootloader) max-dow: not found
sending 'bluetooth' (4496 KB)...
(bootloader) Requested download size is more than max allowed
FAILED (remote failure)
finished. total time: 0.017s
C:\Users\Justin.DESKTOP-1V2F2T9\Downloads\FlashAllUtils>fastboot flash dsp adspso.bin
sending 'dsp' (16384 KB)...
FAILED (status read failed (Too many links))
finished. total time: 33.208s
C:\Users\Justin.DESKTOP-1V2F2T9\Downloads\FlashAllUtils>fastboot flash logo logo.bin
sending 'logo' (3524 KB)...
FAILED (command write failed (Invalid argument))
finished. total time: 0.006s
C:\Users\Justin.DESKTOP-1V2F2T9\Downloads\FlashAllUtils>fastboot flash boot boot.img
< waiting for device >
target reported max download size of 536870912 bytes
sending 'boot' (23357 KB)...
I dont have a phone at all right now cause I cant flash anything. Having the same issue with my LG V30+
What inside your folder "FashAllUtils"?
List the detail with the file size.
I will as soon as I get home. At work right now.
Ok now its saying the bootloader is locked and it wont unlock. Im pretty sure its hardbricked. I am in bootloader though so maybe its still recoverable

Moto G5 Plus totally dead, stuck on AP Fastboot Flash Mode (Secure)

Hello friends,
Plz help my Moto G5 Plus xt686 is totally dead. I tried flashing stock rom via fastboot. But it's not working, phone still in fastboot stuck condition. Also tried RSD lite tool and Lenovo repair assistant both are not reading my device. Tried unlocking bootloader but getting read datablock error. Tried flashing naugat and oreo roms. Plz spare your valuable time to help me out. Regards.
Kumarvicky12 said:
Hello friends,
Plz help my Moto G5 Plus xt686 is totally dead. I tried flashing stock rom via fastboot. But it's not working, phone still in fastboot stuck condition. Also tried RSD lite tool and Lenovo repair assistant both are not reading my device. Tried unlocking bootloader but getting read datablock error. Tried flashing naugat and oreo roms. Plz spare your valuable time to help me out. Regards.
Click to expand...
Click to collapse
Did you Try flashing latest stock firmware, and did bootloader and gpt got flashed successful?
Nothing got flashed, bootloader, gpt everything failed.
Kumarvicky12 said:
Nothing got flashed, bootloader, gpt everything failed.
Click to expand...
Click to collapse
What error it give?
riyan65 said:
What error it give?
Click to expand...
Click to collapse
plz go through logs
C:\Minimal ADB and Fastboot>echo off
max-sparse-size: 268435456
finished. total time: 0.000s
...
FAILED (remote failure)
finished. total time: 0.016s
target reported max download size of 534773760 bytes
sending 'partition' (45 KB)...
OKAY [ -0.000s]
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) Failed to write primary GPT.
(bootloader) Failed to program partition table
FAILED (remote failure)
finished. total time: 0.086s
target reported max download size of 534773760 bytes
sending 'bootloader' (5115 KB)...
OKAY [ 0.125s]
writing 'bootloader'...
(bootloader) Validating 'bootloader.default.xml'
(bootloader) Committing 'bootloader.default.xml'
(bootloader) - flashing 'emmc_appsboot.mbn' to 'aboot'
(bootloader) Failed to erase partition
(bootloader) Failed to flash partition aboot
FAILED (remote failure)
finished. total time: 0.328s
target reported max download size of 534773760 bytes
sending 'modem' (71921 KB)...
OKAY [ 1.578s]
writing 'modem'...
(bootloader) Failed to erase partition
FAILED (remote failure)
finished. total time: 1.594s
target reported max download size of 534773760 bytes
sending 'fsg' (3012 KB)...
OKAY [ 0.063s]
writing 'fsg'...
(bootloader) Failed to erase partition
(bootloader) Failed to flash partition fsg
FAILED (remote failure)
finished. total time: 0.078s
target reported max download size of 534773760 bytes
sending 'dsp' (16384 KB)...
OKAY [ 0.369s]
writing 'dsp'...
(bootloader) Failed to erase partition
(bootloader) Failed to flash partition dsp
FAILED (remote failure)
finished. total time: 0.377s
target reported max download size of 534773760 bytes
sending 'logo' (2186 KB)...
OKAY [ 0.047s]
writing 'logo'...
(bootloader) Failed to erase partition
(bootloader) Failed to flash partition logo
FAILED (remote failure)
finished. total time: 0.062s
target reported max download size of 534773760 bytes
sending 'boot' (16384 KB)...
OKAY [ 0.375s]
writing 'boot'...
(bootloader) Image boot failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.547s
target reported max download size of 534773760 bytes
sending 'recovery' (20580 KB)...
OKAY [ 0.453s]
writing 'recovery'...
(bootloader) Image recovery failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.672s
target reported max download size of 534773760 bytes
sending 'system' (258396 KB)...
OKAY [ 5.670s]
writing 'system'...
(bootloader) Image s failed validation
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 5.718s
target reported max download size of 534773760 bytes
sending 'system' (256514 KB)...
OKAY [ 5.660s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 5.676s
target reported max download size of 534773760 bytes
sending 'system' (246302 KB)...
OKAY [ 5.473s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 5.489s
target reported max download size of 534773760 bytes
sending 'system' (262141 KB)...
OKAY [ 5.770s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 5.785s
target reported max download size of 534773760 bytes
sending 'system' (262141 KB)...
OKAY [ 5.771s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 5.786s
target reported max download size of 534773760 bytes
sending 'system' (262141 KB)...
OKAY [ 5.779s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 5.795s
target reported max download size of 534773760 bytes
sending 'system' (250531 KB)...
OKAY [ 5.542s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 5.558s
target reported max download size of 534773760 bytes
sending 'system' (262059 KB)...
OKAY [ 5.802s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 5.833s
target reported max download size of 534773760 bytes
sending 'system' (254142 KB)...
OKAY [ 5.614s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 5.629s
target reported max download size of 534773760 bytes
sending 'oem' (104608 KB)...
OKAY [ 2.315s]
writing 'oem'...
(bootloader) Image o failed validation
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 2.362s
erasing 'modemst1'...
(bootloader) Failed to erase partition
FAILED (remote failure)
finished. total time: -0.000s
erasing 'modemst2'...
(bootloader) Failed to erase partition
FAILED (remote failure)
finished. total time: 0.016s
erasing 'cache'...
(bootloader) Failed to erase partition
FAILED (remote failure)
finished. total time: 0.016s
erasing 'userdata'...
(bootloader) Failed to erase partition
FAILED (remote failure)
finished. total time: -0.000s
erasing 'DDR'...
(bootloader) Failed to erase partition
FAILED (remote failure)
finished. total time: 0.000s
target reported max download size of 534773760 bytes
sending 'fsg' (3012 KB)...
OKAY [ 0.063s]
writing 'fsg'...
(bootloader) Failed to erase partition
(bootloader) Failed to flash partition fsg
FAILED (remote failure)
finished. total time: 0.078s
...
FAILED (remote failure)
finished. total time: 0.000s
-------------------------------------------------------------------------
please scroll up and check your flash for any errors
-------------------------------------------------------------------------
Press any key to continue . . .
I believe you have a problem with your phone internal memory.
Enviado de meu Moto G (5) Plus usando o Tapatalk
You flashed stock Oreo using fastboot commands or using a zip file and TWRP recovery? Was the bootloader unlocked before flashing? You never want to downgrade the firmware for risk of bricking due to the bootloader version. From the picture it looks like you have the Oreo bootloader.
Just guessing, but if trying to unlock the bootloader then you also need access to Motorola's website...at least that's what this web article says: https://devsjournal.com/moto-g5-plus-unlocking-the-bootloader.html
Kumarvicky12 said:
plz go through logs
C:\Minimal ADB and Fastboot>echo off
max-sparse-size: 268435456
finished. total time: 0.000s
...
FAILED (remote failure)
finished. total time: 0.016s
target reported max download size of 534773760 bytes
sending 'partition' (45 KB)...
OKAY [ -0.000s]
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) Failed to write primary GPT.
(bootloader) Failed to program partition table
FAILED (remote failure)
finished. total time: 0.086s
target reported max download size of 534773760 bytes
sending 'bootloader' (5115 KB)...
OKAY [ 0.125s]
writing 'bootloader'...
(bootloader) Validating 'bootloader.default.xml'
(bootloader) Committing 'bootloader.default.xml'
(bootloader) - flashing 'emmc_appsboot.mbn' to 'aboot'
(bootloader) Failed to erase partition
(bootloader) Failed to flash partition aboot
FAILED (remote failure)
finished. total time: 0.328s
target reported max download size of 534773760 bytes
sending 'modem' (71921 KB)...
OKAY [ 1.578s]
writing 'modem'...
(bootloader) Failed to erase partition
FAILED (remote failure)
finished. total time: 1.594s
target reported max download size of 534773760 bytes
sending 'fsg' (3012 KB)...
OKAY [ 0.063s]
writing 'fsg'...
(bootloader) Failed to erase partition
(bootloader) Failed to flash partition fsg
FAILED (remote failure)
finished. total time: 0.078s
target reported max download size of 534773760 bytes
sending 'dsp' (16384 KB)...
OKAY [ 0.369s]
writing 'dsp'...
(bootloader) Failed to erase partition
(bootloader) Failed to flash partition dsp
FAILED (remote failure)
finished. total time: 0.377s
target reported max download size of 534773760 bytes
sending 'logo' (2186 KB)...
OKAY [ 0.047s]
writing 'logo'...
(bootloader) Failed to erase partition
(bootloader) Failed to flash partition logo
FAILED (remote failure)
finished. total time: 0.062s
target reported max download size of 534773760 bytes
sending 'boot' (16384 KB)...
OKAY [ 0.375s]
writing 'boot'...
(bootloader) Image boot failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.547s
target reported max download size of 534773760 bytes
sending 'recovery' (20580 KB)...
OKAY [ 0.453s]
writing 'recovery'...
(bootloader) Image recovery failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.672s
target reported max download size of 534773760 bytes
sending 'system' (258396 KB)...
OKAY [ 5.670s]
writing 'system'...
(bootloader) Image s failed validation
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 5.718s
target reported max download size of 534773760 bytes
sending 'system' (256514 KB)...
OKAY [ 5.660s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 5.676s
target reported max download size of 534773760 bytes
sending 'system' (246302 KB)...
OKAY [ 5.473s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 5.489s
target reported max download size of 534773760 bytes
sending 'system' (262141 KB)...
OKAY [ 5.770s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 5.785s
target reported max download size of 534773760 bytes
sending 'system' (262141 KB)...
OKAY [ 5.771s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 5.786s
target reported max download size of 534773760 bytes
sending 'system' (262141 KB)...
OKAY [ 5.779s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 5.795s
target reported max download size of 534773760 bytes
sending 'system' (250531 KB)...
OKAY [ 5.542s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 5.558s
target reported max download size of 534773760 bytes
sending 'system' (262059 KB)...
OKAY [ 5.802s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 5.833s
target reported max download size of 534773760 bytes
sending 'system' (254142 KB)...
OKAY [ 5.614s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 5.629s
target reported max download size of 534773760 bytes
sending 'oem' (104608 KB)...
OKAY [ 2.315s]
writing 'oem'...
(bootloader) Image o failed validation
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 2.362s
erasing 'modemst1'...
(bootloader) Failed to erase partition
FAILED (remote failure)
finished. total time: -0.000s
erasing 'modemst2'...
(bootloader) Failed to erase partition
FAILED (remote failure)
finished. total time: 0.016s
erasing 'cache'...
(bootloader) Failed to erase partition
FAILED (remote failure)
finished. total time: 0.016s
erasing 'userdata'...
(bootloader) Failed to erase partition
FAILED (remote failure)
finished. total time: -0.000s
erasing 'DDR'...
(bootloader) Failed to erase partition
FAILED (remote failure)
finished. total time: 0.000s
target reported max download size of 534773760 bytes
sending 'fsg' (3012 KB)...
OKAY [ 0.063s]
writing 'fsg'...
(bootloader) Failed to erase partition
(bootloader) Failed to flash partition fsg
FAILED (remote failure)
finished. total time: 0.078s
...
FAILED (remote failure)
finished. total time: 0.000s
-------------------------------------------------------------------------
please scroll up and check your flash for any errors
-------------------------------------------------------------------------
Press any key to continue . . .
Click to expand...
Click to collapse
Mostly you device gpt table got corrupted or your emmc storage is failing. I suggest you to flash gpt table of different firmware ,Maybe it will help.
Ok will give a try
roundaway said:
You flashed stock Oreo using fastboot commands or using a zip file and TWRP recovery? Was the bootloader unlocked before flashing? You never want to downgrade the firmware for risk of bricking due to the bootloader version. From the picture it looks like you have the Oreo bootloader.
Just guessing, but if trying to unlock the bootloader then you also need access to Motorola's website...at least that's what this web article says: https://devsjournal.com/moto-g5-plus-unlocking-the-bootloader.html
Click to expand...
Click to collapse
i never tried any custom ro on this mobile. it was neither unlocked. it automatically got in this condition. i didn't done anything with it.
cybernetus said:
I believe you have a problem with your phone internal memory.
Enviado de meu Moto G (5) Plus usando o Tapatalk
Click to expand...
Click to collapse
C:\Minimal ADB and Fastboot>fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: moto-msm8953-C0.92(*)
(bootloader) product: potter
(bootloader) board: potter
(bootloader) secure: yes
(bootloader) hwrev: P3B
(bootloader) radio: 6
(bootloader) storage-type: emmc
(bootloader) emmc: 32GB SAMSUNG RX14MB RV=08 PV=07 FV=0000000000000007
(bootloader) ram: 4GB SAMSUNG LP3 DIE=8Gb M5=01 M6=05 M7=00 M8=5F
(bootloader) cpu: MSM8953
(bootloader) serialno: 6839d8c1
(bootloader) cid: 0xDEAD
(bootloader) channelid: 0x00
(bootloader) uid: 4FA26E6C00000000000000000000
(bootloader) securestate: oem_locked
(bootloader) iswarrantyvoid: n/a
(bootloader) max-download-size: 534773760
(bootloader) reason: Last time flashing failed
(bootloader) imei: 000000000000000
(bootloader) meid:
(bootloader) date: 01-01-1970
(bootloader) sku: 000000000000000
(bootloader) carrier_sku:
(bootloader) battid:
(bootloader) iccid:
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) current-time:
(bootloader) ro.build.fingerprint:
(bootloader) poweroffalarm: 0
(bootloader) ro.build.version.full:
(bootloader) ro.build.version.qcom:
(bootloader) version-baseband:
(bootloader) kernel.version:
(bootloader) sbl1.git: sbl1.git
(bootloader) rpm.git: rpm.git
(bootloader) tz.git: tz.git
(bootloader) devcfg.git: devcfg.git
(bootloader) keymaster.git: keymaster.git
(bootloader) cmnlib.git: cmnlib.git
(bootloader) cmnlib64.git: cmnlib64.git
(bootloader) prov.git: prov.git
(bootloader) aboot.git: git=MBM-NG-VC0.92-0-g3ea8df0
(bootloader) frp-state: no protection (err)
(bootloader) ro.carrier:
(bootloader) current-slot:
(bootloader) slot-suffixes: _a
(bootloader) slot-count: 1
(bootloader) slot-successful:_a: INVALID
(bootloader) slot-successful:_b: INVALID
(bootloader) slot-bootable:_a: INVALID
(bootloader) slot-bootable:_b: INVALID
(bootloader) slot-retry-count:_a: unknown
(bootloader) slot-retry-count:_b: unknown
all: listed above
finished. total time: 0.156s
riyan65 said:
Mostly you device gpt table got corrupted or your emmc storage is failing. I suggest you to flash gpt table of different firmware ,Maybe it will help.
Click to expand...
Click to collapse
Different firmware means from other moto devices....??
roundaway said:
You flashed stock Oreo using fastboot commands or using a zip file and TWRP recovery? Was the bootloader unlocked before flashing? You never want to downgrade the firmware for risk of bricking due to the bootloader version. From the picture it looks like you have the Oreo bootloader.
Just guessing, but if trying to unlock the bootloader then you also need access to Motorola's website...at least that's what this web article says: https://devsjournal.com/moto-g5-plus-unlocking-the-bootloader.html
Click to expand...
Click to collapse
my device is not getting recognised as adb device, but only fastboot device, i am unable to get unlock data. plz check below
C:\Minimal ADB and Fastboot>adb device
adb: usage: unknown command device
C:\Minimal ADB and Fastboot>fastboot oem get_unlock_data
...
(bootloader) Unlock data:
(bootloader) read datablock error
(bootloader) Failed
OKAY [ 0.016s]
finished. total time: 0.016s
C:\Minimal ADB and Fastboot>fastboot devices
6839d8c1 fastboot
C:\Minimal ADB and Fastboot>
How about the gpt table? You try to flash t this?
Enviado de meu Moto G (5) Plus usando o Tapatalk
---------- Post added at 10:58 PM ---------- Previous post was at 10:56 PM ----------
Kumarvicky12 said:
Different firmware means from other moto devices....??
Click to expand...
Click to collapse
From another rom. Lineage etc. I believe.
Enviado de meu Moto G (5) Plus usando o Tapatalk
Kumarvicky12 said:
my device is not getting recognised as adb device, but only fastboot device, i am unable to get unlock data. plz check below
C:\Minimal ADB and Fastboot>adb device
adb: usage: unknown command device
C:\Minimal ADB and Fastboot>fastboot oem get_unlock_data
...
(bootloader) Unlock data:
(bootloader) read datablock error
(bootloader) Failed
OKAY [ 0.016s]
finished. total time: 0.016s
C:\Minimal ADB and Fastboot>fastboot devices
6839d8c1 fastboot
C:\Minimal ADB and Fastboot>
Click to expand...
Click to collapse
Here's what I recommend. Download the official Motorola G5 Plus (Potter) Oreo firmware, POTTER_RETAIL_8.1.0_OPSS28.85-17-6_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip from whatever site you can find it (https://mirrors.lolinet.com/firmware/moto/potter/official/RETAIL/). Extract the zip file in the same folder as fastboot.exe.
With the phone in fastboot mode execute each of the following commands one at a time:
fastboot oem fb_mode_set
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 system system.img_sparsechunk.8
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 fb_mode_clear
fastboot reboot
If the phone reboots and starts up then great. After it starts go to Settings and enable Developer Options. In Developer Options enable ADB and OEM Unlock.
If the phone doesn't boot properly then sorry. You will have tried to install the official retail version.
Kumarvicky12 said:
Different firmware means from other moto devices....??
Click to expand...
Click to collapse
Different firmware= different region firmware like retain
same phone same error
I have the same phone and got these results with roundaway suggestion
C:\Users\Ema-Maby\Desktop\Programas\motoG5PPLUS\CEDRIC_RETAIL_8.1.0_OPPS28.85-16-6_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot oem fb_mode_set
...
FAILED (remote failure)
finished. total time: 0.002s
C:\Users\Ema-Maby\Desktop\Programas\motoG5PPLUS\CEDRIC_RETAIL_8.1.0_OPPS28.85-16-6_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot flash partition gpt.bin
target reported max download size of 534773760 bytes
sending 'partition' (45 KB)...
OKAY [ 0.018s]
writing 'partition'...
(bootloader) no suitable package!
FAILED (remote failure)
finished. total time: 0.048s
the phone shows no IMEI "0000000" no baseband "blank space" and no product/variant "potter 0000000000000000" i belive it is a hardware malfunction at this point I have tried everything I could find in the forums
MaxPowell2 said:
I have the same phone and got these results with roundaway suggestion
C:\Users\Ema-Maby\Desktop\Programas\motoG5PPLUS\CEDRIC_RETAIL_8.1.0_OPPS28.85-16-6_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot oem fb_mode_set
...
FAILED (remote failure)
finished. total time: 0.002s
C:\Users\Ema-Maby\Desktop\Programas\motoG5PPLUS\CEDRIC_RETAIL_8.1.0_OPPS28.85-16-6_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot flash partition gpt.bin
target reported max download size of 534773760 bytes
sending 'partition' (45 KB)...
OKAY [ 0.018s]
writing 'partition'...
(bootloader) no suitable package!
FAILED (remote failure)
finished. total time: 0.048s
the phone shows no IMEI "0000000" no baseband "blank space" and no product/variant "potter 0000000000000000" i belive it is a hardware malfunction at this point I have tried everything I could find in the forums
Click to expand...
Click to collapse
Confirm the ROM you tried to install is the correct one for your phone:
Moto G5 Plus = potter
Moto G5 = cedric
Also, the files to be flashed should be in the same folder as the fastboot.exe files.
There are multiple problems with the phones. One is it won't accept a fastboot flash of factory firmware. Second problem might show up after/if the phone reboots and that is the infamous IMEI = 0.
The OP's getvar all command didn't reveal the (bootloader) ro.build.fingerprint information which would tell us the firmware version installed. However, the bootloader number appears to be the current Oreo version. That was one reason for flashing the latest version of the Oreo firmware.
The only other thing to try would be to download the latest version of TWRP into the same folder as fastboot.exe and try:
fastboot boot twrp.img (where twrp.img is the filename of the latest twrp)
If the phone boots into twrp then download the latest twrp flashable Oreo and copy and paste to the phone. Try and Install it. Big longshot because the bootloader is probably locked..
Dont worry dude, I have been there and came out of it.
First of all sorry for being late.
What you have to do is
1. connect your phone to your pc with with a pc or laptop.
L2. Download Lenovo Moto Smart Assistant lll from the Official website. Just search on google.
3. Make sure you install it on the C: Drive only, with administrative rights.
4. Run it, it will ask for your Lenovo login id. Now you need to go to Lenovos website from the browser, register a new one.
And after 5-10 mins login with the same id.
5. Well, if you are unable to login due to un responsive page, use a vpn .
6. After you login go for "Rescue".
7. Choose the option which says, Phone not able to boot or start.
8. It would automatically detect your device if it's connected to a pc with a cable and is in fastboot mode.
9. It fails to detect sometimes, so you can try manually enter your device.
10.Now it would download the latest stock rom, there would be a small download text which is hyperlinked.
11. Once completed it might ask to "Rescue".
It will start working, it might look like it's stuck, but it not, it can take from 5 mins to 30 mins or even more.
12. After the process is complete, just boot your phone normally, or it might boot automatically.
13. Enjoy.
If there's something wrong any problem or error,
Let me know.
Akahat27 said:
Dont worry dude, I have been there and came out of it.
First of all sorry for being late.
What you have to do is
1. connect your phone to your pc with with a pc or laptop.
L2. Download Lenovo Moto Smart Assistant lll from the Official website. Just search on google.
3. Make sure you install it on the C: Drive only, with administrative rights.
4. Run it, it will ask for your Lenovo login id. Now you need to go to Lenovos website from the browser, register a new one.
And after 5-10 mins login with the same id.
5. Well, if you are unable to login due to un responsive page, use a vpn .
6. After you login go for "Rescue".
7. Choose the option which says, Phone not able to boot or start.
8. It would automatically detect your device if it's connected to a pc with a cable and is in fastboot mode.
9. It fails to detect sometimes, so you can try manually enter your device.
10.Now it would download the latest stock rom, there would be a small download text which is hyperlinked.
11. Once completed it might ask to "Rescue".
It will start working, it might look like it's stuck, but it not, it can take from 5 mins to 30 mins or even more.
12. After the process is complete, just boot your phone normally, or it might boot automatically.
13. Enjoy.
If there's something wrong any problem or error,
Let me know.
Click to expand...
Click to collapse
This didn't work. Smart Assistant couldn't detect the device I am trying to Rescue. Can you suggest something else?

Problems locking the bootloader on a XT1670

Hello, I am planning to sell my phone, so I want to restore the stock ROM and lock the bootloader.
When trying to perform a Rescue with "Rescue and Smart Assistant" it gives me an error, it fails to find the matching firmware (it works correctly with a G4 Plus on the same cable and computer)
I was on the LineageOS 18 previously, I rebooted to fastboot and flashed "CEDRIC_RETAIL_8.1.0_OPP28.85-19-4-2_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml"
from https://mirrors-obs-2.lolinet.com/firmware/motorola/2017/cedric/official/.
Trying to lock the bootloader (it remans unlocked) gives me the following error: "(bootloader) Check 'Allow OEM Unlock' in Android Settings > Developer Options"
OEM UNLOCK is grey out under Developer options.
I used these commands:
Code:
fastboot oem fb_mode_set
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 system system.img_sparsechunk.8
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot oem fb_mode_clear
fastboot reboot
fastboot oem lock
fastboot oem lock
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 boot boot.img
fastboot oem lock
These was the result:
Code:
C:\Users\Administrator\Desktop\ADB>fastboot oem fb_mode_set
...
OKAY [ 0.004s]
finished. total time: 0.004s
C:\Users\Administrator\Desktop\ADB>fastboot flash partition gpt.bin
target reported max download size of 535822336 bytes
sending 'partition' (45 KB)...
OKAY [ 0.004s]
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.079s]
finished. total time: 0.082s
C:\Users\Administrator\Desktop\ADB>fastboot flash bootloader bootloader.img
target reported max download size of 535822336 bytes
sending 'bootloader' (5179 KB)...
OKAY [ 0.165s]
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.363s]
finished. total time: 0.529s
C:\Users\Administrator\Desktop\ADB>fastboot flash logo logo.bin
target reported max download size of 535822336 bytes
sending 'logo' (2242 KB)...
OKAY [ 0.073s]
writing 'logo'...
OKAY [ 0.051s]
finished. total time: 0.124s
C:\Users\Administrator\Desktop\ADB>fastboot flash boot boot.img
target reported max download size of 535822336 bytes
sending 'boot' (16384 KB)...
OKAY [ 0.572s]
writing 'boot'...
(bootloader) Image signed with key bad key
OKAY [ 0.243s]
finished. total time: 0.817s
C:\Users\Administrator\Desktop\ADB>fastboot flash recovery recovery.img
target reported max download size of 535822336 bytes
sending 'recovery' (16484 KB)...
OKAY [ 0.566s]
writing 'recovery'...
(bootloader) Image signed with key bad key
OKAY [ 0.272s]
finished. total time: 0.838s
C:\Users\Administrator\Desktop\ADB>fastboot flash dsp adspso.bin
target reported max download size of 535822336 bytes
sending 'dsp' (16384 KB)...
OKAY [ 0.517s]
writing 'dsp'...
OKAY [ 0.143s]
finished. total time: 0.661s
C:\Users\Administrator\Desktop\ADB>fastboot flash oem oem.img
target reported max download size of 535822336 bytes
sending 'oem' (148900 KB)...
OKAY [ 4.686s]
writing 'oem'...
OKAY [ 1.040s]
finished. total time: 5.726s
C:\Users\Administrator\Desktop\ADB>fastboot flash system system.img_sparsechunk.0
target reported max download size of 535822336 bytes
sending 'system' (256533 KB)...
OKAY [ 8.758s]
writing 'system'...
OKAY [ 2.132s]
finished. total time: 10.892s
C:\Users\Administrator\Desktop\ADB>fastboot flash system system.img_sparsechunk.1
target reported max download size of 535822336 bytes
sending 'system' (256653 KB)...
OKAY [ 8.747s]
writing 'system'...
OKAY [ 1.729s]
finished. total time: 10.477s
C:\Users\Administrator\Desktop\ADB>fastboot flash system system.img_sparsechunk.2
target reported max download size of 535822336 bytes
sending 'system' (257982 KB)...
OKAY [ 8.878s]
writing 'system'...
OKAY [ 1.804s]
finished. total time: 10.682s
C:\Users\Administrator\Desktop\ADB>fastboot flash system system.img_sparsechunk.3
target reported max download size of 535822336 bytes
sending 'system' (260705 KB)...
OKAY [ 8.936s]
writing 'system'...
OKAY [ 1.738s]
finished. total time: 10.675s
C:\Users\Administrator\Desktop\ADB>fastboot flash system system.img_sparsechunk.4
target reported max download size of 535822336 bytes
sending 'system' (257421 KB)...
OKAY [ 8.845s]
writing 'system'...
OKAY [ 1.753s]
finished. total time: 10.599s
C:\Users\Administrator\Desktop\ADB>fastboot flash system system.img_sparsechunk.5
target reported max download size of 535822336 bytes
sending 'system' (257865 KB)...
OKAY [ 8.868s]
writing 'system'...
OKAY [ 1.719s]
finished. total time: 18.835s
C:\Users\Administrator\Desktop\ADB>fastboot flash system system.img_sparsechunk.6
target reported max download size of 535822336 bytes
sending 'system' (252647 KB)...
OKAY [ 8.721s]
writing 'system'...
OKAY [ 2.085s]
finished. total time: 10.807s
C:\Users\Administrator\Desktop\ADB>fastboot flash system system.img_sparsechunk.7
target reported max download size of 535822336 bytes
sending 'system' (253716 KB)...
OKAY [ 8.756s]
writing 'system'...
OKAY [ 2.048s]
finished. total time: 10.804s
C:\Users\Administrator\Desktop\ADB>fastboot flash system system.img_sparsechunk.8
target reported max download size of 535822336 bytes
sending 'system' (250269 KB)...
OKAY [ 8.723s]
writing 'system'...
OKAY [ 1.691s]
finished. total time: 10.415s
C:\Users\Administrator\Desktop\ADB>fastboot flash modem NON-HLOS.bin
target reported max download size of 535822336 bytes
sending 'modem' (66362 KB)...
OKAY [ 2.265s]
writing 'modem'...
OKAY [ 0.542s]
finished. total time: 2.807s
C:\Users\Administrator\Desktop\ADB>fastboot erase modemst1
erasing 'modemst1'...
OKAY [ 0.017s]
finished. total time: 0.017s
C:\Users\Administrator\Desktop\ADB>fastboot erase modemst2
erasing 'modemst2'...
OKAY [ 0.017s]
finished. total time: 0.018s
C:\Users\Administrator\Desktop\ADB>fastboot flash fsg fsg.mbn
target reported max download size of 535822336 bytes
sending 'fsg' (2956 KB)...
OKAY [ 0.103s]
writing 'fsg'...
OKAY [ 0.056s]
finished. total time: 0.159s
C:\Users\Administrator\Desktop\ADB>fastboot erase cache
erasing 'cache'...
OKAY [ 0.008s]
finished. total time: 0.008s
C:\Users\Administrator\Desktop\ADB>fastboot erase userdata
erasing 'userdata'...
OKAY [ 0.065s]
finished. total time: 0.065s
C:\Users\Administrator\Desktop\ADB>fastboot erase customize (ignore any error)
fastboot: usage: unknown command (ignore
C:\Users\Administrator\Desktop\ADB>fastboot erase clogo (ignore any error)
fastboot: usage: unknown command (ignore
C:\Users\Administrator\Desktop\ADB>fastboot oem fb_mode_clear
...
OKAY [ 0.003s]
finished. total time: 0.004s
C:\Users\Administrator\Desktop\ADB>fastboot reboot
rebooting...
finished. total time: 0.002s
C:\Users\Administrator\Desktop\ADB>fastboot oem lock
...
(bootloader) WARNING: This command erases all user data.
(bootloader) Please re-run this command to continue.
OKAY [ 0.004s]
finished. total time: 0.005s
C:\Users\Administrator\Desktop\ADB>fastboot oem lock
...
(bootloader) Check 'Allow OEM Unlock' in Android Settings > Developer
(bootloader) Options
OKAY [ 0.005s]
finished. total time: 0.005s
C:\Users\Administrator\Desktop\ADB>fastboot flash oem oem.img
target reported max download size of 535822336 bytes
sending 'oem' (148900 KB)...
OKAY [ 5.139s]
writing 'oem'...
OKAY [ 1.014s]
finished. total time: 6.154s
C:\Users\Administrator\Desktop\ADB>fastboot flash system system.img_sparsechunk.0
target reported max download size of 535822336 bytes
sending 'system' (256533 KB)...
OKAY [ 8.799s]
writing 'system'...
OKAY [ 2.135s]
finished. total time: 10.935s
C:\Users\Administrator\Desktop\ADB>fastboot flash system system.img_sparsechunk.1
target reported max download size of 535822336 bytes
sending 'system' (256653 KB)...
OKAY [ 8.787s]
writing 'system'...
OKAY [ 1.733s]
finished. total time: 10.521s
C:\Users\Administrator\Desktop\ADB>fastboot flash system system.img_sparsechunk.2
target reported max download size of 535822336 bytes
sending 'system' (257982 KB)...
OKAY [ 9.106s]
writing 'system'...
OKAY [ 1.809s]
finished. total time: 10.916s
C:\Users\Administrator\Desktop\ADB>fastboot flash system system.img_sparsechunk.3
target reported max download size of 535822336 bytes
sending 'system' (260705 KB)...
OKAY [ 9.007s]
writing 'system'...
OKAY [ 1.745s]
finished. total time: 10.753s
C:\Users\Administrator\Desktop\ADB>fastboot flash system system.img_sparsechunk.4
target reported max download size of 535822336 bytes
sending 'system' (257421 KB)...
OKAY [ 8.863s]
writing 'system'...
OKAY [ 1.766s]
finished. total time: 10.631s
C:\Users\Administrator\Desktop\ADB>fastboot flash boot boot.img
target reported max download size of 535822336 bytes
sending 'boot' (16384 KB)...
OKAY [ 0.563s]
writing 'boot'...
(bootloader) Image signed with key bad key
OKAY [ 0.244s]
finished. total time: 0.808s
C:\Users\Administrator\Desktop\ADB>fastboot oem lock
...
(bootloader) Check 'Allow OEM Unlock' in Android Settings > Developer
(bootloader) Options
OKAY [ 0.005s]
finished. total time: 0.005s
C:\Users\Administrator\Desktop\ADB>
C:\Users\Administrator\Desktop\ADB>fastboot oem fb_mode_set
...
OKAY [ 0.003s]
finished. total time: 0.003s
C:\Users\Administrator\Desktop\ADB>fastboot flash partition gpt.bin
target reported max download size of 535822336 bytes
sending 'partition' (45 KB)...
OKAY [ 0.004s]
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.087s]
finished. total time: 0.092s
C:\Users\Administrator\Desktop\ADB>fastboot flash bootloader bootloader.img
target reported max download size of 535822336 bytes
sending 'bootloader' (5179 KB)...
OKAY [ 0.165s]
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.351s]
finished. total time: 0.517s
C:\Users\Administrator\Desktop\ADB>fastboot flash logo logo.bin
target reported max download size of 535822336 bytes
sending 'logo' (2242 KB)...
OKAY [ 0.073s]
writing 'logo'...
OKAY [ 0.060s]
finished. total time: 0.133s
C:\Users\Administrator\Desktop\ADB>fastboot flash boot boot.img
target reported max download size of 535822336 bytes
sending 'boot' (16384 KB)...
OKAY [ 0.570s]
writing 'boot'...
(bootloader) Image signed with key bad key
OKAY [ 0.235s]
finished. total time: 0.806s
C:\Users\Administrator\Desktop\ADB>fastboot flash recovery recovery.img
target reported max download size of 535822336 bytes
sending 'recovery' (16484 KB)...
OKAY [ 0.578s]
writing 'recovery'...
(bootloader) Image signed with key bad key
OKAY [ 0.275s]
finished. total time: 0.853s
C:\Users\Administrator\Desktop\ADB>fastboot flash dsp adspso.bin
target reported max download size of 535822336 bytes
sending 'dsp' (16384 KB)...
OKAY [ 0.517s]
writing 'dsp'...
OKAY [ 0.155s]
finished. total time: 0.672s
C:\Users\Administrator\Desktop\ADB>fastboot flash oem oem.img
target reported max download size of 535822336 bytes
sending 'oem' (148900 KB)...
OKAY [ 4.687s]
writing 'oem'...
OKAY [ 1.033s]
finished. total time: 5.720s
C:\Users\Administrator\Desktop\ADB>fastboot flash system system.img_sparsechunk.0
target reported max download size of 535822336 bytes
sending 'system' (258344 KB)...
OKAY [ 8.906s]
writing 'system'...
OKAY [ 1.799s]
finished. total time: 10.706s
C:\Users\Administrator\Desktop\ADB>fastboot flash system system.img_sparsechunk.1
target reported max download size of 535822336 bytes
sending 'system' (256570 KB)...
OKAY [ 8.772s]
writing 'system'...
OKAY [ 1.733s]
finished. total time: 10.506s
C:\Users\Administrator\Desktop\ADB>fastboot flash system system.img_sparsechunk.2
target reported max download size of 535822336 bytes
sending 'system' (246510 KB)...
OKAY [ 8.335s]
writing 'system'...
OKAY [ 2.046s]
finished. total time: 10.382s
C:\Users\Administrator\Desktop\ADB>fastboot flash system system.img_sparsechunk.3
target reported max download size of 535822336 bytes
sending 'system' (262141 KB)...
OKAY [ 9.027s]
writing 'system'...
OKAY [ 1.763s]
finished. total time: 10.791s
C:\Users\Administrator\Desktop\ADB>fastboot flash system system.img_sparsechunk.4
target reported max download size of 535822336 bytes
sending 'system' (261322 KB)...
OKAY [ 9.199s]
writing 'system'...
OKAY [ 1.774s]
finished. total time: 10.975s
C:\Users\Administrator\Desktop\ADB>fastboot flash system system.img_sparsechunk.5
target reported max download size of 535822336 bytes
sending 'system' (262141 KB)...
OKAY [ 8.308s]
writing 'system'...
OKAY [ 1.757s]
finished. total time: 10.066s
C:\Users\Administrator\Desktop\ADB>fastboot flash system system.img_sparsechunk.6
target reported max download size of 535822336 bytes
sending 'system' (262143 KB)...
OKAY [ 8.247s]
writing 'system'...
OKAY [ 2.177s]
finished. total time: 10.424s
C:\Users\Administrator\Desktop\ADB>fastboot flash system system.img_sparsechunk.7
target reported max download size of 535822336 bytes
sending 'system' (256817 KB)...
OKAY [ 8.080s]
writing 'system'...
OKAY [ 2.079s]
finished. total time: 10.159s
C:\Users\Administrator\Desktop\ADB>fastboot flash system system.img_sparsechunk.8
target reported max download size of 535822336 bytes
sending 'system' (237909 KB)...
OKAY [ 7.484s]
writing 'system'...
OKAY [ 1.589s]
finished. total time: 9.074s
C:\Users\Administrator\Desktop\ADB>fastboot flash modem NON-HLOS.bin
target reported max download size of 535822336 bytes
sending 'modem' (66358 KB)...
OKAY [ 2.277s]
writing 'modem'...
OKAY [ 0.544s]
finished. total time: 2.821s
C:\Users\Administrator\Desktop\ADB>fastboot erase modemst1
erasing 'modemst1'...
OKAY [ 0.025s]
finished. total time: 0.026s
C:\Users\Administrator\Desktop\ADB>fastboot erase modemst2
erasing 'modemst2'...
OKAY [ 0.017s]
finished. total time: 0.017s
C:\Users\Administrator\Desktop\ADB>fastboot flash fsg fsg.mbn
target reported max download size of 535822336 bytes
sending 'fsg' (2956 KB)...
OKAY [ 0.104s]
writing 'fsg'...
OKAY [ 0.057s]
finished. total time: 0.161s
C:\Users\Administrator\Desktop\ADB>fastboot erase cache
erasing 'cache'...
OKAY [ 0.007s]
finished. total time: 0.007s
C:\Users\Administrator\Desktop\ADB>fastboot erase userdata
erasing 'userdata'...
OKAY [ 0.064s]
finished. total time: 0.064s
C:\Users\Administrator\Desktop\ADB>fastboot oem fb_mode_clear
...
OKAY [ 0.004s]
finished. total time: 0.004s
C:\Users\Administrator\Desktop\ADB>fastboot reboot
rebooting...
finished. total time: 0.002s
C:\Users\Administrator\Desktop\ADB>

moto z2 play XT1710-06 brick

Hello, good morning, I was using my moto z2 play, it crashed and after restarting it, it remains in bootloop So I try to install a stock rom but it gives many errors, I don't know what I can do (sorry for my bad English)
FAILED (remote failure)
finished. total time: 0.002s
target reported max download size of 534773760 bytes
sending 'partition' (45 KB)...
OKAY [ 0.003s]
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.066s
target reported max download size of 534773760 bytes
sending 'bootloader' (5115 KB)...
OKAY [ 0.121s]
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.343s]
finished. total time: 0.465s
target reported max download size of 534773760 bytes
sending 'modem' (71565 KB)...
OKAY [ 1.655s]
writing 'modem'...
OKAY [ 0.572s]
finished. total time: 2.228s
target reported max download size of 534773760 bytes
sending 'fsg' (4020 KB)...
OKAY [ 0.094s]
writing 'fsg'...
OKAY [ 0.065s]
finished. total time: 0.161s
target reported max download size of 534773760 bytes
sending 'dsp' (16384 KB)...
OKAY [ 0.379s]
writing 'dsp'...
OKAY [ 0.157s]
finished. total time: 0.538s
target reported max download size of 534773760 bytes
sending 'logo' (2192 KB)...
OKAY [ 0.053s]
writing 'logo'...
OKAY [ 0.052s]
finished. total time: 0.104s
target reported max download size of 534773760 bytes
sending 'boot' (16384 KB)...
OKAY [ 0.391s]
writing 'boot'...
(bootloader) Security version downgrade
(bootloader) Image boot failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.561s
target reported max download size of 534773760 bytes
sending 'recovery' (20580 KB)...
OKAY [ 0.488s]
writing 'recovery'...
(bootloader) Security version downgrade
(bootloader) Image recovery failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.693s
target reported max download size of 534773760 bytes
sending 'system' (262141 KB)...
OKAY [ 6.053s]
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: 6.092s
target reported max download size of 534773760 bytes
sending 'system' (255693 KB)...
OKAY [ 5.903s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 5.910s
target reported max download size of 534773760 bytes
sending 'system' (243069 KB)...
OKAY [ 5.614s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 5.624s
target reported max download size of 534773760 bytes
sending 'system' (260338 KB)...
OKAY [ 6.024s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 6.041s
target reported max download size of 534773760 bytes
sending 'system' (260451 KB)...
OKAY [ 6.014s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 6.025s
target reported max download size of 534773760 bytes
sending 'system' (242833 KB)...
OKAY [ 5.605s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 5.612s
target reported max download size of 534773760 bytes
sending 'system' (262140 KB)...
OKAY [ 6.049s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 6.056s
target reported max download size of 534773760 bytes
sending 'system' (262141 KB)...
OKAY [ 6.058s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 6.066s
target reported max download size of 534773760 bytes
sending 'system' (262142 KB)...
OKAY [ 6.050s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 6.064s
target reported max download size of 534773760 bytes
sending 'system' (262141 KB)...
OKAY [ 6.050s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 6.057s
target reported max download size of 534773760 bytes
sending 'system' (239064 KB)...
OKAY [ 5.521s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 5.530s
target reported max download size of 534773760 bytes
sending 'system' (45248 KB)...
OKAY [ 1.045s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 1.051s
target reported max download size of 534773760 bytes
sending 'oem' (155105 KB)...
OKAY [ 3.581s]
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.620s
erasing 'modemst1'...
OKAY [ 0.018s]
finished. total time: 0.018s
erasing 'modemst2'...
OKAY [ 0.017s]
finished. total time: 0.018s
erasing 'carrier'...
OKAY [ 0.034s]
finished. total time: 0.035s
erasing 'cache'...
OKAY [ 0.003s]
finished. total time: 0.003s
erasing 'userdata'...
OKAY [ 0.038s]
finished. total time: 0.039s
erasing 'DDR'...
OKAY [ 0.002s]
finished. total time: 0.002s
target reported max download size of 534773760 bytes
sending 'fsg' (4020 KB)...
OKAY [ 0.094s]
writing 'fsg'...
OKAY [ 0.065s]
finished. total time: 0.160s
...
OKAY [ 0.002s]
finished. total time: 0.002s
-------------------------------------------------------------------------
please scroll up and check your flash for any errors
-------------------------------------------------------------------------
Presione una tecla para continuar . . .
nickrak01 said:
Hello, good morning, I was using my moto z2 play, it crashed and after restarting it, it remains in bootloop So I try to install a stock rom but it gives many errors, I don't know what I can do (sorry for my bad English)
FAILED (remote failure)
finished. total time: 0.002s
target reported max download size of 534773760 bytes
sending 'partition' (45 KB)...
OKAY [ 0.003s]
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.066s
target reported max download size of 534773760 bytes
sending 'bootloader' (5115 KB)...
OKAY [ 0.121s]
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.343s]
finished. total time: 0.465s
target reported max download size of 534773760 bytes
sending 'modem' (71565 KB)...
OKAY [ 1.655s]
writing 'modem'...
OKAY [ 0.572s]
finished. total time: 2.228s
target reported max download size of 534773760 bytes
sending 'fsg' (4020 KB)...
OKAY [ 0.094s]
writing 'fsg'...
OKAY [ 0.065s]
finished. total time: 0.161s
target reported max download size of 534773760 bytes
sending 'dsp' (16384 KB)...
OKAY [ 0.379s]
writing 'dsp'...
OKAY [ 0.157s]
finished. total time: 0.538s
target reported max download size of 534773760 bytes
sending 'logo' (2192 KB)...
OKAY [ 0.053s]
writing 'logo'...
OKAY [ 0.052s]
finished. total time: 0.104s
target reported max download size of 534773760 bytes
sending 'boot' (16384 KB)...
OKAY [ 0.391s]
writing 'boot'...
(bootloader) Security version downgrade
(bootloader) Image boot failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.561s
target reported max download size of 534773760 bytes
sending 'recovery' (20580 KB)...
OKAY [ 0.488s]
writing 'recovery'...
(bootloader) Security version downgrade
(bootloader) Image recovery failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.693s
target reported max download size of 534773760 bytes
sending 'system' (262141 KB)...
OKAY [ 6.053s]
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: 6.092s
target reported max download size of 534773760 bytes
sending 'system' (255693 KB)...
OKAY [ 5.903s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 5.910s
target reported max download size of 534773760 bytes
sending 'system' (243069 KB)...
OKAY [ 5.614s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 5.624s
target reported max download size of 534773760 bytes
sending 'system' (260338 KB)...
OKAY [ 6.024s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 6.041s
target reported max download size of 534773760 bytes
sending 'system' (260451 KB)...
OKAY [ 6.014s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 6.025s
target reported max download size of 534773760 bytes
sending 'system' (242833 KB)...
OKAY [ 5.605s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 5.612s
target reported max download size of 534773760 bytes
sending 'system' (262140 KB)...
OKAY [ 6.049s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 6.056s
target reported max download size of 534773760 bytes
sending 'system' (262141 KB)...
OKAY [ 6.058s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 6.066s
target reported max download size of 534773760 bytes
sending 'system' (262142 KB)...
OKAY [ 6.050s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 6.064s
target reported max download size of 534773760 bytes
sending 'system' (262141 KB)...
OKAY [ 6.050s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 6.057s
target reported max download size of 534773760 bytes
sending 'system' (239064 KB)...
OKAY [ 5.521s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 5.530s
target reported max download size of 534773760 bytes
sending 'system' (45248 KB)...
OKAY [ 1.045s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 1.051s
target reported max download size of 534773760 bytes
sending 'oem' (155105 KB)...
OKAY [ 3.581s]
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.620s
erasing 'modemst1'...
OKAY [ 0.018s]
finished. total time: 0.018s
erasing 'modemst2'...
OKAY [ 0.017s]
finished. total time: 0.018s
erasing 'carrier'...
OKAY [ 0.034s]
finished. total time: 0.035s
erasing 'cache'...
OKAY [ 0.003s]
finished. total time: 0.003s
erasing 'userdata'...
OKAY [ 0.038s]
finished. total time: 0.039s
erasing 'DDR'...
OKAY [ 0.002s]
finished. total time: 0.002s
target reported max download size of 534773760 bytes
sending 'fsg' (4020 KB)...
OKAY [ 0.094s]
writing 'fsg'...
OKAY [ 0.065s]
finished. total time: 0.160s
...
OKAY [ 0.002s]
finished. total time: 0.002s
-------------------------------------------------------------------------
please scroll up and check your flash for any errors
-------------------------------------------------------------------------
Presione una tecla para continuar . . .
Click to expand...
Click to collapse
Is your bootloader locked?
yes is locked

Categories

Resources