11@ echo off
22SET adb = " %~dp0 bin\adb.exe"
3- type " %~dp0 doc\01_Thanks.txt"
3+
4+ type " %doc% \01_Thanks.txt"
45pause
56
7+
68call :adb_push
79
810
9- type " %~dp0 doc \03_warning.txt"
11+ type " %doc% \03_warning.txt"
1012set /P INPUT = (N/y):
1113if " %INPUT% " == " Y" call :install_recovery
1214if " %INPUT% " == " y" call :install_recovery
1315goto finish
1416
15- type " %~dp0 doc \04_warning_su.txt"
17+ type " %doc% \04_warning_su.txt"
1618set /P INPUT = (N/y):
1719if " %INPUT% " == " Y" call :install_su
1820if " %INPUT% " == " y" call :install_su
1921
2022:finish
2123call :clean
22- type " %~dp0 doc \02_End.txt"
24+ type " %doc% \02_End.txt"
2325pause
2426exit /b
2527
@@ -33,8 +35,8 @@ exit /b
3335%adb% shell chmod 755 /data/local/tmp/run_root_shell
3436%adb% shell chmod 755 /data/local/tmp/run_root.sh
3537:: loki
36- %adb% shell chmod 755 /data/local/tmp/loki/loki.sh
37- %adb% shell chmod 755 /data/local/tmp/loki/loki_flash
38+ %adb% shell chmod 755 /data/local/tmp/loki/loki.sh
39+ %adb% shell chmod 755 /data/local/tmp/loki/loki_flash
3840%adb% shell chmod 755 /data/local/tmp/loki/loki_patch
3941%adb% shell chmod 755 /data/local/tmp/SuperSu/install_su.sh
4042
@@ -50,19 +52,19 @@ exit /b
5052cls
5153%adb% shell /data/local/tmp/run_root.sh /data/local/tmp/SuperSu/install_su.sh
5254%adb% shell /data/local/tmp/run_root_shell -c " reboot recovery"
53- type " %~dp0 doc \05_reboot.txt"
55+ type " %doc% \05_reboot.txt"
5456%adb% wait-for-device
5557exit /b
5658
5759:clean
5860%adb% shell rm /data/local/tmp/busybox_file
59- %adb% shell rm /data/local/tmp/device.db
60- %adb% shell rm /data/local/tmp/get_essential_address
61+ %adb% shell rm /data/local/tmp/device.db
62+ %adb% shell rm /data/local/tmp/get_essential_address
6163%adb% shell rm /data/local/tmp/run_root.sh
6264%adb% shell rm /data/local/tmp/run_root_shell
6365%adb% shell rm /data/local/tmp/unlock_security_module
6466
6567%adb% shell rm -rf /data/local/tmp/loki
6668%adb% shell rm -rf /data/local/tmp/recovery
67- %adb% shell rm -rf /data/local/tmp/SuperSu
69+ %adb% shell rm -rf /data/local/tmp/SuperSu
6870exit /b
0 commit comments