-----------------------------------------------------------------------------------------------------------------------------
C:\ADB>fastboot flashing unlock
(bootloader) Start unlock flow
OKAY [ 6.486s]
Finished. Total time: 6.536s
C:\ADB>fastboot flashing unlock_critical
(bootloader) Start unlock flow
OKAY [ 3.940s]
Finished. Total time: 3.943s
C:\ADB>fastboot erase system
******** Did you mean to fastboot format this ext4 partition?
Erasing 'system' OKAY [ 0.573s]
Finished. Total time: 0.597s
C:\ADB>fastboot flash system system.img
Sending sparse 'system' 1/24 (131048 KB) OKAY [ 5.587s]
Writing 'system' OKAY [ 1.937s]
Sending sparse 'system' 2/24 (131040 KB) OKAY [ 5.588s]
Writing 'system' OKAY [ 1.877s]
Sending sparse 'system' 3/24 (131064 KB) OKAY [ 5.593s]
Writing 'system' OKAY [ 1.837s]
Sending sparse 'system' 4/24 (131056 KB) OKAY [ 5.589s]
Writing 'system' FAILED (Write to device failed (Invalid argument))
fastboot: error: Command failed
C:\ADB>fastboot flash system system.img
< waiting for any device >
Sending sparse 'system' 1/24 (131048 KB) OKAY [ 5.638s]
Writing 'system' OKAY [ 2.276s]
Sending sparse 'system' 2/24 (131040 KB) OKAY [ 5.633s]
Writing 'system' OKAY [ 2.092s]
Sending sparse 'system' 3/24 (131064 KB) OKAY [ 5.633s]
Writing 'system' OKAY [ 1.993s]
Sending sparse 'system' 4/24 (131056 KB) OKAY [ 5.633s]
Writing 'system' OKAY [ 1.883s]
Sending sparse 'system' 5/24 (125878 KB) OKAY [ 5.782s]
Writing 'system' OKAY [ 71.926s]
Sending sparse 'system' 6/24 (130928 KB) OKAY [ 5.633s]
Writing 'system' OKAY [ 2.651s]
Sending sparse 'system' 7/24 (130936 KB) OKAY [ 5.632s]
Writing 'system' OKAY [ 2.450s]
Sending sparse 'system' 8/24 (130700 KB) OKAY [ 5.626s]
Writing 'system' OKAY [ 2.755s]
Sending sparse 'system' 9/24 (130868 KB) OKAY [ 5.639s]
Writing 'system' OKAY [ 3.510s]
Sending sparse 'system' 10/24 (130884 KB) OKAY [ 5.641s]
Writing 'system' OKAY [ 3.681s]
Sending sparse 'system' 11/24 (131044 KB) OKAY [ 5.633s]
Writing 'system' OKAY [ 1.899s]
Sending sparse 'system' 12/24 (131052 KB) OKAY [ 5.634s]
Writing 'system' OKAY [ 1.999s]
Sending sparse 'system' 13/24 (130331 KB) OKAY [ 5.665s]
Writing 'system' OKAY [ 8.915s]
Sending sparse 'system' 14/24 (129444 KB) OKAY [ 5.635s]
Writing 'system' OKAY [ 11.732s]
Sending sparse 'system' 15/24 (130824 KB) OKAY [ 5.635s]
Writing 'system' OKAY [ 3.445s]
Sending sparse 'system' 16/24 (130984 KB) OKAY [ 5.639s]
Writing 'system' OKAY [ 2.723s]
Sending sparse 'system' 17/24 (131056 KB) OKAY [ 5.633s]
Writing 'system' OKAY [ 1.903s]
Sending sparse 'system' 18/24 (130992 KB) OKAY [ 5.637s]
Writing 'system' OKAY [ 2.704s]
Sending sparse 'system' 19/24 (130968 KB) OKAY [ 5.639s]
Writing 'system' OKAY [ 3.015s]
Sending sparse 'system' 20/24 (131000 KB) OKAY [ 5.637s]
Writing 'system' OKAY [ 2.610s]
Sending sparse 'system' 21/24 (131032 KB) OKAY [ 5.641s]
Writing 'system' OKAY [ 2.102s]
Sending sparse 'system' 22/24 (131056 KB) OKAY [ 5.638s]
Writing 'system' OKAY [ 1.951s]
Sending sparse 'system' 23/24 (130899 KB) OKAY [ 5.809s]
Writing 'system' OKAY [ 25.579s]
Sending sparse 'system' 24/24 (7584 KB) OKAY [ 0.407s]
Writing 'system' OKAY [ 1.111s]
Finished. Total time: 300.234s
C:\ADB>fastboot flash recovery twrp.img
Sending 'recovery' (24836 KB) OKAY [ 1.263s]
Writing 'recovery' OKAY [ 0.334s]
Finished. Total time: 1.974s
C:\ADB>fastboot reboot
Rebooting OKAY [ 0.003s]
Finished. Total time: 0.006s
C:\ADB>
-----------------------------------------------------------------------------------------------------------------------------