mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00: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> |
||
|---|---|---|
| .. | ||
| data | ||
| deps | ||
| src | ||
| tests | ||
| meson.build | ||
| scrcpy-windows.manifest | ||
| scrcpy-windows.rc | ||
| scrcpy.1 | ||