[Moto G5S Plus Questions & Answers] voliveira92:
Ok, so I tried the stock you recomended and used the codes you provided.

Here's what I got. Frozen at boot screen. Tried from -fastboot- and -minimal adb and fastboot-.

SANDERS_RETAIL_8.1.0_OPS28.65-36-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot getvar max-sparse-size

max-sparse-size: 268435456

finished. total time: 0.000s

SANDERS_RETAIL_8.1.0_OPS28.65-36-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot oem fb_mode_set

...

OKAY [ 0.002s]

finished. total time: 0.002s

SANDERS_RETAIL_8.1.0_OPS28.65-36-11_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.002s]

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.057s

SANDERS_RETAIL_8.1.0_OPS28.65-36-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot flash bootloader bootloader.img

target reported max download size of 534773760 bytes

sending 'bootloader' (5115 KB)...

OKAY [ 0.122s]

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.519s]

finished. total time: 0.641s

SANDERS_RETAIL_8.1.0_OPS28.65-36-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot flash modem NON-HLOS.bin

target reported max download size of 534773760 bytes

sending 'modem' (71941 KB)...

OKAY [ 1.678s]

writing 'modem'...

OKAY [ 0.980s]

finished. total time: 2.658s

SANDERS_RETAIL_8.1.0_OPS28.65-36-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot flash fsg fsg.mbn

target reported max download size of 534773760 bytes

sending 'fsg' (3024 KB)...

OKAY [ 0.071s]

writing 'fsg'...

OKAY [ 0.120s]

finished. total time: 0.191s

SANDERS_RETAIL_8.1.0_OPS28.65-36-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot erase modemst1

erasing 'modemst1'...

OKAY [ 0.035s]

finished. total time: 0.035s

SANDERS_RETAIL_8.1.0_OPS28.65-36-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot erase modemst2

erasing 'modemst2'...

OKAY [ 0.035s]

finished. total time: 0.035s

SANDERS_RETAIL_8.1.0_OPS28.65-36-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot flash dsp adspso.bin

target reported max download size of 534773760 bytes

sending 'dsp' (16384 KB)...

OKAY [ 0.382s]

writing 'dsp'...

OKAY [ 0.254s]

finished. total time: 0.637s

SANDERS_RETAIL_8.1.0_OPS28.65-36-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot flash logo logo.bin

target reported max download size of 534773760 bytes

sending 'logo' (2192 KB)...

OKAY [ 0.051s]

writing 'logo'...

OKAY [ 0.097s]

finished. total time: 0.150s

SANDERS_RETAIL_8.1.0_OPS28.65-36-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot flash boot boot.img

target reported max download size of 534773760 bytes

sending 'boot' (16384 KB)...

OKAY [ 0.396s]

writing 'boot'...

(bootloader) Image signed with key bad key

OKAY [ 0.357s]

finished. total time: 0.754s

SANDERS_RETAIL_8.1.0_OPS28.65-36-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot flash recovery recovery.img

target reported max download size of 534773760 bytes

sending 'recovery' (20580 KB)...

OKAY [ 0.490s]

writing 'recovery'...

(bootloader) Image signed with key bad key

OKAY [ 0.452s]

finished. total time: 0.942s

SANDERS_RETAIL_8.1.0_OPS28.65-36-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot flash system system.img_sparsechunk.0

target reported max download size of 534773760 bytes

sending 'system' (262140 KB)...

OKAY [ 6.097s]

writing 'system'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 6.099s

SANDERS_RETAIL_8.1.0_OPS28.65-36-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot flash system system.img_sparsechunk.1

target reported max download size of 534773760 bytes

sending 'system' (249863 KB)...

OKAY [ 5.809s]

writing 'system'...

OKAY [ 2.935s]

finished. total time: 8.744s

SANDERS_RETAIL_8.1.0_OPS28.65-36-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot flash system system.img_sparsechunk.2

