@echo off
mode con cols=80 lines=30
color 4F
echo.
:input
title 华为Honor8 Emui 5.0 Root/XPosed/TWRP工具 By:COAadmin
echo ^┍━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┑
echo ^│ ^│
echo ^│ 《《===== 华为Honor8 Emui 5.0 Root/XPosed/TWRP ====》》 ^│
echo ^│ ^│
echo ^│ Blog: ^│
echo ^│ ^│
echo ^│ ^│
echo ^│ !!! 说 明 !!! ^│
echo ^│ 1、安装前请确认手机已解锁; ^│
echo ^│ 2、打开手机USB调试并授权; ^│
echo ^│ 3、整个ROOT、XPosed过程耗时较长,请中途不要断开 ^│
echo ^│ 手机与电脑的链接,以免造成不必要的损失; ^│
echo ^│ ^│
echo ^┕━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┙
echo.
echo.
echo 1、华为Honor8 Emui 5.0 Root (需先解锁BootLoader)
echo 2、疑难解答/寻求帮助/打开博客
echo.
echo.━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
echo.
set /p "num= 请输入序号,然后按下回车键:"
if "%num%"=="1" cls & goto root
if "%num%"=="2" cls & goto blog
echo. & echo 请输入正确的序号! & pause>nul & cls & goto input
:root
CLS
for /f "tokens=5" %%i in ('netstat -nao ^|findstr /i "listening" ^|findstr /i "5037"') do taskkill /f /pid %%i
adb reboot bootloader
ping 127.0.0.1 -n 10 -w 1000 > nul
fastboot flash recovery twrp.img
fastboot reboot 1>NUL 2>NUL
adb wait-for-device reboot recovery 1>NUL 2>NUL
ping 127.0.0.1 -n 30 -w 1000 > nul
adb push root.zip /cache/update.zip 1>NUL 2>NUL
adb push openrecoveryscript /cache/recovery/ 1>NUL 2>NUL
adb reboot recovery
adb wait-for-device
ping 127.0.0.1 -n 3 -w 1000 > nul
adb install Superuser.apk 1>NUL 2>NUL
CLS
echo ^┍━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┑
echo ^│ ^│
echo ^│ Root 已 完 成 ^│
echo ^│ ^│
echo ^│ 1、返 回 首 页 2、退 出 ^│
echo ^│ ^│
echo ^┕━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┙
echo.
echo.
echo.━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
set /p "num= 请输入序号,然后按下回车键:"
if "%num%"=="1" cls & goto input
if "%num%"=="2" cls & goto exit
echo. & echo 请输入正确的序号! & pause>nul & cls & goto input
:blog
CLS
start www.coaadmin.cn
goto input
:exit
echo. 退出
exit
网友评论