[Moto G5 Questions & Answers] StuartStardust:
Hello XDA,

Long time reader, first time really really needing some expert help.

The GF phone was stuck in a bootloop after she installed an OTA - Motorola would not help, other than re flashing whole device, and she would lose all data. No backup, yes yes i know.

Real men do not make backups, they just cry when stuff like this happens.. :cool:

So I tried in fastboot to flash recovery to get mobile into recovery so i could get data from adb or recovery. This made it worse...:eek:

Now i con only get access the mobile with QFIL or the MOTO "qboot" tool. I have however not found a "singleimage.bin" it will flash yet.

Seen that the "bootloder.bin" in many Moto G5 files is equal to the "singleimange.bin" file.

Any inputs? Or is it dead jim?

Post I have been looking into:

https://xdaforums.com/g5/help/moto-g5-cedric-xt1676-led-lights-help-t3773984

https://xdaforums.com/g5/help/to-recover-hard-brick-bootloader-t3778119

https://xdaforums.com/moto-g4-plus/help/solved-unbrick-hard-bricked-dead-t3585016

https://xdaforums.com/g5/help/how-to-develop-blank-flash-t3791525

https://xdaforums.com/g5/help/xt1676-stuck-unlocked-bootloader-wipe-t3766827

https://xdaforums.com/g5/development/official-twrp-3-1-1-0-moto-g5-t3699737

https://xdaforums.com/g5/how-to/fix-phone-reboots-recovery-mode-started-t3705325

Closest i got to success with qboot is:

**** Log buffer [000001] 2018-09-25_02:15:32 ****

[ -0.000] Opening device: \\.\COM4

[ 0.001] Detecting device

[ 0.003] ...cpu.id = 79 (0x4f)

[ 0.004] ...cpu.sn = 51414XXXX (0x1ea5XXXX)

[ 0.004] Opening singleimage

[ 0.005] Loading package

[ 0.007] No suitable package found for MSM8937

[ 0.007] ERROR: error loading package

[ 0.007] Check qboot_log.txt for more details

[ 0.007] Total time: 0.012s

[ 0.008]

[ 0.008] qboot version 3.40

[ 0.008]

[ 0.008] DEVICE {

[ 0.008] name = "\\.\COM4",

[ 0.008] flags = "0x64",

[ 0.008] addr = "0x28FE5C",

[ 0.008] sahara.current_mode = "3",

[ 0.008] api.buffer = "0x2116020",

[ 0.008] cpu.serial = "51414XXXX",

[ 0.008] cpu.id = "79",

[ 0.008] cpu.sv_sbl = "1",

[ 0.008] cpu.name = "MSM8937",

[ 0.008] storage.type = "eMMC",

[ 0.008] api.bnr = "0x205XXXX",

[ 0.008] }

[ 0.008]

[ 0.008]

[ 0.008] Backup & Restore {

[ 0.008] num_entries = 0,

[ 0.008] restoring = "false",

[ 0.008] backup_error = "not started",

[ 0.008] restore_error = "not started",

[ 0.008] }

[ 0.008]

This is the last proof of life while still having access to fastboot (output from terminal while flashing different stuff):

C:\_temp\android\Moto_G5_1st_November_2017_update>fastboot flash modem NON-HLOS.bin

(bootloader) has-slot:modem: not found

Sending 'modem' (65228 KB) OKAY [ 2.263s]

Writing 'modem' OKAY [ 2.656s]

Finished. Total time: 5.124s

C:\_temp\android\Moto_G5_1st_November_2017_update>fastboot flash partition gpt.bin

(bootloader) has-slot:partition: not found

Sending 'partition' (45 KB) OKAY [ 0.019s]

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: '')

Finished. Total time: 0.323s

C:\_temp\android\Moto_G5_1st_November_2017_update>fastboot flash bootloader bootloader.img

(bootloader) has-slot:bootloader: not found

Sending 'bootloader' (5179 KB) OKAY [ 0.192s]

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 [ 1.751s]

Finished. Total time: 2.145s

C:\_temp\android\Moto_G5_1st_November_2017_update>fastboot flash modem NON-HLOS.bin

(bootloader) has-slot:modem: not found

Sending 'modem' (65228 KB) OKAY [ 2.095s]

Writing 'modem' OKAY [ 2.713s]

Finished. Total time: 5.006s

C:\_temp\android\Moto_G5_1st_November_2017_update>fastboot flash fsg fsg.mbn

