ls | xargs -l |awk -F '.' '{printf("%s %s\n",$1,$0)}' |sed 's/^/fastboot flash /g'
root@huang:/home/huang/1# ls
abl.img cmnlib.img fw_4u1ea.img oem_stanvbk.img vbmeta.img
aop.img devcfg.img hyp.img qupfw.img vendor.img
bluetooth.img dsp.img keymaster.img storsec.img xbl_config.img
boot.img dtbo.img LOGO.img system.img xbl.img
cmnlib64.img fw_4j1ed.img modem.img tz.img
root@huang:/home/huang/1# ls | xargs -l |awk -F '.' '{printf("%s_b %s\n",$1,$0)}' |sed 's/^/fastboot flash /g'
fastboot flash abl_b abl.img
fastboot flash aop_b aop.img
fastboot flash bluetooth_b bluetooth.img
fastboot flash boot_b boot.img
fastboot flash cmnlib64_b cmnlib64.img
fastboot flash cmnlib_b cmnlib.img
fastboot flash devcfg_b devcfg.img
fastboot flash dsp_b dsp.img
fastboot flash dtbo_b dtbo.img
fastboot flash fw_4j1ed_b fw_4j1ed.img
fastboot flash fw_4u1ea_b fw_4u1ea.img
fastboot flash hyp_b hyp.img
fastboot flash keymaster_b keymaster.img
fastboot flash LOGO_b LOGO.img
fastboot flash modem_b modem.img
fastboot flash oem_stanvbk_b oem_stanvbk.img
fastboot flash qupfw_b qupfw.img
fastboot flash storsec_b storsec.img
fastboot flash system_b system.img
fastboot flash tz_b tz.img
fastboot flash vbmeta_b vbmeta.img
fastboot flash vendor_b vendor.img
fastboot flash xbl_config_b xbl_config.img
fastboot flash xbl_b xbl.img
root@huang:/home/huang/1#
fastboot flash abl_b abl.img
fastboot flash aop_b aop.img
fastboot flash bluetooth_b bluetooth.img
fastboot flash boot_b boot.img
fastboot flash cmnlib64_b cmnlib64.img
fastboot flash cmnlib_b cmnlib.img
fastboot flash devcfg_b devcfg.img
fastboot flash dsp_b dsp.img
fastboot flash dtbo_b dtbo.img
fastboot flash fw_4j1ed_b fw_4j1ed.img
fastboot flash fw_4u1ea_b fw_4u1ea.img
fastboot flash hyp_b hyp.img
fastboot flash keymaster_b keymaster.img
fastboot flash LOGO_b LOGO.img
fastboot flash modem_b modem.img
fastboot flash qupfw_b qupfw.img
fastboot flash storsec_b storsec.img
fastboot flash system_b system.img
fastboot flash tz_b tz.img
fastboot flash vbmeta_b vbmeta.img
fastboot flash vendor_b vendor.img
fastboot flash xbl_config_b xbl_config.img
fastboot flash xbl_b xbl.img
fastboot flash oem_stanvbk oem_stanvbk.img
fastboot flash abl_a abl.img
fastboot flash aop_a aop.img
fastboot flash bluetooth_a bluetooth.img
fastboot flash boot_a boot.img
fastboot flash cmnlib64_a cmnlib64.img
fastboot flash cmnlib_a cmnlib.img
fastboot flash devcfg_a devcfg.img
fastboot flash dsp_a dsp.img
fastboot flash dtbo_a dtbo.img
fastboot flash fw_4j1ed_a fw_4j1ed.img
fastboot flash fw_4u1ea_a fw_4u1ea.img
fastboot flash hyp_a hyp.img
fastboot flash keymaster_a keymaster.img
fastboot flash LOGO_a LOGO.img
fastboot flash modem_a modem.img
fastboot flash qupfw_a qupfw.img
fastboot flash storsec_a storsec.img
fastboot flash system_a system.img
fastboot flash tz_a tz.img
fastboot flash vbmeta_a vbmeta.img
fastboot flash vendor_a vendor.img
fastboot flash xbl_config_a xbl_config.img
fastboot flash xbl_a xbl.img
fastboot flash oem_stanvbk oem_stanvbk.img
Sending 'abl_a' (204 KB) OKAY [ 0.011s]
Writing 'abl_a' FAILED (remote: 'Flashing is not allowed for Critical Partitions')
fastboot: error: Command failed
Sending 'aop_a' (180 KB) OKAY [ 0.008s]
Writing 'aop_a' OKAY [ 0.002s]
Finished. Total time: 0.015s
Sending 'bluetooth_a' (748 KB) OKAY [ 0.026s]
Writing 'bluetooth_a' OKAY [ 0.005s]
Finished. Total time: 0.037s
Sending 'boot_a' (65536 KB) OKAY [ 1.820s]
Writing 'boot_a' OKAY [ 0.315s]
Finished. Total time: 2.166s
Sending 'cmnlib64_a' (484 KB) OKAY [ 0.021s]
Writing 'cmnlib64_a' FAILED (remote: 'Flashing is not allowed for Critical Partitions')
fastboot: error: Command failed
Sending 'cmnlib_a' (368 KB) OKAY [ 0.018s]
Writing 'cmnlib_a' FAILED (remote: 'Flashing is not allowed for Critical Partitions')
fastboot: error: Command failed
Sending 'devcfg_a' (40 KB) OKAY [ 0.008s]
Writing 'devcfg_a' FAILED (remote: 'Flashing is not allowed for Critical Partitions')
fastboot: error: Command failed
Sending 'dsp_a' (32768 KB) OKAY [ 0.910s]
Writing 'dsp_a' OKAY [ 0.153s]
Finished. Total time: 1.118s
Sending 'dtbo_a' (8192 KB) OKAY [ 0.237s]
Writing 'dtbo_a' OKAY [ 0.069s]
Finished. Total time: 0.388s
Sending 'fw_4j1ed_a' (344 KB) OKAY [ 0.018s]
Writing 'fw_4j1ed_a' OKAY [ 0.003s]
Finished. Total time: 0.028s
Sending 'fw_4u1ea_a' (344 KB) OKAY [ 0.016s]
Writing 'fw_4u1ea_a' OKAY [ 0.004s]
Finished. Total time: 0.026s
Sending 'hyp_a' (380 KB) OKAY [ 0.015s]
Writing 'hyp_a' FAILED (remote: 'Flashing is not allowed for Critical Partitions')
fastboot: error: Command failed
Sending 'keymaster_a' (212 KB) OKAY [ 0.008s]
Writing 'keymaster_a' FAILED (remote: 'Flashing is not allowed for Critical Partitions')
fastboot: error: Command failed
Sending 'LOGO_a' (3156 KB) OKAY [ 0.096s]
Writing 'LOGO_a' OKAY [ 0.017s]
Finished. Total time: 0.121s
Sending 'modem_a' (121764 KB) OKAY [ 3.390s]
Writing 'modem_a' OKAY [ 0.545s]
Finished. Total time: 4.172s
Sending 'qupfw_a' (64 KB) OKAY [ 0.009s]
Writing 'qupfw_a' OKAY [ 0.002s]
Finished. Total time: 0.021s
Sending 'storsec_a' (24 KB) OKAY [ 0.006s]
Writing 'storsec_a' OKAY [ 0.001s]
Finished. Total time: 0.013s
Invalid sparse file format at header magic
Sending sparse 'system_a' 1/4 (785809 KB) OKAY [ 21.936s]
Writing 'system_a' OKAY [ 0.001s]
Sending sparse 'system_a' 2/4 (769816 KB) OKAY [ 25.289s]
Writing 'system_a' OKAY [ 0.001s]
Sending sparse 'system_a' 3/4 (766743 KB) OKAY [ 24.239s]
Writing 'system_a' OKAY [ 0.001s]
Sending sparse 'system_a' 4/4 (458360 KB) OKAY [ 15.849s]
Writing 'system_a' OKAY [ 0.001s]
Finished. Total time: 89.092s
Sending 'tz_a' (2008 KB) OKAY [ 0.057s]
Writing 'tz_a' FAILED (remote: 'Flashing is not allowed for Critical Partitions')
fastboot: error: Command failed
Sending 'vbmeta_a' (4 KB) OKAY [ 0.008s]
Writing 'vbmeta_a' OKAY [ 0.001s]
Finished. Total time: 0.017s
Invalid sparse file format at header magic
Sending sparse 'vendor_a' 1/2 (786409 KB) OKAY [ 21.965s]
Writing 'vendor_a' OKAY [ 0.001s]
Sending sparse 'vendor_a' 2/2 (220309 KB) OKAY [ 9.829s]
Writing 'vendor_a' OKAY [ 0.001s]
Finished. Total time: 32.551s
Sending 'xbl_config_a' (96 KB) OKAY [ 0.009s]
Writing 'xbl_config_a' FAILED (remote: 'Flashing is not allowed for Critical Partitions')
fastboot: error: Command failed
Sending 'xbl_a' (3212 KB) OKAY [ 0.092s]
Writing 'xbl_a' FAILED (remote: 'Flashing is not allowed for Critical Partitions')
fastboot: error: Command failed