mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-11 14:21:49 +08:00
`adb devices -l` prints one device per line, containing, separated by spaces: - the device serial, - the device state, - a list of key:value pairs. However, the device serial itself may contain spaces, making a simple split ambiguous. To avoid ambiguity, parse the string backwards: - first, parse all the trailing values until the device state, identified using a list of well-known values; - finally, treat the remaining leading token as the device serial. Fixes #3537 <https://github.com/Genymobile/scrcpy/issues/3537> Refs #6248 <https://github.com/Genymobile/scrcpy/issues/6248> PR #6664 <https://github.com/Genymobile/scrcpy/pull/6664> |
||
|---|---|---|
| .. | ||
| test_adb_parser.c | ||
| test_audiobuf.c | ||
| test_binary.c | ||
| test_cli.c | ||
| test_command_windows.c | ||
| test_control_msg_serialize.c | ||
| test_device_msg_deserialize.c | ||
| test_orientation.c | ||
| test_str.c | ||
| test_strbuf.c | ||
| test_vecdeque.c | ||
| test_vector.c | ||