From fa12cfc8152ab88b7fb929d5248ba7a133b30e0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Th=E1=BA=BF=20H=C6=B0ng?= Date: Sat, 4 Jan 2025 22:25:45 +0700 Subject: [PATCH] fix: do not try to detect adbd port if no root --- apps/ws-scrcpy/ws-scrcpy-launcher.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/ws-scrcpy/ws-scrcpy-launcher.py b/apps/ws-scrcpy/ws-scrcpy-launcher.py index 28de07a..7f6bf2a 100644 --- a/apps/ws-scrcpy/ws-scrcpy-launcher.py +++ b/apps/ws-scrcpy/ws-scrcpy-launcher.py @@ -133,7 +133,8 @@ def main(): run(["adb", "devices"]) run(["adb", "tcpip", "5555"]) adb_port = 5555 - adb_port = get_port_from_process_name("adbd") + else: + adb_port = get_port_from_process_name("adbd") except: pass if adb_port is None: