platformService = IPlatform.get_service(args)
if platformService:
platformService.installApp("/data/waydroid_tmp/base.apk")
+ else:
+ logging.error("Failed to access IPlatform service")
os.remove(tmp_dir + "/base.apk")
if session["state"] == "FROZEN":
ret = platformService.removeApp(args.PACKAGE)
if ret != 0:
logging.error("Failed to uninstall package: {}".format(args.PACKAGE))
+ else:
+ logging.error("Failed to access IPlatform service")
if session["state"] == "FROZEN":
cm.Freeze()
print("categories:")
for cat in app["categories"]:
print("\t" + cat)
+ else:
+ logging.error("Failed to access IPlatform service")
if session["state"] == "FROZEN":
cm.Freeze()
- else:
- logging.error("Failed to access IPlatform service")
except dbus.DBusException:
logging.error("WayDroid session is stopped")
statusBarService.expand()
time.sleep(0.5)
statusBarService.collapse()
+ else:
+ logging.error("Failed to access IPlatform service")
maybeLaunchLater(args, justShow)
def intent(args):