[Moto G5S Plus Questions & Answers] buch11:
Hi All,

My moto g5s plus( Indian model - XT 1804 ) has stopped booting altogether for last few days. Things I have already tried:

Try recivering using "Recovery Mode" from boot options

dint work, keeps coming back to bootloader screen with error "Failed to validate recovery image"

Install Moto/Lenovo assistant and try flashing using that tool

This does not work because IMEI and SKU on my device are set to all 0s.

RSA downloads the firmware and fails when it starts to flash the same because of IMEI/SKU being all 0s.

Flash the RSA downloaded firmware manually( RSA looked at my IMEI number and downloaded - SANDERS_OPS28.65_36_14_cid50_subsidy_DEFAULT_regulatory_DEFAULT_CFC.xml )

The very first step involving gpt.bin keeps failing with below error

fastboot flash partition gpt.bin
(bootloader) is-logical:partition: not found
Sending 'partition' (45 KB) OKAY [ 0.171s]
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: '')
fastboot: error: Command failed

Fastboot is able to list my device when I run "fastboot devices" command.

Output of fastboot get all variables is below

fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: moto-msm8953-C2.12(*)
(bootloader) product: sanders
(bootloader) board: sanders
(bootloader) secure: yes
(bootloader) hwrev: P4
(bootloader) radio: 2
(bootloader) storage-type: emmc
(bootloader) emmc: 64GB SAMSUNG RC14MB 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: MY_SERIAL_NUMBER ( this has a value, I have redacted it on purpose )
(bootloader) cid: 0xDEAD
(bootloader) channelid: 0x00
(bootloader) uid: MY_UID ( this has a value, I have redacted it on purpose )
(bootloader) securestate: oem_locked
(bootloader) iswarrantyvoid: n/a
(bootloader) max-download-size: 534773760
(bootloader) reason: Volume down key pressed
(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-VC2.12-0-g07ff23c
(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.019s

What should be my next step to flash this stock rom?

This device is not rooted neither was it running a custom rom.

PS: ADB is not able detect this device either.