Genymobile-scrcpy/app/tests
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
..
test_adb_parser.c Improve adb devices parsing 2026-02-12 20:06:11 +01:00
test_audiobuf.c Handle audio stream discontinuities 2025-03-29 14:54:35 +01:00
test_binary.c Add util functions to write in little-endian 2024-09-15 11:21:56 +02:00
test_cli.c Add --capture-orientation 2024-11-19 21:31:04 +01:00
test_command_windows.c Add utility to serialize windows arguments 2026-02-12 20:00:39 +01:00
test_control_msg_serialize.c Add shortcuts to change the camera zoom 2026-01-13 20:40:58 +01:00
test_device_msg_deserialize.c Handle UHID output 2024-03-01 00:52:00 +01:00
test_orientation.c Add --display-orientation 2023-11-23 23:27:28 +01:00
test_str.c Remove sc_str_quote() 2026-02-12 20:00:59 +01:00
test_strbuf.c Add missing includes 2021-11-24 21:44:29 +01:00
test_vecdeque.c Add missing voids for empty parameter list 2023-10-23 21:50:40 +02:00
test_vector.c Add missing voids for empty parameter list 2023-10-23 21:50:40 +02:00