11@ echo off
22for /f " tokens=3 delims= " %%a in ('chcp') do set lang = %%a
3- if " %lang% " == " 932" (set doc=%~dp0 doc\jp) else (set doc=%~dp0 doc\en)
4- SET adb = %~dp0 bin\adb.exe
3+ if " %lang% " == " 932" (set doc=" %~dp0 doc\jp" ) else (set doc=" %~dp0 doc\en" )
4+ SET adb = " %~dp0 bin\adb.exe"
55
66mode con:cols=80 lines=40
7- type " %doc% \01_Thanks.txt"
7+ type %doc% \" 01_Thanks.txt"
88pause
99call :adb_push
1010
1111:menu
1212COLOR 0A
13- cls
14- type " %doc% \08_menu.txt"
13+ type %doc% \" 08_menu.txt"
1514set /P INPUT = Num :
1615if " %INPUT% " == " 1" call :backup
1716if " %INPUT% " == " 2" call :install_recovery
@@ -24,7 +23,7 @@ goto menu
2423:finish
2524COLOR 07
2625call :clean
27- type " %doc% \02_End.txt"
26+ type %doc% \" 02_End.txt"
2827pause
2928exit /b
3029
@@ -43,7 +42,7 @@ exit /b
4342:backup
4443CLS
4544COLOR 0B
46- type " %doc% \06_backup.txt"
45+ type %doc% \" 06_backup.txt"
4746set /P INPUT = (N/y):
4847if " %INPUT% " == " Y" call :backup_core
4948if " %INPUT% " == " y" call :backup_core
@@ -54,7 +53,7 @@ echo prepear for backup
5453%adb% shell chmod 755 /data/local/tmp/backup.sh
5554
5655echo start backup
57- type " %doc% \07_warning_backup.txt"
56+ type %doc% \" 07_warning_backup.txt"
5857%adb% shell /data/local/tmp/run_root.sh /data/local/tmp/backup.sh
5958echo save to PC
6059mkdir %~dp0 backups
@@ -67,7 +66,7 @@ exit /b
6766:install_recovery
6867CLS
6968COLOR 0D
70- type " %doc% \03_warning.txt"
69+ type %doc% \" 03_warning.txt"
7170set /P INPUT = (N/y):
7271if " %INPUT% " == " Y" call :install_recovery_core
7372if " %INPUT% " == " y" call :install_recovery_core
@@ -93,7 +92,7 @@ exit /b
9392:install_su
9493CLS
9594COLOR 0E
96- type " %doc% \04_warning_su.txt"
95+ type %doc% \" 04_warning_su.txt"
9796set /P INPUT = (N/y):
9897if " %INPUT% " == " Y" call :install_su_core
9998if " %INPUT% " == " y" call :install_su_core
@@ -109,7 +108,7 @@ echo install su binaries
109108%adb% shell /data/local/tmp/run_root_shell -c " chmod 6755 /data/local/tmp/SuperSu/sed/xbin/daemonsu"
110109%adb% shell /data/local/tmp/run_root.sh /data/local/tmp/SuperSu/install_su.sh
111110%adb% shell /data/local/tmp/run_root_shell -c " reboot recovery"
112- type " %doc% \05_reboot.txt"
111+ type %doc% \" 05_reboot.txt"
113112%adb% wait-for-device
114113
115114echo start instrall SuperSu.apk
0 commit comments