To find this page : Type in search bar :
:start
@echo off
color ed
cd "%~dp0"
mode con:cols=85 lines=35
set /A count=4
cls
set PATH=%SystemRoot%\system32;%PATH%
echo.
echo [*] waiting for Device
setlocal EnableDelayedExpansion
for /f "tokens=*" %%f in ('fastboot devices') do (
set devicestr=%%f
if "!devicestr!"=="!devicestr:List=!" (
for /f "tokens=1" %%d in ("!devicestr!") do (
set deviceid=%%d
echo [*] List Devices ...
echo.
echo [*] Device found !deviceid!
echo.
echo [*] Preparing install Firmware
echo.
echo.
echo [*] installing Bypass Firmware please wait...
echo.
fastboot erase boot_a
fastboot erase boot_b
fastboot flash xbl_a xbl.elf
fastboot flash xbl_b xbl.elf
fastboot flash xblbak xbl.elf
fastboot flash xbl_config_a xbl_config.elf
fastboot flash xbl_config_b xbl_config.elf
fastboot flash xbl_configbak xbl_config.elf
fastboot flash abl_a abl.elf
fastboot flash abl_b abl.elf
fastboot flash ablbak abl.elf
fastboot flash tz_a tz.mbn
fastboot flash tz_b tz.mbn
fastboot flash tzbak tz.mbn
fastboot flash hyp_a hyp.mbn
fastboot flash hyp_b hyp.mbn
fastboot flash hypbak hyp.mbn
fastboot flash rpm rpm.mbn
fastboot flash rpmbak rpm.mbn
fastboot flash devcfg_a hypvmperformance.mbn
fastboot flash devcfg_b hypvmperformance.mbn
fastboot flash devcfgbak devcfg.mbn
fastboot flash storsec storsec.mbn
fastboot flash bluetooth_a BTFM.bin
fastboot flash bluetooth_b BTFM.bin
fastboot flash bluetoothbak BTFM.bin
fastboot flash cmnlib cmnlib.mbn
fastboot flash cmnlibbak cmnlib.mbn
fastboot flash cmnlib64 cmnlib64.mbn
fastboot flash cmnlib64bak cmnlib64.mbn
fastboot flash modem_a NON-HLOS.bin
fastboot flash modem_b NON-HLOS.bin
fastboot flash modemfirmware_a MODEM-FW.bin
fastboot flash modemfirmware_b MODEM-FW.bin
fastboot flash idmanager_a idmanager.mbn
fastboot flash idmanager_b idmanager.mbn
fastboot flash dsp_a dspso.bin
fastboot flash dsp_b dspso.bin
fastboot flash dspbak dspso.bin
fastboot flash pdp_cdb_a pdp_cdb.elf
fastboot flash pdp_cdb_b pdp_cdb.elf
fastboot flash soccp_debug_a sdi.mbn
fastboot flash soccp_debug_b sdi.mbn
fastboot flash soccp_dcd_a dcd.mbn
fastboot flash soccp_dcd_b dcd.mbn
fastboot flash pdp_a pdp.elf
fastboot flash pdp_b pdp.elf
fastboot flash xbl_sc_test_mode xbl_sc_test_mode.bin
fastboot erase metadata
fastboot flash metadata metadata.img
fastboot flash keymaster_a km41.mbn
fastboot flash keymaster_b km41.mbn
fastboot flash keymaster_a keymint.mbn
fastboot flash keymaster_b keymint.mbn
fastboot flash keymasterbak km41.mbn
fastboot flash logo logo.img
fastboot erase misc
fastboot flash misc misc.img
fastboot flash aop_a aop.mbn
fastboot flash aop_b aop.mbn
fastboot flash aop_config_a aop_devcfg.mbn
fastboot flash aop_config_b aop_devcfg.mbn
fastboot flash aopbak aop.mbn
fastboot flash featenabler_a featenabler.mbn
fastboot flash featenabler_b featenabler.mbn
fastboot flash qupfw_a qupv3fw.elf
fastboot flash qupfw_b qupv3fw.elf
fastboot flash qupfw qupv3fw.elf
fastboot flash qupfwbak qupv3fw.elf
fastboot erase imagefv_a
fastboot erase imagefv_b
fastboot flash imagefv_a imagefv.elf
fastboot flash imagefv_b imagefv.elf
fastboot flash imagefvbak_a imagefv.elf
fastboot flash imagefvbak_b imagefv.elf
fastboot flash uefi_a uefi.elf
fastboot flash uefi_b uefi.elf
fastboot flash uefisecapp_a uefi_sec.mbn
fastboot flash uefisecapp_b uefi_sec.mbn
fastboot flash uefisecappbak uefi_sec.mbn
fastboot flash spuservice_a spu_service.mbn
fastboot flash spuservice_b spu_service.mbn
fastboot flash multiimgoem_a multi_image.mbn
fastboot flash multiimgoem_b multi_image.mbn
fastboot flash multiimgqti_a multi_image_qti.mbn
fastboot flash multiimgqti_b multi_image_qti.mbn
fastboot flash super super.img
fastboot flash system system.img
fastboot flash vendor vendor.img
fastboot flash vbmeta vbmeta.img
fastboot flash vbmetabak vbmeta.img
fastboot flash vbmeta_system vbmeta_system.img
fastboot flash dtbo dtbo.img
fastboot flash cache cache.img
fastboot flash shrm_a shrm.elf
fastboot flash shrm_b shrm.elf
fastboot flash cpucp_a cpucp.elf
fastboot flash cpucp_b cpucp.elf
fastboot flash cpucp_dtb_a cpucp_dtb.elf
fastboot flash cpucp_dtb_b cpucp_dtb.elf
fastboot flash rescue rescue.img
fastboot flash rtice rtice.mbn
fastboot erase logfs
fastboot flash logfs logfs_ufs_8mb.bin
fastboot erase userdata
fastboot flash userdata userdata.img
fastboot flash recovery_a recovery.img
fastboot flash recovery_b recovery.img
fastboot flash toolsfv tools.fv
fastboot flash xbl_ramdump_a XblRamdump.elf
fastboot flash xbl_ramdump_b XblRamdump.elf
fastboot flash pvmfw_a pvmfw.img
fastboot flash pvmfw_b pvmfw.img
fastboot flash init_boot_a init_boot.img
fastboot flash init_boot_b init_boot.img
fastboot flash vendor_boot_a vendor_boot.img
fastboot flash vendor_boot_b vendor_boot.img
fastboot flash dtbo_a dtbo.img
fastboot flash dtbo_b dtbo.img
fastboot flash vm-bootsys_a vm-bootsys.img
fastboot flash vm-bootsys_b vm-bootsys.img
fastboot flash vbmeta_a vbmeta.img
fastboot flash vbmeta_b vbmeta.img
fastboot flash vbmeta_system_a vbmeta_system.img
fastboot flash vbmeta_system_b vbmeta_system.img
fastboot flash countrycode_a countrycode.img
fastboot flash countrycode_b countrycode.img
fastboot erase secdata
fastboot flash cust cust.img
fastboot flash boot_a boot.img
fastboot flash boot_b boot.img
fastboot erase opcust
fastboot erase opconfig
fastboot erase ddr
fastboot erase apdp
fastboot cdmsfix
fastboot oem erase-vb-index
fastboot set_active a
fastboot reboot
echo.
echo [*] Done!!
fastboot -s !deviceid! reboot
)
)
)
echo.
echo "Disconnect USB Cable...."
echo.
exit