Skip to content

Commit 57ccd02

Browse files
author
Julien Jorge
committed
Add a convenience function to uninstall a package via ViewClient.
1 parent fceb877 commit 57ccd02

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)