scrcpy/app/src/adb
Romain Vimont 4315be1648 Use random name for device socket
For the initial connection between the device and the computer, an adb
tunnel is established (with "adb reverse" or "adb forward").

The device-side of the tunnel is a local socket having the hard-coded
name "scrcpy". This may cause issues when several scrcpy instances are
started in a few seconds for the same device, since they will try to
bind the same name.

To avoid conflicts, make the client generate a random UID, and append
this UID to the local socket name ("scrcpy_01234567").
2023-01-27 21:51:59 +01:00
..
adb.c Add missing LOG_OOM() on malloc failure 2022-07-19 12:15:06 +02:00
adb.h Consider emulators as TCP/IP devices 2022-03-22 21:08:08 +01:00
adb_device.c Add missing include 2022-04-12 23:51:05 +02:00
adb_device.h Consider emulators as TCP/IP devices 2022-03-22 21:08:08 +01:00
adb_parser.c Rename function to simplify 2022-06-09 15:02:42 +02:00
adb_parser.h Rename function to simplify 2022-06-09 15:02:42 +02:00
adb_tunnel.c Use random name for device socket 2023-01-27 21:51:59 +01:00
adb_tunnel.h Use random name for device socket 2023-01-27 21:51:59 +01:00