This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
adbSetup.bat
65 lines (59 loc) · 1.85 KB
/
adbSetup.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
ECHO OFF
cls
:start
ECHO Welcome, before we remove un-kosher apps from your phone, we just need to make sure ADB is set up on your phone properly.
PAUSE
ECHO Here, we'll setup ADB. If you are already comfortable with ADB, you can skip this step
ECHO.
ECHO 1. Skip to Device Filtering
ECHO 2. Skip to installing apps
ECHO C. Continue ADB Setup
ECHO.
%SystemRoot%\System32\choice.exe /C 12C /N /M "Choose one of the above options. [1/2/C]: "
if errorlevel 3 goto adbSetup
if errorlevel 2 goto installApps
if errorlevel 1 goto filter
:filter
ECHO.
ECHO Okay, we'll now remove apps
PAUSE
cmd /c removeApps-v.1.0.3.bat
exit /b
:installApps
ECHO.
ECHO Redirecting you to apps page...
pause
cmd /c installAppsadvanced.bat
exit /b
:adbSetup
PAUSE
%SystemRoot%\System32\choice.exe /C YN /N /M "Is USB Debbuging enabled? [Y/N] (If you are not sure, type [N]): "
if errorlevel 2 goto dev-set
if errorlevel 1 goto usb-config
:dev-set
ECHO.
ECHO Let's make sure USB Debugging is enabled.
ECHO.
ECHO On LG Classic Flip/ Wine 2, dial ##228378 and press call
ECHO On LG Exalt, dial ##7764726220, and enter code: 000000
PAUSE
ECHO Now, go to developer options, and scroll down to USB Debugging, and tap enabled
PAUSE
:usb-config
ECHO.
ECHO Now, go to nofifications, select USB Configuration, and select charging (make sure phone is plugged into computer with a file-transfer-compatible cable).
ECHO.
PAUSE.
ECHO We will now connect your phone via ADB.
PAUSE.
adb devices
ECHO.
ECHO If your phone is listed as "XXXXXXX device", you are connected
ECHO If your phone is listed as "XXXXXXX Unauthorized", go to your phone, press allow, and allow always
PAUSE
ECHO You are connected!
PAUSE
ECHO Now we will go through the uninstall process. You will choose what to remove from your device.
PAUSE
cmd /c removeApps-v.1.0.3.bat
exit /b