KTManta 内核刷入脚本

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

@ECHO OFF
ECHO ==================================================
ECHO            KTMANTA MANUAL RECOVERY
ECHO            VER: KTManta-08-04-2013
ECHO ==================================================

:RETRY
ECHO.
SET /P PASSWD=请输入(1: TEST, 2: FLASH, 3: KERNEL, 0: EXIT): 

IF /I "%PASSWD%"=="0" GOTO EXIT
IF /I "%PASSWD%"=="1" GOTO TEST
IF /I "%PASSWD%"=="2" GOTO FLASH
IF /I "%PASSWD%"=="3" GOTO KERNEL

GOTO RETRY

:TEST
ECHO [1] goto bootloader ...
ADB reboot bootloader

ECHO [1] test boot.img
FASTBOOT boot boot.img

GOTO RETRY

:FLASH
ECHO [2] goto bootloader ...
ADB reboot bootloader

ECHO [2] flash boot.img
::FASTBOOT oem unlock
FASTBOOT flash boot boot.img
::FASTBOOT oem lock
FASTBOOT reboot

GOTO RETRY

:KERNEL
ECHO [3] remount rw ...
ADB shell mount -o remount rw /
ADB remount
ADB shell chmod 777 /system

ECHO [3] push kernel files ...
ADB push system/lib/modules /system/lib/modules

ECHO [3] remount r ...
ADB shell chmod 755 /system
::ADB shell mount -o remount r /
::ADB remount

GOTO RETRY

:EXIT