scrcpy/app
Romain Vimont 82e102e036 Improve adb devices parsing
`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>
2026-02-12 20:06:11 +01:00
..
data Add option to specify the camera zoom 2026-01-13 20:37:42 +01:00
deps Upgrade SDL build script for SDL3 2026-01-08 20:40:51 +01:00
src Improve adb devices parsing 2026-02-12 20:06:11 +01:00
tests Improve adb devices parsing 2026-02-12 20:06:11 +01:00
meson.build Add utility to serialize windows arguments 2026-02-12 20:00:39 +01:00
scrcpy-windows.manifest Set DPI awareness for Windows 2021-12-20 19:13:02 +01:00
scrcpy-windows.rc Bump version to 3.3.4 2025-12-17 19:57:50 +01:00
scrcpy.1 Add shortcuts to change the camera zoom 2026-01-13 20:40:58 +01:00