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

+4
View File
@@ -246,17 +246,21 @@ class ReadinessEngine:
return heal_adb_keys(adb_path=adb_path)
try:
clean_env = os.environ.copy()
clean_env.pop("ADB_SERVER_SOCKET", None)
subprocess.run(
[adb_path, "kill-server"],
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
timeout=5,
env=clean_env,
)
res = subprocess.run(
[adb_path, "start-server"],
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
timeout=5,
env=clean_env,
)
success = res.returncode == 0
return {