更新Makefile
This commit is contained in:
@@ -45,9 +45,9 @@ class APK:
|
||||
def __init__(self, apkPath):
|
||||
self.apkPath = apkPath
|
||||
def install(self):
|
||||
os.system("pkexec /usr/bin/uengine-session-launch-helper -- uengine install --apk='{}'".format(self.apkPath))
|
||||
return os.system("uengine install --apk='{}'".format(self.apkPath))
|
||||
def uninstall(self):
|
||||
os.system("pkexec /usr/bin/uengine-session-launch-helper -- uengine uninstall --pkg='{}'".format(self.packageName()))
|
||||
return os.system("uengine uninstall --pkg='{}'".format(self.packageName()))
|
||||
def information(self):
|
||||
return subprocess.getoutput("aapt dump badging '{}'".format(self.apkPath))
|
||||
def activityName(self):
|
||||
@@ -362,10 +362,11 @@ class UengineRunner:
|
||||
|
||||
if __name__ == "__main__":
|
||||
print("本 API 不支持直接运行,请通过引入的方式使用此 API")
|
||||
adb = Adb("192.168.250.2:5555")
|
||||
print(adb.boolAndroidInstallOtherAppSetting())
|
||||
#adb = Adb("192.168.250.2:5555")
|
||||
#print(adb.boolAndroidInstallOtherAppSetting())
|
||||
|
||||
quit()
|
||||
|
||||
if not ROOT.GetRoot():
|
||||
print("请获取 ROOT 权限以便更好的使用该 API")
|
||||
pass
|
||||
#print("请获取 ROOT 权限以便更好的使用该 API")
|
||||
Reference in New Issue
Block a user