target reported max download size of 534773760 bytes

sending 'system' (260323 KB)...

OKAY [ 6.091s]

writing 'system'...

OKAY [ 3.729s]

finished. total time: 9.820s

SANDERS_RETAIL_8.1.0_OPS28.65-36-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot flash system system.img_sparsechunk.3

target reported max download size of 534773760 bytes

sending 'system' (262140 KB)...

OKAY [ 6.105s]

writing 'system'...

OKAY [ 3.309s]

finished. total time: 9.414s

SANDERS_RETAIL_8.1.0_OPS28.65-36-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot flash system system.img_sparsechunk.4

target reported max download size of 534773760 bytes

sending 'system' (262142 KB)...

OKAY [ 6.098s]

writing 'system'...

OKAY [ 3.106s]

finished. total time: 9.203s

SANDERS_RETAIL_8.1.0_OPS28.65-36-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot flash system system.img_sparsechunk.5

target reported max download size of 534773760 bytes

sending 'system' (262141 KB)...

OKAY [ 6.097s]

writing 'system'...

OKAY [ 2.928s]

finished. total time: 9.025s

SANDERS_RETAIL_8.1.0_OPS28.65-36-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot flash system system.img_sparsechunk.6

target reported max download size of 534773760 bytes

sending 'system' (262141 KB)...

OKAY [ 6.104s]

writing 'system'...

OKAY [ 2.986s]

finished. total time: 9.090s

SANDERS_RETAIL_8.1.0_OPS28.65-36-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot flash system system.img_sparsechunk.7

target reported max download size of 534773760 bytes

sending 'system' (255675 KB)...

OKAY [ 5.971s]

writing 'system'...

OKAY [ 3.487s]

finished. total time: 9.459s

SANDERS_RETAIL_8.1.0_OPS28.65-36-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot flash system system.img_sparsechunk.8

target reported max download size of 534773760 bytes

sending 'system' (242629 KB)...

OKAY [ 5.647s]

writing 'system'...

OKAY [ 2.830s]

finished. total time: 8.478s

SANDERS_RETAIL_8.1.0_OPS28.65-36-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot flash system system.img_sparsechunk.9

target reported max download size of 534773760 bytes

sending 'system' (239745 KB)...

OKAY [ 5.575s]

writing 'system'...

(bootloader) Invalid sparse image data

(bootloader) Failed to flash sparse image

FAILED (remote failure)

finished. total time: 6.124s

SANDERS_RETAIL_8.1.0_OPS28.65-36-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot flash system system.img_sparsechunk.10

target reported max download size of 534773760 bytes

sending 'system' (65436 KB)...

OKAY [ 1.518s]

writing 'system'...

(bootloader) Invalid sparse image data

(bootloader) Failed to flash sparse image

FAILED (remote failure)

finished. total time: 1.520s

SANDERS_RETAIL_8.1.0_OPS28.65-36-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot flash oem oem.img

target reported max download size of 534773760 bytes

sending 'oem' (135426 KB)...

OKAY [ 3.150s]

writing 'oem'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 3.153s

SANDERS_RETAIL_8.1.0_OPS28.65-36-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot erase cache

erasing 'cache'...

OKAY [ 0.009s]

finished. total time: 0.009s

SANDERS_RETAIL_8.1.0_OPS28.65-36-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot erase userdata

erasing 'userdata'...

OKAY [ 0.124s]

finished. total time: 0.124s

SANDERS_RETAIL_8.1.0_OPS28.65-36-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot erase DDR

erasing 'DDR'...

OKAY [ 0.001s]

finished. total time: 0.001s

SANDERS_RETAIL_8.1.0_OPS28.65-36-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot oem fb_mode_clear

...

OKAY [ 0.002s]

finished. total time: 0.002s

SANDERS_RETAIL_8.1.0_OPS28.65-36-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fastboot reboot

rebooting...

finished. total time: 0.001s