-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.py
270 lines (248 loc) · 15.3 KB
/
main.py
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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
# Android BloatWare Remover
# Made by zera_mykerd & n0nexist
# --- IMPORTANT ---
# we do not assume any responsibility
# for any damage caused with this program.
# the user needs to agree with the terms and conditions
# of the program to use it, hence assuming every responsibility
# for his actions
# --- IMPORTANT ---
import os
os.system('cls' if os.name in ('nt', 'dos') else 'clear')
commands = [
# Adb commands to
# remove bloatware (useless software)
# in an android phone (via android-debug-bridge)
"start-server",
"shell pm uninstall --user 0 com.android.egg",
"shell pm uninstall --user 0 com.android.vpndialogs",
"shell pm uninstall --user 0 com.android.simappdialog",
"shell pm uninstall --user 0 com.android.dreams.basic",
"shell pm uninstall --user 0 com.google.android.apps.tachyon",
"shell pm uninstall --user 0 com.google.android.projection.gearhead",
"shell pm uninstall --user 0 com.google.android.webview",
"shell pm uninstall --user 0 com.google.android.apps.mediahome.launcher",
"shell pm uninstall --user 0 com.google.android.apps.photos",
"shell pm uninstall --user 0 com.google.android.gm",
"shell pm uninstall --user 0 com.google.android.googlequicksearchbox",
"shell pm uninstall --user 0 com.google.android.apps.subscriptions.red",
"shell pm uninstall --user 0 com.google.android.onetimeinitializer",
"shell pm uninstall --user 0 com.google.android.apps.walletnfcrel",
"shell pm uninstall --user 0 com.google.android.videos",
"shell pm uninstall --user 0 com.google.android.apps.books",
"shell pm uninstall --user 0 com.google.android.gms",
"shell pm uninstall --user 0 com.android.vending",
"shell pm uninstall --user 0 com.google.android.safetycenter.resources",
"shell pm uninstall --user 0 com.google.android.apps.setupwizard.searchselector",
"shell pm uninstall --user 0 com.google.android.apps.wellbeing",
"shell pm uninstall --user 0 com.google.android.gsf",
"shell pm uninstall --user 0 com.google.android.apps.kids.home",
"shell pm uninstall --user 0 com.android.stk",
"shell pm uninstall --user 0 com.google.android.apps.maps",
"shell pm uninstall --user 0 com.google.android.feedback",
"shell pm uninstall --user 0 com.google.android.apps.messaging",
"shell pm uninstall --user 0 com.google.android.tts",
"shell pm uninstall --user 0 com.android.musicfx",
"shell pm uninstall --user 0 com.google.android.deskclock",
"shell pm uninstall --user 0 com.android.fmradio",
"shell pm uninstall --user 0 com.android.wallpaper.livepicker",
"shell pm uninstall --user 0 com.google.android.tag",
"shell pm uninstall --user 0 com.google.android.dialer",
"shell pm uninstall --user 0 com.android.htmlviewer",
"shell pm uninstall --user 0 com.google.android.youtube",
"shell pm uninstall --user 0 com.google.android.apps.youtube.music",
"shell pm uninstall --user 0 com.google.android.apps.youtube.kids",
"shell pm uninstall --user 0 com.google.android.apps.youtube.music.setupwizard",
"shell pm uninstall --user 0 com.google.mainline.telemetry",
"shell pm uninstall --user 0 com.android.mms.service",
"shell pm uninstall --user 0 com.google.android.apps.docs.editors.slides",
"shell pm uninstall --user 0 com.amazon.mp3",
"shell pm uninstall --user 0 com.google.android.calculator",
"shell pm uninstall --user 0 com.google.android.apps.docs.editors.docs",
"shell pm uninstall --user 0 com.duckduckgo.mobile.android",
"shell pm uninstall --user 0 com.google.android.apps.nbu.files",
"shell pm uninstall --user 0 com.google.android.apps.fitness",
"shell pm uninstall --user 0 com.google.android.apps.docs.editors.sheets",
"shell pm uninstall --user 0 com.google.android.apps.magazines",
"shell pm uninstall --user 0 com.google.android.apps.podcasts",
"shell pm uninstall --user 0 com.google.android.apps.chromecast.app",
"shell pm uninstall --user 0 com.tblenovo.soundrecorder",
"shell pm uninstall --user 0 com.android.chrome",
"shell pm uninstall --user 0 com.android.bookmarkprovider",
"shell pm uninstall --user 0 com.google.android.calendar",
"shell pm uninstall --user 0 com.google.android.ims",
"shell pm uninstall --user 0 com.android.contacts",
"shell pm uninstall --user 0 com.google.android.syncadapters.contacts",
"shell pm uninstall --user 0 com.google.android.gms.location.history",
"shell pm uninstall --user 0 com.android.providers.userdictionary",
"shell pm uninstall --user 0 com.google.android.apps.docs",
"shell pm uninstall --user 0 com.google.android.contacts",
"shell pm uninstall --user 0 com.google.android.partnersetup",
"shell pm uninstall --user 0 com.google.android.apps.googleassistant",
"shell pm uninstall --user 0 com.google.android.apps.work.oobconfig",
"shell pm uninstall --user 0 com.android.bips",
"shell pm uninstall --user 0 com.android.printspooler",
"shell pm uninstall --user 0 com.google.android.printservice.recommendation",
"shell pm uninstall --user 0 com.google.android.marvin.talkback",
"shell pm uninstall --user 0 com.google.android.nearby.halfsheet",
"shell pm uninstall --user 0 com.google.android.overlay.gmsconfig.common",
"shell pm uninstall --user 0 com.google.android.overlay.gmsconfig.comms",
"shell pm uninstall --user 0 com.google.android.overlay.gmsconfig.gsa",
"shell pm uninstall --user 0 com.google.android.overlay.gmsconfig.photos",
"shell pm uninstall --user 0 com.google.android.overlay.modules.documentsui",
"shell pm uninstall --user 0 com.google.android.overlay.modules.ext.services",
"shell pm uninstall --user 0 com.google.android.overlay.modules.modulemetadata.forframework",
"shell pm uninstall --user 0 com.google.android.overlay.modules.permissioncontroller",
"shell pm uninstall --user 0 com.google.android.overlay.modules.permissioncontroller.forframework",
"shell pm uninstall --user 0 com.google.android.setupwizard",
"shell pm uninstall --user 0 com.google.android.apps.restore",
"shell pm uninstall --user 0 com.google.android.configupdater",
"shell pm uninstall --user 0 com.android.providers.partnerbookmarks",
"shell pm uninstall --user 0 com.android.providers.partnerbrowsercustomizations",
"shell pm uninstall --user 0 com.android.sharedstoragebackup",
"shell pm uninstall --user 0 com.android.wallpaperbackup",
"shell pm uninstall --user 0 com.android.wallpapercropper",
"shell pm uninstall --user 0 com.android.wallpaperpicker",
"shell pm uninstall --user 0 com.mediatek.lbs.em2.ui",
"shell pm uninstall --user 0 com.mediatek.location.lppe.main",
"shell pm uninstall --user 0 com.mediatek.gba",
"shell pm uninstall --user 0 com.mediatek.ppl",
"shell pm uninstall --user 0 com.mediatek.callrecorder",
"shell pm uninstall --user 0 com.mediatek.miravision.ui",
"shell pm uninstall --user 0 com.mediatek.omacp",
"shell pm uninstall --user 0 com.mediatek.mdmconfig",
"shell pm uninstall --user 0 com.mediatek.mdmlsample",
"shell pm uninstall --user 0 com.mediatek.gnssdebugreport",
"shell pm uninstall --user 0 com.mediatek.batterywarning",
"shell pm uninstall --user 0 com.mediatek.gnss.nonframeworklbs",
"shell pm uninstall --user 0 com.mediatek.ims",
"shell pm uninstall --user 0 com.mediatek.systemuiresoverlay",
"shell pm uninstall --user 0 com.mediatek.SettingsProviderResOverlay",
"shell pm uninstall --user 0 com.mediatek.frameworkresoverlay",
"shell pm uninstall --user 0 com.mediatek.simprocessor",
"shell pm uninstall --user 0 com.mediatek.capctrl.service",
"shell pm uninstall --user 0 com.mediatek.telephony",
"shell pm uninstall --user 0 com.mediatek.security",
"shell pm uninstall --user 0 com.mediatek.security.service",
"shell pm uninstall --user 0 com.mediatek",
"shell pm uninstall --user 0 com.mediatek.dataprotection",
"shell pm uninstall --user 0 com.mediatek.autobootcontroller",
"shell pm uninstall --user 0 com.android.backupconfirm",
"shell pm uninstall --user 0 com.android.traceur",
"shell pm uninstall --user 0 com.android.proxyhandler",
"shell pm uninstall --user 0 com.debug.loggerui",
"shell pm uninstall --user 0 com.android.theme.icon_pack.circular.themepicker",
"shell pm uninstall --user 0 com.android.theme.icon_pack.circular.settings",
"shell pm uninstall --user 0 com.android.theme.icon_pack.circular.systemui",
"shell pm uninstall --user 0 com.android.theme.icon_pack.circular.android",
"shell pm uninstall --user 0 com.android.theme.icon_pack.circular.launcher",
"shell pm uninstall --user 0 com.android.theme.icon_pack.filled.settings",
"shell pm uninstall --user 0 com.android.theme.icon_pack.filled.systemui",
"shell pm uninstall --user 0 com.android.theme.icon_pack.filled.android",
"shell pm uninstall --user 0 com.android.theme.icon_pack.filled.launcher",
"shell pm uninstall --user 0 com.android.theme.icon_pack.filled.themepicker",
"shell pm uninstall --user 0 com.android.theme.icon_pack.rounded.systemui",
"shell pm uninstall --user 0 com.android.theme.icon_pack.rounded.android",
"shell pm uninstall --user 0 com.android.theme.icon_pack.rounded.launcher",
"shell pm uninstall --user 0 com.android.theme.icon_pack.rounded.themepicker",
"shell pm uninstall --user 0 com.android.theme.icon_pack.rounded.settings",
"shell pm uninstall --user 0 com.android.theme.icon.pebble",
"shell pm uninstall --user 0 com.android.theme.icon.squircle",
"shell pm uninstall --user 0 com.android.theme.icon.taperedrect",
"shell pm uninstall --user 0 com.android.theme.icon.teardrop",
"shell pm uninstall --user 0 com.android.theme.icon.vessel",
"shell pm uninstall --user 0 com.android.theme.icon.roundedrect",
"shell pm uninstall --user 0 com.android.theme.font.notoserifsource",
"shell pm uninstall --user 0 com.android.theme.color.black",
"shell pm uninstall --user 0 com.android.theme.color.cinnamon",
"shell pm uninstall --user 0 com.android.theme.color.green",
"shell pm uninstall --user 0 com.android.theme.color.ocean",
"shell pm uninstall --user 0 com.android.theme.color.orchid",
"shell pm uninstall --user 0 com.android.theme.color.purple",
"shell pm uninstall --user 0 com.android.theme.color.space",
"shell pm uninstall --user 0 com.lenovo.screenassistant",
"shell pm uninstall --user 0 com.lenovo.screencapture",
"shell pm uninstall --user 0 com.lenovo.capsensortest",
"shell pm uninstall --user 0 com.lenovo.lsf",
"shell pm uninstall --user 0 com.motorola.demo",
"shell pm uninstall --user 0 com.lenovo.ocpl",
"shell pm uninstall --user 0 com.lenovo.dsa",
"shell pm uninstall --user 0 com.tblenovo.center",
"shell pm uninstall --user 0 com.tblenovo.setup",
"shell pm uninstall --user 0 com.lenovo.ota",
"shell pm uninstall --user 0 com.lenovo.tbengine",
"shell pm uninstall --user 0 com.tbsmart.levision",
"shell pm uninstall --user 0 com.lmsa.app.lmsapad",
"shell pm uninstall --user 0 com.tblenovo.landscapevision.lenovolandscapevision",
"shell pm uninstall --user 0 com.lenovo.tab_m10hd2",
"shell pm uninstall --user 0 com.huaqin.lenovoprivacy",
"shell pm uninstall --user 0 com.dolby.daxservice",
"shell pm uninstall --user 0 com.dolby.daxappui",
"shell pm uninstall --user 0 com.lenovo.lsf.device",
"shell pm uninstall --user 0 com.lenovo.ue.device",
"shell pm uninstall --user 0 com.lenovo.EngineeringCode",
"shell pm uninstall --user 0 com.lenovo.launcher.provider",
"shell pm uninstall --user 0 android.autoinstalls.config.Lenovo.tablet",
"shell pm uninstall --user 0 com.yha.factory",
"shell pm uninstall --user 0 com.android.dynsystem",
"shell pm uninstall --user 0 com.android.companiondevicemanager",
"shell pm uninstall --user 0 com.android.ons",
"shell pm uninstall --user 0 com.android.cts.ctsshim",
"shell pm uninstall --user 0 com.android.cts.priv.ctsshim",
"shell pm uninstall --user 0 com.android.statementservice",
"shell pm uninstall --user 0 com.android.pacprocessor",
"shell pm uninstall --user 0 com.android.providers.downloads.ui",
"shell pm uninstall --user 0 com.wapi.wapicertmanager",
"shell pm uninstall --user 0 com.android.calllogbackup",
"shell pm uninstall --user 0 com.android.bluetoothmidiservice",
"shell pm uninstall --user 0 com.android.localtransport",
"shell pm uninstall --user 0 com.android.carrierconfig",
"shell pm uninstall --user 0 com.android.cellbroadcastreceiver",
"shell pm uninstall --user 0 com.android.se",
"shell pm uninstall --user 0 com.android.internal.display.cutout.emulation.tall",
"shell pm uninstall --user 0 com.android.internal.display.cutout.emulation.corner",
"shell pm uninstall --user 0 com.android.internal.display.cutout.emulation.double",
"shell pm uninstall --user 0 com.android.internal.display.cutout.emulation.hole",
"shell pm uninstall --user 0 com.android.internal.display.cutout.emulation.waterfall",
"shell pm uninstall --user 0 com.android.internal.systemui.navbar.gestural_wide_back",
"shell pm uninstall --user 0 com.android.internal.systemui.navbar.gestural_extra_wide_back",
"shell pm uninstall --user 0 com.android.internal.systemui.navbar.gestural",
"shell pm uninstall --user 0 com.android.internal.systemui.navbar.gestural_narrow_back",
"shell pm uninstall --user 0 com.android.internal.systemui.navbar.twobutton",
"shell pm uninstall --user 0 com.android.internal.systemui.navbar.threebutton",
"shell pm uninstall --user 0 android.auto_generated_rro_product__",
"shell pm uninstall --user 0 android.auto_generated_rro_vendor__"
]
print("""
╔═╗┌┐┌┌┬┐┬─┐┌─┐┬┌┬┐ ╔╗ ┬ ┌─┐┌─┐┌┬┐╦ ╦┌─┐┬─┐┌─┐ ╦═╗┌─┐┌┬┐┌─┐┬ ┬┌─┐┬─┐
╠═╣│││ ││├┬┘│ ││ ││───╠╩╗│ │ │├─┤ │ ║║║├─┤├┬┘├┤───╠╦╝├┤ ││││ │└┐┌┘├┤ ├┬┘
╩ ╩┘└┘─┴┘┴└─└─┘┴─┴┘ ╚═╝┴─┘└─┘┴ ┴ ┴ ╚╩╝┴ ┴┴└─└─┘ ╩╚═└─┘┴ ┴└─┘ └┘ └─┘┴└─
[ version 1.1 by zera_mykerd & n0nexist]
""")
adb = "adb"
print("* detecting platform... ",end="")
platform = 'Windows' if os.name in ('nt', 'dos') else 'Linux'
print("detected "+platform)
termsandconditions = "Yes, i agree to terms and conditions!"
choice = input(f"""
[PLEASE READ]
by typing "{termsandconditions}" and pressing enter,
you consent to using this script for removing bloatware (including google-related services and apps)
on your android phone. You're also assuming every responsibility for any possible damage caused by this tool.
> """)
if choice != termsandconditions:
print("\n[-] You didn't accept the terms & conditions of this program, exiting.")
exit(1)
print("* starting adb server...")
if platform == "Windows":
adb += ".exe"
def runcmd(text):
os.popen(adb+" "+text).read()
runcmd("start-server")
print("* removing bloatware; don't close this application until finished, it could cause problems.")
current = 0
total = len(commands)
for cmd in commands:
current+=1
print(f"progress -> {str(current)}/{str(total)}", end="\r")
runcmd(cmd)