1
這個腳本有什麼問題?如何使用Monkeyrunner卸載軟件包?
# Imports the monkeyrunner modules used by this program
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
# Connects to the current device, returning a MonkeyDevice object
device = MonkeyRunner.waitForConnection()
#Uninstall package
device.removePackage ('MyApp.apk')
我也使用該應用程序的路徑嘗試和沒有工作。