mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-11 02:51:10 +00:00
Fix deploy_local.sh and droiddeckctl not finding a phone connected over wireless debugging (#864)
This commit is contained in:
1 parent
ea0a61ca2b
commit
cd18bdb3dc
1 file changed
+3
-3
+3
-3
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user