Fix deploy_local.sh and droiddeckctl not finding a phone connected over wireless debugging (#864)

This commit is contained in:
Muaz Kadan authored and GitHub committed 2026-10-15 09:47:01 -04:00
1 parent ea0a61ca2b
commit cd18bdb3dc
1 file changed
+3 -3
+3 -3
View File
@@ -29,9 +29,9 @@ def _device_list(adb: str) -> list[str]:
raise DeviceResolutionError(result.stderr.strip() or "adb devices failed")
devices = []
for line in result.stdout.splitlines()[1:]:
fields = line.split()
if len(fields) >= 2 and fields[1] == "device":
devices.append(fields[0])
match = re.match(r"^(.+?)\s+device(?:\s+\S+:\S+)*\s*$", line)
if match:
devices.append(match.group(1))
return devices