Asus ZenFone 5 ZE620KL

@ECHO OFF

REM Version: V01

REM Date: 20181108

REM ============== USAGE ==============

REM flashall_AFT.cmd [Format option] [SN number]

REM [Format option]: 1=enable, 0=disable. default=0

REM Format userdata/cache

REM [SN number]: device SN number

REM Support multiple download image


REM ============== setting ==============

CLS

SET “dataerase=0”

SET “SSN=”

SET “para=”

SET “ERASEPARM=”

SET “RESETPARM=0”

set flash_raw=.ze620kl_flash_raw.exe

set fastboot=.fastboot.exe

IF %1 EQU 1 ( SET ERASEPARM=-f )

IF %1 EQU 1 ( SET RESETPARM=1 )

IF %1 EQU 0 ( SET ERASEPARM= )

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

IF NOT [%2] EQU [] (

SET SSN=%2

)

call:flash

rem pause

EXIT 0

rem goto END

REM ============== flash() ==============

:flash

ECHO “%flash_raw% %para% %SSN% AFT %ERASEPARM% ”

%flash_raw% %para% %SSN% AFT %ERASEPARM%

echo errorlevel=”%ERRORLEVEL%”

IF “%ERRORLEVEL%” == “0” (

IF EXIST ..ImageE ( RD /S /Q ..ImageE )

ECHO “Success: %flash_raw% %para% %SSN% AFT %ERASEPARM% , EXIT!”

IF %RESETPARM% == 1 (

%fastboot% %para% %SSN% oem reset-dev_info

%fastboot% %para% %SSN% oem force-reset

)

%fastboot% %para% %SSN% oem adb_enable

GOTO:EOF

)

ECHO “FAILED: %flash_raw% %para% %SSN% AFT %ERASEPARM% failure, EXIT!”

GOTO:EOF

:END

More from my site