-
Notifications
You must be signed in to change notification settings - Fork 11
/
uninstallall.py
67 lines (58 loc) · 2.46 KB
/
uninstallall.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
from subprocess import *
#CHANGE THE SHELL COMMANDS HERE
#Obviously if you use platform-specific commands like windows/unix commands it won't work on everything
#But any adb commands should work
SHELL_COMMANDS = r"""
::Required packages
::---------------------------------------------------------
adb uninstall edu.virginia.dtc.biometricsContentProvider
adb uninstall edu.virginia.dtc.CgmService
adb uninstall edu.virginia.dtc.DiAsService
adb uninstall edu.virginia.dtc.DiAsSetup
adb uninstall edu.virginia.dtc.DiAsUI
adb uninstall edu.virginia.dtc.networkService
adb uninstall edu.virginia.dtc.PumpService
adb uninstall edu.virginia.dtc.supervisor
adb uninstall edu.virginia.dtc.ConstraintService
::Deprecated packages
::---------------------------------------------------------
adb uninstall edu.virginia.dtc.HMSservice
adb uninstall edu.virginia.dtc.safetyService
adb uninstall edu.virginia.dtc.MealService
::Driver packages
::---------------------------------------------------------
adb uninstall edu.virginia.dtc.USBDexcomLocalDriver
adb uninstall edu.virginia.dtc.standaloneDriver
adb uninstall edu.virginia.dtc.GlassDriver
adb uninstall edu.virginia.dtc.TandemDriver
adb uninstall edu.virginia.dtc.BTLEDriver
adb uninstall edu.virginia.dtc.USBiDexDriver
adb uninstall edu.virginia.dtc.DexcomG5Driver
adb uninstall com.dexcom.service
adb uninstall edu.virginia.dtc.DexcomBTRelayDriver
adb uninstall edu.virginia.dtc.RocheDriver
adb uninstall edu.virginia.dtc.BTLE_Tandem
adb uninstall edu.virginia.dtc.BTLE_G4
adb uninstall edu.virginia.dtc.HR_Driver
adb uninstall edu.virginia.dtc.ExerciseService
adb uninstall edu.virginia.dtc.Bioharness_Driver
::Service packages
::---------------------------------------------------------
adb uninstall edu.virginia.dtc.BRMservice
adb uninstall edu.virginia.dtc.SSMservice
adb uninstall edu.virginia.dtc.MealActivity
adb uninstall edu.virginia.dtc.APCservice
adb uninstall edu.virginia.dtc.MCMservice
::Delete 'parameters.xml' and 'configurations.xml'
::---------------------------------------------------------
adb shell rm /mnt/sdcard/parameters.xml
adb shell rm /mnt/sdcard/configurations.xml
::Reboot Device
::---------------------------------------------------------
adb reboot
::pause
"""
for command in SHELL_COMMANDS.split('\n'):
if (len(command) > 0) and not (command.startswith('::') or command.startswith('#')):
print command
print Popen(command, stdout=PIPE, shell=True).stdout.read()