[Moto G4 Plus Questions & Answers] gautamchawla195:
C:\mfastboot>mfastboot oem lock begin

...

(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:\mfastboot>mfastboot oem lock begin

...

(bootloader) Flash valid Android images now

(bootloader) Then re-run this command to lock

OKAY [ 0.011s]

finished. total time: 0.012s

C:\mfastboot>mfastboot flash partition gpt.bin

target max-sparse-size: 256MB

sending 'partition' (32 KB)...

OKAY [ 0.005s]

writing 'partition'...

(bootloader) Security version downgrade

(bootloader) Image primary_gpt failed validation

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.043s

C:\mfastboot>mfastboot flash bootloader bootloader.img

target max-sparse-size: 256MB

sending 'bootloader' (3651 KB)...

OKAY [ 0.153s]

writing 'bootloader'...

(bootloader) validating: bootloader.default.xml ...

(bootloader) will pass: flash:aboot

(bootloader) will pass: flash:rpm

(bootloader) will pass: flash:tz

(bootloader) will pass: flash:hyp

(bootloader) will pass: flash:cmnlib

(bootloader) will pass: flash:keymaster

(bootloader) will pass: flash:sbl1

(bootloader) committing: bootloader.default.xml ...

(bootloader) - flashing 'emmc_appsboot.mbn' to 'aboot'

(bootloader) - flashing 'rpm.mbn' to 'rpm'

(bootloader) - flashing 'tz.mbn' to 'tz'

(bootloader) - flashing 'hyp.mbn' to 'hyp'

(bootloader) - flashing 'cmnlib.mbn' to 'cmnlib'

(bootloader) - flashing 'keymaster.mbn' to 'keymaster'

(bootloader) - flashing 'sbl1.mbn' to 'sbl1'

OKAY [ 0.433s]

finished. total time: 0.589s

C:\mfastboot>mfastboot flash logo logo.bin

target max-sparse-size: 256MB

sending 'logo' (2105 KB)...

OKAY [ 0.084s]

writing 'logo'...

OKAY [ 0.055s]

finished. total time: 0.142s

C:\mfastboot>mfastboot flash boot boot.img

target max-sparse-size: 256MB

sending 'boot' (16384 KB)...

OKAY [ 0.653s]

writing 'boot'...

(bootloader) Security version downgrade

(bootloader) Image boot failed validation

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.821s

C:\mfastboot>mfastboot flash recovery recovery.img

target max-sparse-size: 256MB

sending 'recovery' (16484 KB)...

OKAY [ 0.649s]

writing 'recovery'...

(bootloader) Security version downgrade

(bootloader) Image recovery failed validation

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.819s

C:\mfastboot>mfastboot flash dsp adspso.bin

target max-sparse-size: 256MB

sending 'dsp' (16384 KB)...

OKAY [ 0.648s]

writing 'dsp'...

OKAY [ 0.242s]

finished. total time: 0.894s

C:\mfastboot>mfastboot flash oem oem.img

target max-sparse-size: 256MB

sending 'oem' (96490 KB)...

OKAY [ 3.744s]

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

C:\mfastboot>mfastboot flash system system.img_sparsechunk.0

target max-sparse-size: 256MB

sending 'system' (261001 KB)...

OKAY [ 10.083s]

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: 10.149s

C:\mfastboot>mfastboot flash system system.img_sparsechunk.1

target max-sparse-size: 256MB

sending 'system' (250858 KB)...

OKAY [ 9.720s]

writing 'system'...

(bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 9.749s

C:\mfastboot>mfastboot flash system system.img_sparsechunk.2

target max-sparse-size: 256MB

sending 'system' (254625 KB)...

OKAY [ 9.288s]

writing 'system'...

(bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 9.317s

C:\mfastboot>mfastboot flash system system.img_sparsechunk.3

target max-sparse-size: 256MB

sending 'system' (261577 KB)...

OKAY [ 9.615s]

writing 'system'...

(bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 9.636s

C:\mfastboot>mfastboot flash system system.img_sparsechunk.4

target max-sparse-size: 256MB

sending 'system' (260443 KB)...

OKAY [ 9.842s]

writing 'system'...

(bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 9.880s

C:\mfastboot>mfastboot flash system system.img_sparsechunk.5

target max-sparse-size: 256MB

sending 'system' (248842 KB)...

OKAY [ 9.306s]

writing 'system'...

(bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 9.332s

C:\mfastboot>mfastboot flash system system.img_sparsechunk.6

target max-sparse-size: 256MB

sending 'system' (259549 KB)...

OKAY [ 9.799s]

writing 'system'...

(bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 9.843s

C:\mfastboot>mfastboot flash system system.img_sparsechunk.7

target max-sparse-size: 256MB

sending 'system' (82497 KB)...

OKAY [ 3.210s]

writing 'system'...

(bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 3.229s

C:\mfastboot>mfastboot flash modem NON-HLOS.bin

target max-sparse-size: 256MB

sending 'modem' (76954 KB)...

OKAY [ 3.005s]

writing 'modem'...

OKAY [ 1.133s]

finished. total time: 4.142s

C:\mfastboot>mfastboot erase modemst1

erasing 'modemst1'...

OKAY [ 0.030s]

finished. total time: 0.031s

C:\mfastboot>mfastboot erase modemst2

erasing 'modemst2'...

OKAY [ 0.021s]

finished. total time: 0.023s

C:\mfastboot>mfastboot flash fsg fsg.mbn

target max-sparse-size: 256MB

sending 'fsg' (2040 KB)...

OKAY [ 0.084s]

writing 'fsg'...

OKAY [ 0.064s]

finished. total time: 0.151s

C:\mfastboot>mfastboot erase cache

erasing 'cache'...

OKAY [ 0.021s]

finished. total time: 0.023s

C:\mfastboot>mfastboot erase userdata

erasing 'userdata'...

OKAY [ 1.322s]

finished. total time: 1.352s

C:\mfastboot>mfastboot erase customize

erasing 'customize'...

OKAY [ 0.014s]

finished. total time: 0.016s

C:\mfastboot>mfastboot erase clogo

erasing 'clogo'...

OKAY [ 0.017s]

finished. total time: 0.019s

C:\mfastboot>mfastboot oem lock

...

(bootloader) Still require signed boot.img

OKAY [ 0.004s]

finished. total time: 0.006s

C:\mfastboot>mfastboot reboot