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
6- type " %doc% \01_Thanks.txt"
6+ type %doc% \" 01_Thanks.txt"
77pause
88
99
1010call :adb_push
1111
1212
13- type " %doc% \06_backup.txt"
13+ type %doc% \" 06_backup.txt"
1414set /P INPUT = (N/y):
1515if " %INPUT% " == " Y" call :backup
1616if " %INPUT% " == " y" call :backup
1717
1818
19- type " %doc% \03_warning.txt"
19+ type %doc% \" 03_warning.txt"
2020set /P INPUT = (N/y):
2121if " %INPUT% " == " Y" call :install_recovery
2222if " %INPUT% " == " y" call :install_recovery
2323
24- type " %doc% \04_warning_su.txt"
24+ type %doc% \" 04_warning_su.txt"
2525set /P INPUT = (N/y):
2626if " %INPUT% " == " Y" call :install_su
2727if " %INPUT% " == " y" call :install_su
2828
2929:finish
3030call :clean
31- type " %doc% \02_End.txt"
31+ type %doc% \" 02_End.txt"
3232pause
3333exit /b
3434
@@ -51,7 +51,7 @@ exit /b
5151
5252:backup
5353echo start backup
54- type " %doc% \07_warning_backup.txt"
54+ type %doc% \" 07_warning_backup.txt"
5555%adb% shell /data/local/tmp/run_root.sh /data/local/tmp/backup.sh
5656mkdir %~dp0 backups
5757adb pull /sdcard/backup/ " %~dp0 backups"
6969echo start instrall SuperSu
7070%adb% shell /data/local/tmp/run_root.sh /data/local/tmp/SuperSu/install_su.sh
7171%adb% shell /data/local/tmp/run_root_shell -c " reboot recovery"
72- type " %doc% \05_reboot.txt"
72+ type %doc% \" 05_reboot.txt"
7373%adb% wait-for-device
7474exit /b
7575
0 commit comments