Skip to content

adb/command/host/__init__.py can take an exception parsing "devices" data #8

@TomOke

Description

@TomOke

It is possible for adbd to respond with more than two tokens on the devices line, such as:
???????? no permission

If this occurs the current split of:
serial, _ = line.split()
finds too many list elements and takes a fault.
If the line is changed to:
tuples = line.split()
serial = tuples[0] # grab the serialno tuple
We only need to look for the serial tuple and don't care how many others are there.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions