diff --git a/apps/ws-scrcpy/ws-scrcpy-launcher.py b/apps/ws-scrcpy/ws-scrcpy-launcher.py index a8e6bed..28de07a 100644 --- a/apps/ws-scrcpy/ws-scrcpy-launcher.py +++ b/apps/ws-scrcpy/ws-scrcpy-launcher.py @@ -129,6 +129,9 @@ def main(): if not is_root_available(): print("Root access is not available, assuming the port is 5555") print("You'll have to start adbd manually as instructed in the README.md") + run(["adb", "kill-server"]) + run(["adb", "devices"]) + run(["adb", "tcpip", "5555"]) adb_port = 5555 adb_port = get_port_from_process_name("adbd") except: