X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/blobdiff_plain/da4772c4e54467920d642e2a792c5d16d3b7bf33..2e4e921317903f5152ce17bc7aa9fdf278b45f15:/tools/__init__.py diff --git a/tools/__init__.py b/tools/__init__.py index d317414..e493d53 100644 --- a/tools/__init__.py +++ b/tools/__init__.py @@ -110,11 +110,9 @@ def main(): "Run waydroid {} -h for usage information.".format(args.action)) elif args.action == "prop": if args.subaction == "get": - ret = helpers.props.get(args, args.key) - if ret: - print(ret) + actions.prop.get(args) elif args.subaction == "set": - helpers.props.set(args, args.key, args.value) + actions.prop.set(args) else: logging.info( "Run waydroid {} -h for usage information.".format(args.action)) @@ -132,6 +130,13 @@ def main(): actions.app_manager.showFullUI(args) elif args.action == "status": actions.status.print_status(args) + elif args.action == "adb": + if args.subaction == "connect": + helpers.net.adb_connect(args) + elif args.subaction == "disconnect": + helpers.net.adb_disconnect(args) + else: + logging.info("Run waydroid {} -h for usage information.".format(args.action)) elif args.action == "log": if args.clear_log: helpers.run.user(args, ["truncate", "-s", "0", args.log])