Advertisement
thurask

Untitled

Aug 14th, 2017
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.86 KB | None | 0 0
  1. @ECHO OFF
  2. echo BY INSTALLING THE SOFTWARE, YOU ARE AGREEING TO BE BOUND BY THE BlackBerry
  3. echo Solution License Agreement which can be reviewed at www.blackberry.com/leg-
  4. echo al/bbsla. IF YOU HAVE ANY QUESTIONS OR CONCERNS ABOUT THE TERMS OF THIS AG-
  5. echo REEMENT, PLEASE CONTACT blackberry AT LEGALinfo@BLACKBERRY.COM. PLEASE READ
  6. echo THIS DOCUMENT CAREFULLY BEFORE INSTALLING OR USING THE SOFTWARE.
  7. echo ***************************************************************************
  8. echo.
  9. set BIN=.\host\windows-x86\bin
  10. set IMG=.\img
  11. set FASTBOOT=fastboot.exe
  12.  
  13. echo Note:If device is not in fastboot mode
  14. echo Please switch to fastboot mode by holding the power and volume down key for 30s
  15. set /P answer=This script will wipe off all user data. Do you want to continue? [y/n]:
  16. if "%answer%" == "n" ( GOTO End
  17. ) else if "%answer%" == "y" ( GOTO COMMANDS
  18. ) else ( GOTO Error
  19. )
  20. :COMMANDS
  21. %BIN%\fastboot.exe oem securewipe
  22. ECHO "It may take 5 to 15 minutes to securely wipe the device"
  23. ping -n 5 127.0.0.1 > nul
  24. %BIN%\%FASTBOOT% flash tz %IMG%\tz.mbn
  25. %BIN%\%FASTBOOT% flash devcfg %IMG%\devcfg.mbn
  26. %BIN%\%FASTBOOT% flash rpm %IMG%\rpm.mbn
  27. %BIN%\%FASTBOOT% flash sbl1 %IMG%\sbl1_signed.mbn
  28. %BIN%\%FASTBOOT% flash aboot %IMG%\emmc_appsboot.mbn
  29. %BIN%\%FASTBOOT% flash bootsig %IMG%\boot.img.sig
  30. %BIN%\%FASTBOOT% flash recoverysig %IMG%\recovery.img.sig
  31. %BIN%\%FASTBOOT% flash boot %IMG%\boot.img
  32. %BIN%\%FASTBOOT% flash recovery %IMG%\recovery.img
  33. %BIN%\%FASTBOOT% flash cache %IMG%\cache.img
  34. %BIN%\%FASTBOOT% flash userdata %IMG%\userdata.img
  35. %BIN%\%FASTBOOT% flash modem %IMG%\NON-HLOS-emea.bin
  36. %BIN%\%FASTBOOT% flash dsp %IMG%\adspso.bin
  37. %BIN%\%FASTBOOT% flash system %IMG%\system.img
  38. %BIN%\%FASTBOOT% flash oem %IMG%\oem_common.img
  39. %BIN%\%FASTBOOT% reboot
  40. GOTO End
  41. :Error
  42. ECHO Please enter y or n! Bye bye!!
  43. :End
  44. echo Press any key to close this window
  45. pause >nul
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement