Asus Zenfone 4 ZE554KL

@ECHO OFF

REM Version: V02

REM Date: 2019/02/15

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 flash_raw=.ze554kl_flash_raw.exe

set fastboot=.fastboot.exe

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

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

%fastboot% %para% %SSN% reboot-bootloader

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!”

%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