在同目录下执行 运行前 请先备份- @echo off&setlocal enabledelayedexpansion
- set str=/c:"--tgt-size" /c:"--tgt-sha1" /c:"--src-sha1"
- for /f "tokens=2" %%i in (' findstr /i %str% install-recovery.sh') do (
- set s2=!s!
- set s=!s1!
- set s1=%%i
- )
-
- (echo;adb push boot.img /data/local/temp
- echo;adb push recovery-from-boot.p /data/local/temp
- echo;adb shell "cd /data/local/tmp; applypatch boot img recovery.img %s% %s1% %s2%:recovery-from-boot.p"
- echo;adb pull /data/local/tmp/recovery.img)>make.bat
- pause
复制代码
|