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.
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.