+def adb_disconnect(args):
+ if not which("adb"):
+ raise RuntimeError("Could not find adb")
+
+ ip = get_device_ip_address()
+ if not ip:
+ raise RuntimeError("Unknown container IP address. Was Waydroid ever running?")
+
+ tools.helpers.run.user(args, ["adb", "disconnect", ip])
+