From 5a82c21f14538a5879d9f8409e680a28ad711cb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Th=E1=BA=BF=20H=C6=B0ng?= Date: Mon, 1 Jul 2024 21:20:09 +0700 Subject: [PATCH] feat: add 3 adb commands for non-root Since fuck it anyway, thanks Sony. --- apps/ws-scrcpy/ws-scrcpy-launcher.py | 3 +++ 1 file changed, 3 insertions(+) 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: