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
/
Copy pathremoveApps.bat
183 lines (160 loc) · 3.93 KB
/
removeApps.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
@echo off
:start
cls
echo/
ECHO 1. Remove Browser (Highly Recommended!!!)
ECHO 2. Remove Email
ECHO 3. Remove FM Radio
ECHO 4. Remove Video
ECHO 5. Remove Text Messages
ECHO 6. Disable App Installation
ECHO D. All Done, I don't want to remove any more apps.
echo.
%SystemRoot%\System32\choice.exe /C 123456D /N /M "Type the number of what you want to remove, and press enter. If you don't want to remove any more apps, type [D]: "
if errorlevel 7 goto end
if errorlevel 6 goto installer
if errorlevel 5 goto messages
if errorlevel 4 goto video
if errorlevel 3 goto radio
if errorlevel 2 goto email
if errorlevel 1 goto browser
if not errorlevel 1 goto error-start
:error-start
ECHO Invalid Option, Try again!
PAUSE
goto start
:browser
ECHO.
%SystemRoot%\System32\choice.exe /C YN /N /M "Are you sure you want to remove the browser? [Y/N]: "
if errorlevel 2 goto browser-n
if errorlevel 1 goto browser-y
if not errorlevel 1 goto browser
:browser-y
adb shell pm uninstall -k --user 0 com.android.browser
ECHO.
ECHO Browser has been removed.
PAUSE
cls
goto start
:browser-n
ECHO.
ECHO Okay, the Browser will remain on your phone (not recommended).
PAUSE
cls
goto start
:email
ECHO.
%SystemRoot%\System32\choice.exe /C YN /N /M "Are you sure you want to remove Email from your phone? [Y/N]: "
if errorlevel 2 goto email-n
if errorlevel 1 goto email-y
:email-y
adb shell pm uninstall -k --user 0 com.lge.email
ECHO.
ECHO Email has been removed.
PAUSE
cls
goto start
:email-n
ECHO.
ECHO Not a problem, email will remain on your phone.
PAUSE
cls
goto start
:radio
ECHO.
%SystemRoot%\System32\choice.exe /C YN /N /M "Are you sure you want to remove FM Radio from your phone? [Y/N]: "
if errorlevel 2 goto radio-n
if errorlevel 1 goto radio-y
:radio-y
adb shell pm uninstall -k --user 0 com.lge.fmradio
ECHO.
ECHO FM Radio has been removed.
PAUSE
cls
goto start
:radio-n
ECHO.
ECHO Too late, we already removed it without telli- Just Kidding, we will leave FM Radio on your phone.
PAUSE
cls
goto start
:video
ECHO.
%SystemRoot%\System32\choice.exe /C YN /N /M "Are you sure you want to remove the video player from your phone? [Y/N]: "
if errorlevel 2 goto video-n
if errorlevel 1 goto video-y
:video-y
adb shell pm uninstall -k --user 0 com.lge.videoplayer
ECHO.
ECHO Video has been removed.
PAUSE
cls
goto start
:video-n
ECHO.
ECHO Sure, video is here to stay!
PAUSE
cls
goto start
:messages
ECHO.
%SystemRoot%\System32\choice.exe /C YN /N /M "Are you sure you want to remove the messaging app from your phone? [Y/N]: "
if errorlevel 2 goto messages-n
if errorlevel 1 goto messages-y
:messages-y
adb shell pm uninstall -k --user 0 com.android.mms >nul
adb shell pm uninstall -k --user 0 com.verizon.messaging.vzmsgs >nul
ECHO.
ECHO Text Messaging has been removed.
PAUSE
cls
goto start
:messages-n
ECHO.
ECHO Sure, your texts will be left untouched.
PAUSE
cls
goto start
:installer
ECHO.
%SystemRoot%\System32\choice.exe /C YN /N /M "Are you sure you want to disable app installation on your phone? [Y/N]: "
if errorlevel 2 goto installer-n
if errorlevel 1 goto installer-y
:installer-y
adb shell pm disable-user --user 0 com.android.defcontainer
ECHO.
ECHO App installation has been disabled.
PAUSE
cls
goto start
:installer-n
ECHO.
ECHO No problem! You can still install apps on your phone.
PAUSE
cls
goto start
:end
ECHO.
ECHO Okay, enjoy your phone!
%SystemRoot%\System32\choice.exe /C YN /N /M "Would you like to install any (kosher) apps on your phone? [Y/N]: "
if errorlevel 2 goto apps-n
if errorlevel 1 goto apps-y
:apps-n
ECHO.
ECHO Okay, enjoy your phone.
ECHO Bye.
PAUSE
exit /B
:apps-y
ECHO.
ECHO Sure, we'll take you there right now.
ECHO.
PAUSE
cmd /c installAppsadvanced.bat
exit /b
:releases-y
start https://github.com/biden2020prez/lgflip-kosher/releases
PAUSE
goto apps-n
:releases -n
goto apps-n