Skip to content

Commit eaa6613

Browse files
committed
check phone connection
1 parent 29f1ef1 commit eaa6613

3 files changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Device not found
2+
please make sure
3+
- USB cable conection
4+
- Windows DeviceDriver instaration
5+
- Phone USB debug settings
6+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
�f�o�C�X���F���ł��܂���B
2+
�ȉ����m�F���Ă�������
3+
- USB�P�[�u���̐ڑ�
4+
- Windows��DeviceDriver�C���X�g�[��
5+
- �[����USB�f�o�b�OON
6+

runme.bat

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,16 @@ SET adb="%~dp0bin\adb.exe"
66
mode con:cols=80 lines=40
77
type %doc%\"01_Thanks.txt"
88
pause
9+
10+
%adb% shell id
11+
IF %ERRORLEVEL% neq 0 goto device_not_found
12+
913
call :adb_push
1014

1115
:menu
1216
COLOR 0A
1317
type %doc%\"08_menu.txt"
18+
SET INPUT=
1419
set /P INPUT=Num :
1520
if "%INPUT%" == "1" call :backup
1621
if "%INPUT%" == "2" call :install_recovery
@@ -27,9 +32,19 @@ type %doc%\"02_End.txt"
2732
pause
2833
exit /b
2934

35+
::==============================================================
36+
:device_not_found
37+
COLOR 0C
38+
type %doc%\"09_Error_device_not_found.txt"
39+
pause
40+
exit /b
41+
3042
::==============================================================
3143
:adb_push
3244
%adb% push "%~dp0files\tmproot" /data/local/tmp/
45+
46+
::IF %ERRORLEVEL% neq 0 exit /b 1
47+
3348
%adb% shell chmod 755 /data/local/tmp/busybox_file
3449
:: rooting
3550
%adb% shell chmod 755 /data/local/tmp/get_essential_address
@@ -110,6 +125,7 @@ echo install su binaries
110125
%adb% shell /data/local/tmp/run_root_shell -c "reboot recovery"
111126
type %doc%\"05_reboot.txt"
112127
%adb% wait-for-device
128+
call :adb_push
113129

114130
echo start instrall SuperSu.apk
115131
%adb% install "%~dp0files\SuperSu_forHost\eu.chainfire.supersu-193.apk"

0 commit comments

Comments
 (0)