[X Style (Pure) Android Development] Sagar_1401:
C:\Root 4>fastboot oem lock begin

...

(bootloader) Please fully flash the signed build before locking phone!

OKAY [ 0.072s]

finished. total time: 0.079s

C:\Root 4>fastboot flash partition gpt.bin

target reported max download size of 536870912 bytes

sending 'partition' (32 KB)...

OKAY [ 0.004s]

writing 'partition'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.384s

C:\Root 4>fastboot flash bootloader bootloader.img

target reported max download size of 536870912 bytes

sending 'bootloader' (2699 KB)...

OKAY [ 0.065s]

writing 'bootloader'...

(bootloader) flashing aboot ...

(bootloader) flashing sbl1 ...

(bootloader) flashing pmic ...

(bootloader) flashing rpm ...

(bootloader) flashing tz ...

(bootloader) flashing hyp ...

(bootloader) flashing sdi ...

OKAY [ 2.144s]

finished. total time: 2.221s

C:\Root 4>fastboot flash logo logo.bin

target reported max download size of 536870912 bytes

sending 'logo' (3687 KB)...

OKAY [ 0.096s]

writing 'logo'...

OKAY [ 0.064s]

finished. total time: 0.164s

C:\Root 4>fastboot flash boot boot.img

target reported max download size of 536870912 bytes

sending 'boot' (40960 KB)...

OKAY [ 0.999s]

writing 'boot'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 1.718s

C:\Root 4>fastboot flash recovery recovery.img

target reported max download size of 536870912 bytes

sending 'recovery' (41040 KB)...

OKAY [ 0.987s]

writing 'recovery'...

OKAY [ 1.225s]

finished. total time: 2.223s

C:\Root 4>fastboot flash system system.img_sparsechunk.0

target reported max download size of 536870912 bytes

sending 'system' (261847 KB)...

OKAY [ 5.862s]

writing 'system'...

(bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 6.329s

C:\Root 4>fastboot flash system system.img_sparsechunk.1

target reported max download size of 536870912 bytes

sending 'system' (247788 KB)...

OKAY [ 5.531s]

writing 'system'...

(bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 5.623s

C:\Root 4>fastboot flash system system.img_sparsechunk.2

target reported max download size of 536870912 bytes

sending 'system' (256654 KB)...

OKAY [ 5.727s]

writing 'system'...

(bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 5.784s

C:\Root 4>fastboot flash system system.img_sparsechunk.3

target reported max download size of 536870912 bytes

sending 'system' (254253 KB)...

OKAY [ 5.697s]

writing 'system'...

(bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 5.793s

C:\Root 4>fastboot flash system system.img_sparsechunk.4

target reported max download size of 536870912 bytes

sending 'system' (256069 KB)...

OKAY [ 5.718s]

writing 'system'...

(bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 5.791s

C:\Root 4>fastboot flash system system.img_sparsechunk.5

target reported max download size of 536870912 bytes

sending 'system' (254366 KB)...

OKAY [ 5.570s]

writing 'system'...

(bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 5.602s

C:\Root 4>fastboot flash system system.img_sparsechunk.6

target reported max download size of 536870912 bytes

sending 'system' (247912 KB)...

OKAY [ 5.443s]

writing 'system'...

(bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 5.483s

C:\Root 4>fastboot flash system system.img_sparsechunk.7

target reported max download size of 536870912 bytes

sending 'system' (252511 KB)...

OKAY [ 5.519s]

writing 'system'...

(bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 5.570s

C:\Root 4>fastboot flash system system.img_sparsechunk.8

target reported max download size of 536870912 bytes

sending 'system' (43824 KB)...

OKAY [ 0.958s]

writing 'system'...

(bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.990s

C:\Root 4>fastboot flash modem NON-HLOS.bin

target reported max download size of 536870912 bytes

sending 'modem' (41686 KB)...

OKAY [ 0.926s]

writing 'modem'...

OKAY [ 0.647s]

finished. total time: 1.583s

C:\Root 4>fastboot erase modemst1

erasing 'modemst1'...

OKAY [ 0.016s]

finished. total time: 0.016s

C:\Root 4>fastboot erase modemst2

erasing 'modemst2'...

OKAY [ 0.011s]

finished. total time: 0.014s

C:\Root 4>fastboot erase cache

erasing 'cache'...

OKAY [ 0.024s]

finished. total time: 0.028s

C:\Root 4>fastboot erase userdata

erasing 'userdata'...

OKAY [ 1.018s]

finished. total time: 1.022s

C:\Root 4>fastboot oem lock

...

(bootloader) Please flash valid signed images just after lock begin

(bootloader) command!

OKAY [ 0.028s]

finished. total time: 0.032s

C:\Root 4>fastboot reboot

rebooting...

finished. total time: 0.004s

my bad done flashing the stock(i was flashing the older version :p)