[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Antusuprik:
invalid sparse file format at header magic

is it normal ?

edited :

it's normal . . .

for information, anyone who want to manually flash this image have to

1. fastboot to TWRP (fastboot boot "twrp files".img)

2. do factory reset & advanced wipe (wipe all, except internal storage) via TWRP

3. put all the images in your fastboot platform tool folder

4. boot your phone to fastboot and manually flash the image via fastboot platform tool

Microsoft Windows [Version 10.0.18363.535]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot devices
d50fda64 fastboot

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot boot twrp-3.3.1-0-jasmine_sprout.img
Sending 'boot.img' (28348 KB) OKAY [ 0.596s]
Booting OKAY [ 0.154s]
Finished. Total time: 0.797s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot devices
d50fda64 fastboot

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot boot twrp-3.3.1-0-jasmine_sprout.img
Sending 'boot.img' (28348 KB) OKAY [ 0.602s]
Booting OKAY [ 0.162s]
Finished. Total time: 0.795s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot devices
d50fda64 fastboot

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot boot twrp-3.3.1-0-jasmine_sprout.img
Sending 'boot.img' (28348 KB) OKAY [ 0.610s]
Booting OKAY [ 0.157s]
Finished. Total time: 0.782s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot devices
d50fda64 fastboot

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash bluetooth_a bluetooth.img
Sending 'bluetooth_a' (556 KB) OKAY [ 0.000s]
Writing 'bluetooth_a' OKAY [ 0.000s]
Finished. Total time: 0.031s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash bluetooth_b bluetooth.img
Sending 'bluetooth_b' (556 KB) OKAY [ 0.016s]
Writing 'bluetooth_b' OKAY [ 0.016s]
Finished. Total time: 0.031s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash devcfg_a devcfg.img
Sending 'devcfg_a' (48 KB) OKAY [ 0.000s]
Writing 'devcfg_a' OKAY [ 0.000s]
Finished. Total time: 0.016s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash devcfg_b devcfg.img
Sending 'devcfg_b' (48 KB) OKAY [ 0.000s]
Writing 'devcfg_b' OKAY [ 0.016s]
Finished. Total time: 0.031s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash dsp_a dsp.img
Sending 'dsp_a' (16384 KB) OKAY [ 0.358s]
Writing 'dsp_a' OKAY [ 0.119s]
Finished. Total time: 0.477s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash dsp_b dsp.img
Sending 'dsp_b' (16384 KB) OKAY [ 0.353s]
Writing 'dsp_b' OKAY [ 0.117s]
Finished. Total time: 0.470s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash modem_a modem.img
Sending 'modem_a' (107988 KB) OKAY [ 2.335s]
Writing 'modem_a' OKAY [ 0.765s]
Finished. Total time: 3.100s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash modem_b modem.img
Sending 'modem_b' (107988 KB) OKAY [ 2.337s]
Writing 'modem_b' OKAY [ 0.763s]
Finished. Total time: 3.100s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash xbl_a xbl.img
Sending 'xbl_a' (2508 KB) OKAY [ 0.056s]
Writing 'xbl_a' OKAY [ 0.016s]
Finished. Total time: 0.103s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash xbl_b xbl.img
Sending 'xbl_b' (2508 KB) OKAY [ 0.069s]
Writing 'xbl_b' OKAY [ 0.016s]
Finished. Total time: 0.085s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash pmic_a pmic.img
Sending 'pmic_a' (40 KB) OKAY [ 0.016s]
Writing 'pmic_a' OKAY [ 0.000s]
Finished. Total time: 0.016s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash pmic_b pmic.img
Sending 'pmic_b' (40 KB) OKAY [ 0.000s]
Writing 'pmic_b' OKAY [ 0.000s]
Finished. Total time: 0.007s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash rpm_a rpm.img
Sending 'rpm_a' (220 KB) OKAY [ 0.000s]
Writing 'rpm_a' OKAY [ 0.016s]
Finished. Total time: 0.016s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash rpm_b rpm.img
Sending 'rpm_b' (220 KB) OKAY [ 0.016s]
Writing 'rpm_b' OKAY [ 0.000s]
Finished. Total time: 0.016s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash tz_a tz.img
Sending 'tz_a' (1924 KB) OKAY [ 0.053s]
Writing 'tz_a' OKAY [ 0.016s]
Finished. Total time: 0.069s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash tz_b tz.img
Sending 'tz_b' (1924 KB) OKAY [ 0.047s]
Writing 'tz_b' OKAY [ 0.016s]
Finished. Total time: 0.078s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash hyp_a hyp.img
Sending 'hyp_a' (272 KB) OKAY [ 0.000s]
Writing 'hyp_a' OKAY [ 0.016s]
Finished. Total time: 0.031s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash hyp_b hyp.img
Sending 'hyp_b' (272 KB) OKAY [ 0.000s]
Writing 'hyp_b' OKAY [ 0.000s]
Finished. Total time: 0.016s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash keymaster_a keymaster.img
Sending 'keymaster_a' (308 KB) OKAY [ 0.016s]
Writing 'keymaster_a' OKAY [ 0.016s]
Finished. Total time: 0.031s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash keymaster_b keymaster.img
Sending 'keymaster_b' (308 KB) OKAY [ 0.016s]
Writing 'keymaster_b' OKAY [ 0.000s]
Finished. Total time: 0.031s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash cmnlib64_a cmnlib64.img
Sending 'cmnlib64_a' (268 KB) OKAY [ 0.016s]
Writing 'cmnlib64_a' OKAY [ 0.000s]
Finished. Total time: 0.016s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash cmnlib64_b cmnlib64.img
Sending 'cmnlib64_b' (268 KB) OKAY [ 0.016s]
Writing 'cmnlib64_b' OKAY [ 0.016s]
Finished. Total time: 0.031s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash cmnlib_a cmnlib.img
Sending 'cmnlib_a' (220 KB) OKAY [ 0.022s]
Writing 'cmnlib_a' OKAY [ 0.000s]
Finished. Total time: 0.022s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash cmnlib_b cmnlib.img
Sending 'cmnlib_b' (220 KB) OKAY [ 0.000s]
Writing 'cmnlib_b' OKAY [ 0.016s]
Finished. Total time: 0.031s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash abl_a abl.img
Sending 'abl_a' (148 KB) OKAY [ 0.016s]
Writing 'abl_a' OKAY [ 0.000s]
Finished. Total time: 0.016s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash abl_b abl.img
Sending 'abl_b' (148 KB) OKAY [ 0.016s]
Writing 'abl_b' OKAY [ 0.000s]
Finished. Total time: 0.031s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash boot_a boot.img
Sending 'boot_a' (32464 KB) OKAY [ 0.710s]
Writing 'boot_a' OKAY [ 0.259s]
Finished. Total time: 0.970s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash boot_b boot.img
Sending 'boot_b' (32464 KB) OKAY [ 0.706s]
Writing 'boot_b' OKAY [ 0.228s]
Finished. Total time: 0.950s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash system_a system.img
Invalid sparse file format at header magic
Sending sparse 'system_a' 1/4 (781174 KB) OKAY [ 17.291s]
Writing 'system_a' OKAY [ 0.000s]
Sending sparse 'system_a' 2/4 (761422 KB) OKAY [ 17.317s]
Writing 'system_a' OKAY [ 0.000s]
Sending sparse 'system_a' 3/4 (771912 KB) OKAY [ 17.496s]
Writing 'system_a' OKAY [ 0.000s]
Sending sparse 'system_a' 4/4 (280517 KB) OKAY [ 10.493s]
Writing 'system_a' OKAY [ 0.000s]
Finished. Total time: 69.807s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash system_b system.img
Invalid sparse file format at header magic
Sending sparse 'system_b' 1/4 (781174 KB) OKAY [ 17.285s]
Writing 'system_b' OKAY [ 0.000s]
Sending sparse 'system_b' 2/4 (761422 KB) OKAY [ 17.295s]
Writing 'system_b' OKAY [ 0.000s]
Sending sparse 'system_b' 3/4 (771912 KB) OKAY [ 17.523s]
Writing 'system_b' OKAY [ 0.000s]
Sending sparse 'system_b' 4/4 (280517 KB) OKAY [ 10.537s]
Writing 'system_b' OKAY [ 0.000s]
Finished. Total time: 87.158s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash vendor_a vendor.img
Invalid sparse file format at header magic
Sending sparse 'vendor_a' 1/1 (696765 KB) OKAY [ 15.400s]
Writing 'vendor_a' OKAY [ 0.000s]
Finished. Total time: 141.819s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash vendor_b vendor.img
Invalid sparse file format at header magic
Sending sparse 'vendor_b' 1/1 (696765 KB) OKAY [ 15.401s]
Writing 'vendor_b' OKAY [ 0.000s]
Finished. Total time: 353.588s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash mdtp_a mdtp.img
Sending 'mdtp_a' (17392 KB) OKAY [ 0.389s]
Writing 'mdtp_a' OKAY [ 0.131s]
Finished. Total time: 314.558s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash mdtp_b mdtp.img
Sending 'mdtp_b' (17392 KB) OKAY [ 0.390s]
Writing 'mdtp_b' OKAY [ 0.121s]
Finished. Total time: 0.511s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash mdtpsecapp_a mdtpsecapp.img
Sending 'mdtpsecapp_a' (1056 KB) OKAY [ 0.038s]
Writing 'mdtpsecapp_a' OKAY [ 0.000s]
Finished. Total time: 0.038s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot flash mdtpsecapp_b mdtpsecapp.img
Sending 'mdtpsecapp_b' (1056 KB) OKAY [ 0.031s]
Writing 'mdtpsecapp_b' OKAY [ 0.016s]
Finished. Total time: 0.047s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot erase ddr
Erasing 'ddr' OKAY [ 0.016s]
Finished. Total time: 0.031s

C:\Users\MSI GL62M-7RD\Downloads\platform-tools>fastboot reboot
Rebooting OKAY [ 0.000s]
Finished. Total time: 0.000s

thanks to [MENTION=7404087]emgi2[/MENTION]

and [MENTION=8446651]J.D.M[/MENTION]