This is a binary flasher I made to flash recoveries via adb, you need to have adb setup and working.
You need to set permissions to execute on flash_recovery, place flash_recovery in same folder as the recovery you want to flash, the recovery needs to be named recovery.img
you can flash your recovery.img just by clicking flash_recovery or you can open terminal and type ./flash_recovery
I have limited the size of the recovery that can be flashed, so TWRP can't be flashed via my flasher, I could remove the limit but due to recovery partition size on some phones, that would be dangerous to some phones, all phones can flash CWM recovery.
If you run flash_recovery in terminal you will see below.
This version should work for windows users, as they use .bat files rather than bash files.
also adb files needed for window users are included in zip
You need to set permissions to execute on flash_recovery, place flash_recovery in same folder as the recovery you want to flash, the recovery needs to be named recovery.img
you can flash your recovery.img just by clicking flash_recovery or you can open terminal and type ./flash_recovery
I have limited the size of the recovery that can be flashed, so TWRP can't be flashed via my flasher, I could remove the limit but due to recovery partition size on some phones, that would be dangerous to some phones, all phones can flash CWM recovery.
If you run flash_recovery in terminal you will see below.
Code:
vampirefo@vampirefo-GA-MA78GM-US2H ~/Desktop/unpack_boot/rcf $ ./flash_recovery
adb recovery flasher by Vampirefo
5142 KB/s (6074368 bytes in 1.153s)
0+1 records in
0+1 records out
6074368 bytes transferred in 0.036 secs (168732444 bytes/sec)
vampirefo@vampirefo-GA-MA78GM-US2H ~/Desktop/unpack_boot/rcf $
This version should work for windows users, as they use .bat files rather than bash files.
Code:
@echo off
echo * adb recovery flasher by Vampirefo
echo.
echo * place this script and your recovery.img in the folder.
echo.
echo * Rename the recovery filename to recovery.img
echo.
if EXIST recovery.img (GOTO FOUND) else (GOTO END)
:FOUND
echo * recovery.img found.
echo.
adb\adb.exe shell "su -c 'mkdir /data/tmp/""
adb\adb.exe push recovery.img "/data/tmp/recovery.img"..
adb\adb.exe shell "su -c 'dd if=/data/local/recovery.img of=/dev/recovery bs=6291456 count=1'"
adb\adb.exe shell "su -c 'rm -r /data/tmp/'"
echo.
echo Done flashing. Restart in recovery mode to see if successful.
GOTO EXIT
:END
echo.
echo !!ERROR: recovery.img not found!!
echo Make sure you renamed your desired recovery to recovery.img!
GOTO EXIT
:EXIT
echo.
echo Exiting script..
pause
also adb files needed for window users are included in zip
If you use my scripts or work in your own scripts, your scripts or license should reflect that.
ZTE Open C
ZTE Open C