Advertisement
J2897

[Android] Fastboot Flash Recovery

Mar 26th, 2015
503
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.84 KB | None | 0 0
  1. :: Released under the GNU General Public License version 3 by J2897.
  2.  
  3. @echo OFF
  4. setlocal
  5.  
  6. set "FASTBOOT=C:\Android\fastboot.exe"
  7.  
  8. REM Make sure Fastboot is installed.
  9. if not exist "%FASTBOOT%" (
  10.     echo File not found...
  11.     echo %FASTBOOT%
  12.     goto :End
  13. )
  14.  
  15. if [%1]==[] (
  16.     echo This script is meant only to speed up the process of flashing different
  17.     echo recovery images.
  18.     echo.
  19.     echo WARNING: Don't use a recovery image that wasn't created for your specific model
  20.     echo or else you will brick your device!
  21.     echo.
  22.     echo Boot into the boot loader on your Android device and plug it in via USB. Make
  23.     echo sure it's in Fastboot mode. Then drag ^& drop a recovery image on top of
  24.     echo this file. The recovery image should immediately be flashed onto your device.
  25.     goto :End
  26. )
  27.  
  28. "%FASTBOOT%" flash recovery "%1"
  29.  
  30. :End
  31. endlocal
  32. echo.
  33. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement