Skip to content

Commit 4a0b458

Browse files
authored
Merge pull request dtmilano#285 from j-jorge/viewclient-uninstall
Add a convenience function to uninstall a package via ViewClient.
2 parents fceb877 + 57ccd02 commit 4a0b458

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/com/dtmilano/android/viewclient.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4362,6 +4362,9 @@ def installPackage(self, apk, allowTestApk=False):
43624362
else:
43634363
return subprocess.check_call([self.adb, "-s", self.serialno, "install", "-r", apk], shell=False)
43644364

4365+
def uninstallPackage(self, package):
4366+
return subprocess.check_call([self.adb, "-s", self.serialno, "uninstall", package], shell=False)
4367+
43654368
@staticmethod
43664369
def writeViewImageToFileInDir(view):
43674370
'''

0 commit comments

Comments
 (0)