(bootloader) has-slot:fsg: not found

Sending 'fsg' (2592 KB) OKAY [ 0.106s]

Writing 'fsg' OKAY [ 0.205s]

Finished. Total time: 0.511s

C:\_temp\android\Moto_G5_1st_November_2017_update>fastboot flash dsp adspso.bin

(bootloader) has-slot:dsp: not found

Sending 'dsp' (16384 KB) OKAY [ 0.586s]

Writing 'dsp' OKAY [ 0.852s]

Finished. Total time: 1.642s

C:\_temp\android\Moto_G5_1st_November_2017_update>fastboot flash logo logo.bin

(bootloader) has-slot:logo: not found

Sending 'logo' (2242 KB) OKAY [ 0.084s]

Writing 'logo' OKAY [ 0.350s]

Finished. Total time: 0.635s

C:\_temp\android\Moto_G5_1st_November_2017_update>fastboot flash boot boot.img

(bootloader) has-slot:boot: not found

Sending 'boot' (16384 KB) OKAY [ 0.531s]

Writing 'boot' (bootloader) Security version downgrade

(bootloader) Image boot failed validation

(bootloader) Preflash validation failed

FAILED (remote: '')

Finished. Total time: 0.924s

C:\_temp\android\Moto_G5_1st_November_2017_update>fastboot flash recovery recovery.img

(bootloader) has-slot:recovery: not found

Sending 'recovery' (16484 KB) OKAY [ 0.543s]

Writing 'recovery' (bootloader) Security version downgrade

(bootloader) Image recovery failed validation

(bootloader) Preflash validation failed

FAILED (remote: '')

Finished. Total time: 0.970s

C:\_temp\android\Moto_G5_1st_November_2017_update>fastboot flash system system.img_sparsechunk.0

(bootloader) has-slot:system: not found

Sending 'system' (524052 KB) OKAY [ 19.276s]

Writing 'system' (bootloader) Security version downgrade

(bootloader) Image s failed validation

(bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote: '')

Finished. Total time: 19.602s

C:\_temp\android\Moto_G5_1st_November_2017_update>fastboot oem getvar max-sparce-size

(bootloader) 'getvar' is not a supported oem command

(bootloader) See 'fastboot oem help'

FAILED (remote: '')

Finished. Total time: 0.036s

C:\_temp\android\Moto_G5_1st_November_2017_update>fastboot oem max-sparce-size

(bootloader) 'max-sparce-size' is not a supported oem command

(bootloader) See 'fastboot oem help'

FAILED (remote: '')

Finished. Total time: 0.045s

C:\_temp\android\Moto_G5_1st_November_2017_update>fastboot getvar max-sparce-size

(bootloader) max-sparce-size: not found

getvar:max-sparce-size FAILED (remote: '')

Finished. Total time: 0.029s

C:\_temp\android\Moto_G5_1st_November_2017_update>fastboot flash system system.img_sparsechunk.1

(bootloader) has-slot:system: not found

Sending 'system' (520883 KB) OKAY [ 19.927s]

Writing 'system' (bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote: '')

Finished. Total time: 20.186s

C:\_temp\android\Moto_G5_1st_November_2017_update>fastboot flash system system.img_sparsechunk.2

(bootloader) has-slot:system: not found

Sending 'system' (520702 KB) OKAY [ 19.170s]

Writing 'system' (bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote: '')

Finished. Total time: 19.427s

C:\_temp\android\Moto_G5_1st_November_2017_update>fastboot flash system system.img_sparsechunk.3

(bootloader) has-slot:system: not found

Sending 'system' (521654 KB) OKAY [ 19.606s]

Writing 'system' (bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote: '')

Finished. Total time: 19.869s

C:\_temp\android\Moto_G5_1st_November_2017_update>fastboot flash system system.img_sparsechunk.4

(bootloader) has-slot:system: not found

Sending 'system' (422743 KB) OKAY [ 16.362s]

Writing 'system' (bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote: '')

Finished. Total time: 16.622s

C:\_temp\android\Moto_G5_1st_November_2017_update>fastboot flash oem oem.img

(bootloader) has-slot:oem: not found

Sending 'oem' (188514 KB) OKAY [ 6.881s]

Writing 'oem' (bootloader) Security version downgrade

(bootloader) Image o failed validation

(bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote: '')

Finished. Total time: 7.176s