Asus ZenFone 3 Laser ZC551KL

@echo off

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

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

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

REM Format userdata/cache

REM [SN number]: device SN number

REM Support multiple download image

set /a a=1

:loop

@set dataerase=1

@if [%1] NEQ [0] goto step1

@set dataerase=0

:step1

@if [%2] EQU [] (@set fb=no_ssn

goto step2 )

fastboot_8937 devices | findstr “<%2>”

IF %ERRORLEVEL% NEQ 0 goto Error

@set fb=%2

:step2

echo %fb%

@set fbtool=fastboot_8937

@set cputype=

@%fbtool% getvar cputype 2>&1 | findstr “8937”

@if %errorlevel%==0 set cputype=8937

@%fbtool% getvar cputype 2>&1 | findstr “8917”

@if %errorlevel%==0 set cputype=8917

if “%cputype%”==”” echo can not identify the cpu type!!

@if “%cputype%”==”” goto Error

@set project=

@%fbtool% getvar project 2>&1 | findstr “project” | findstr “12 15 10 11”

@if %errorlevel%==0 set project=ZC551KL

@%fbtool% getvar project 2>&1 | findstr “project” | findstr “13 14”

@if %errorlevel%==0 set project=ZC500KL

@%fbtool% getvar project 2>&1 | findstr “project” | findstr “8 9”

@if %errorlevel%==0 set project=ZC600KL

if “%project%”==”” echo can not identify the project!!

@if “%project%”==”” goto Error

%fbtool% oem check_confirm 2>&1 | findstr “ABOOT_OEM_VERSION 2”

@ECHO OFF

IF %ERRORLEVEL% NEQ 0 ( echo “Partition Changed, DO NOT use update_image.sh directly!”

echo “You Can contact BSP Project Team for help”

goto Error )

@ECHO ON

%fbtool% flash partition firmware%cputype%gpt_both0.bin

@ECHO OFF

IF %ERRORLEVEL% NEQ 0 goto Error

@ECHO ON

call update_image.bat adb_enable %dataerase% %fb%

@ECHO OFF

IF %ERRORLEVEL% NEQ 0 goto Error

@ECHO ON

@exit /b 0

:Error

set /a a=%a%+1

if %a% LEQ 2 ( echo *******************************************************************************

echo Now,we will try it again!!!

echo *******************************************************************************

goto loop )^

else ( echo Update image failed!!! )

@exit /b 1

More from my site

  • Hiya Sugar 3 DESCRIPTION ROM Mobile Hiya Sugar 3 – ROM Android 6.0 ONLY MT6580 ROM Official Hiya […]
  • Micromax Q4204 DESCRIPTION ROM Mobile Micromax Q4204 – ROM Android 8.1.0 ONLY MT6739 Official ROM […]
  • How To Root Lenovo Vibe X2 Android Smartphone Lenovo Vibe X2 is a good quality Smartphone, which comes with 5.0 inches Super PLS TFT […]
  • AMOI V70 DESCRIPTION ROM Mobile AMOI V70 – ROM Android 4.4.2 ONLY MT6572 Official ROM AMOI […]
  • Phone Pro Max 11 DESCRIPTION ROM Phone Pro Max 11 – ROM Android 6.0 ONLY MT6580 ROM 2 – Official […]
  • Sony Xperia XZ Update To Android Oreo 8.0 Rom Table Of Contents1 Sony Xperia XZ Update To Oreo 8.0 Rom2 Sony Xperia XZ Smartphone […]
  • lmkj S8800 DESCRIPTION ROM Mobile lmkj S8800 – ROM Android 2.3.5 ONLY SC6820 ROM lmkj S8800 […]
  • 1:1 T10 MT6572 DESCRIPTION ROM Phone 1:1 T10 MT6572 – ROM Android 4.4.2 ONLY MT6572 ROM Official […]
  • Lemon S1 DESCRIPTION ROM Phone Lemon S1 - ROM Android 5.1 ONLY MT6580 ROM Official Lemon S1 […]
  • APLUS A300 DESCRIPTION ROM Mobile APLUS A300 – ROM Android 5.1 ONLY MT6580 ROM Official APLUS […]
  • Moto Z3 Play XT1929-6 NIIPE DESCRIPTION ROM Mobile Moto Z3 Play XT1929-6 NIIPE - ROM Android 9.0 ONLY SDM660 ROM […]
  • JLINKSZ Y107A-D13 DESCRIPTION ROM Tablet JLINKSZ Y107A-D13 – ROM Android 7.0 ONLY MT6753 ROM Official […]