打开看看
原文如下
@璐村惂鐢ㄦ埛_000076K馃惥 OFF
echo BY INSTALLING THE SOFTWARE, YOU ARE AGREEING TO BE BOUND BY THE BlackBerry
echo Solution License Agreement which can be reviewed at
www.blackberry.com/leg-echo al/bbsla. IF YOU HAVE ANY QUESTIONS OR CONCERNS ABOUT THE TERMS OF THIS AG-
echo REEMENT, PLEASE CONTACT blackberry AT LEGALinfo@BLACKBERRY.COM. PLEASE READ
echo THIS DOCUMENT CAREFULLY BEFORE INSTALLING OR USING THE SOFTWARE.
echo ***************************************************************************
echo.
set BIN=.\host\windows-x86\bin
set IMG=.\img
set FASTBOOT=fastboot.exe
echo Note:If device is not in fastboot mode
echo Please switch to fastboot mode by holding the power and volume down key for 30s
for /f "tokens=1 delims=" %%i in ('%BIN%\fastboot.exe getvar hlos-sig-tag 2^>^&1 ^| findstr hlos-sig-tag ') do (set var1=%%i)
set devname=%var1:hlos-sig-tag:=%
set devname=%devname: =%
if not "%devname%" == "tmo" (
GOTO ERRORMSG
)
set /P answer=This script will wipe off all user data. Do you want to continue? [y/n]:
if "%answer%" == "n" ( GOTO End
) else if "%answer%" == "y" ( GOTO COMMANDS
) else ( GOTO Error
)
:COMMANDS
%BIN%\fastboot.exe oem securewipe
ECHO "It may take 5 to 15 minutes to securely wipe the device"
ping -n 5 127.0.0.1 > nul
%BIN%\%FASTBOOT% flash tz %IMG%\tz.mbn
%BIN%\%FASTBOOT% flash hyp %IMG%\hyp.mbn
%BIN%\%FASTBOOT% flash sdi %IMG%\sdi.mbn
%BIN%\%FASTBOOT% flash pmic %IMG%\pmic.mbn
%BIN%\%FASTBOOT% flash rpm %IMG%\rpm.mbn
%BIN%\%FASTBOOT% flash sbl1 %IMG%\sbl1_signed.mbn
%BIN%\%FASTBOOT% flash aboot %IMG%\emmc_appsboot.mbn
%BIN%\%FASTBOOT% flash bootsig %IMG%\boot.img.sig
%BIN%\%FASTBOOT% flash recoverysig %IMG%\recovery.img.sig
%BIN%\%FASTBOOT% flash boot %IMG%\boot.img
%BIN%\%FASTBOOT% flash recovery %IMG%\recovery.img
%BIN%\%FASTBOOT% flash cache %IMG%\cache.img
%BIN%\%FASTBOOT% flash userdata %IMG%\userdata.img
%BIN%\%FASTBOOT% flash modem %IMG%\NON-HLOS.bin
%BIN%\%FASTBOOT% flash system %IMG%\system.img
%BIN%\%FASTBOOT% flash oem %IMG%\oem.img
%BIN%