Fastboot flash commands

fastboot getvar product
fastboot getvar product
fastboot flash partition gpt_both0.bin
fastboot flash tz tz.mbn
fastboot flash sbl1 sbl1.mbn
fastboot flash rpm rpm.mbn
fastboot flash aboot emmc_appsboot.mbn
fastboot flash hyp hyp.mbn
fastboot flash tzbak tz.mbn
fastboot flash sbl1bak sbl1.mbn
fastboot flash rpmbak rpm.mbn
fastboot flash abootbak emmc_appsboot.mbn
fastboot flash hypbak hyp.mbn
fastboot erase boot
fastboot flash modem NON-HLOS.bin
fastboot flash system system.img
fastboot flash cache cache.img
fastboot flash userdata userdata.img
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot flash persist persist.img
fastboot flash sec sec.dat
fastboot flash splash splash.img
fastboot reboot
Note :
  • this command for installation OTA firmware \fastboot update update.zip
  • Command type to installation is type FLASH…fastboot flash recovery recovery.img —> to install recovery.img from PC to your android
  • command type to show your phone product :Fastboot getvar product —> it will show your product device
  • Command to wipe or delete Partition :Fastboot erase …..  partition you wont remove… 
    example if i wont wipe system, my command is fastboot erase system
    if you wont erase data, command type is fastboot erase userdata
    this is a symple metode guysfastboot erase boot —-> to erase kernel or boot.img
    fastboot erase recovery —-> to remove recovery.img
    fastboot erase system —-> to removed all system folder
    fastboot erase userdata —-> to remove all data/….