Asus Zenfone AR ZS571KL

@ECHO OFF

setlocal enabledelayedexpansion

SET dataerase=0

IF %1 EQU 1 ( SET dataerase=1 )

IF NOT [%2] EQU [] ( SET para=-s )

fastboot getvar version-bootloader %para% %2

echo “Saving log to fastboot.log”

echo “flash partition:0 gpt_both0.bin…”

fastboot flash partition:0 gpt_both0.bin %para% %2 2>>fastboot_%2.log

findstr “FAILED error” fastboot_%2.log

IF !errorlevel! == 0 (

echo “failed and exit”

REM pause

goto end

)

echo “flash partition:1 gpt_both1.bin…”

fastboot flash partition:1 gpt_both1.bin %para% %2 2>>fastboot_%2.log

findstr “FAILED error” fastboot_%2.log

IF !errorlevel! == 0 (

echo “failed and exit”

REM pause

goto end

)

echo “flash partition:2 gpt_both2.bin…”

fastboot flash partition:2 gpt_both2.bin %para% %2 2>>fastboot_%2.log

findstr “FAILED error” fastboot_%2.log

IF !errorlevel! == 0 (

echo “failed and exit”

REM pause

goto end

)

echo “flash partition:3 gpt_both3.bin…”

fastboot flash partition:3 gpt_both3.bin %para% %2 2>>fastboot_%2.log

findstr “FAILED error” fastboot_%2.log

IF !errorlevel! == 0 (

echo “failed and exit”

REM pause

goto end

)

echo “flash partition:4 gpt_both4.bin…”

fastboot flash partition:4 gpt_both4.bin %para% %2 2>>fastboot_%2.log

findstr “FAILED error” fastboot_%2.log

IF !errorlevel! == 0 (

echo “failed and exit”

REM pause

goto end

)

echo “flash partition:5 gpt_both5.bin…”

fastboot flash partition:5 gpt_both5.bin %para% %2 2>> fastboot_%2.log

findstr “FAILED error” fastboot_%2.log

IF !errorlevel! == 0 (

echo “failed and exit”

REM pause

goto end

)


echo “erase misc…”

fastboot erase misc %para% %2 2>>fastboot_%2.log

findstr “FAILED error” fastboot_%2.log

IF %errorlevel% == 0 (

echo “failed and exit”

REM pause

goto end

)

echo “flash bootloader bootloader.img…”

fastboot flash bootloader bootloader.img %para% %2 2>>fastboot_%2.log

findstr “FAILED error” fastboot_%2.log

IF %errorlevel% == 0 (

echo “failed and exit”

REM pause

goto end

)


echo “flash dsp adspso.bin …”

fastboot flash dsp adspso.bin %para% %2 2>>fastboot_%2.log

findstr “FAILED error” fastboot_%2.log

IF %errorlevel% == 0 (

echo “failed and exit”

REM pause

goto end

)

echo “flash mdtp mdtp.img …”

fastboot flash mdtp mdtp.img %para% %2 2>>fastboot_%2.log

findstr “FAILED error” fastboot_%2.log

IF %errorlevel% == 0 (

echo “failed and exit”

REM pause

goto end

)

echo “flash splash splash.img…”

fastboot flash splash splash.img %para% %2 2>>fastboot_%2.log

findstr “FAILED error” fastboot_%2.log

IF %errorlevel% == 0 (

echo “failed and exit”

REM pause

goto end

)

echo “flash asusfw asusfw.img…”

fastboot flash asusfw asusfw.img %para% %2 2>>fastboot_%2.log

findstr “FAILED error” fastboot_%2.log

IF %errorlevel% == 0 (

echo “failed and exit”

REM pause

goto end

)

echo “reboot-bootloader…”

fastboot reboot-bootloader %para% %2 2>>fastboot_%2.log

findstr “FAILED error” fastboot_%2.log

IF %errorlevel% == 0 (

echo “failed and exit”

REM pause

goto end

)

echo “wait for 5 seconds for bootloader to be ready…”

PING 127.0.0.1 -n 6


echo “flash modem NON-HLOS.bin…”

fastboot flash modem NON-HLOS.bin %para% %2 2>>fastboot_%2.log

findstr “FAILED error” fastboot_%2.log

IF !errorlevel! == 0 (

echo “failed and exit”

REM pause

goto end

)

echo “flash boot boot.img…”

fastboot flash boot boot.img %para% %2 2>>fastboot_%2.log

findstr “FAILED error” fastboot_%2.log

IF %errorlevel% == 0 (

echo “failed and exit”

REM pause

goto end

)

echo “flash recovery recovery.img…”

fastboot flash recovery recovery.img %para% %2 2>>fastboot_%2.log

findstr “FAILED error” fastboot_%2.log

IF %errorlevel% == 0 (

echo “failed and exit”

REM pause

goto end

)

echo “flash system system.img…”

fastboot flash -S 128M system system.img %para% %2 2>>fastboot_%2.log

findstr “FAILED error” fastboot_%2.log

IF %errorlevel% == 0 (

echo “failed and exit”

REM pause

goto end

)


echo “format ADF…”

fastboot format ADF %para% %2 2>>fastboot_%2.log

findstr “FAILED error” fastboot_%2.log

IF %errorlevel% == 0 (

echo “failed and exit”

REM pause

goto end

)

echo “format asdf…”

fastboot format asdf %para% %2 2>>fastboot_%2.log

findstr “FAILED error” fastboot_%2.log

IF %errorlevel% == 0 (

echo “failed and exit”

REM pause

goto end

)

IF %dataerase% EQU 1 (

echo “format metatdata…”

fastboot erase metadata %para% %2 2>>fastboot_%2.log

findstr “FAILED error” fastboot_%2.log

IF %errorlevel% == 0 (

echo “f11ailed and exit”

REM pause

goto end

)

)

IF %dataerase% EQU 1 (

fastboot -w %para% %2

)

echo “turn off uart”

fastboot oem uart-off %para% %2

ping 127.0.0.1 -n 3 > nul

fastboot oem adb_enable 1 %para% %2

REM pause

:end

================
NOTE: You can’t download pls contact to email [email protected] , i will sent link download for you
+++++++++

Donator is respected because they help us keep Findrom.info be the biggest Firmware library. Thank you very much!




More from my site