fix: auto-start local adb daemon and optimize path discovery across Linux, macOS and Windows

This commit is contained in:
somew1nd committed 2026-09-04 12:01:32 -07:00
1 parent 8b3cfe9bb3
commit 41b1b94706
7 files changed
+114

No files matched your search

+3
View File
@@ -247,11 +247,14 @@ class DevicePool:
return
proc = None
try:
clean_env = os.environ.copy()
clean_env.pop("ADB_SERVER_SOCKET", None)
proc = await asyncio.create_subprocess_exec(
adb,
"start-server",
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
env=clean_env,
)
await asyncio.wait_for(proc.communicate(), timeout=timeout)
except Exception as exc: