Romain Vimont 798727aa58 Use a different server path for each session
When scrcpy is run, a server is pushed to
/data/local/tmp/scrcpy-server.jar.

Running simultaneous scrcpy instances on the same device was not a
problem, because the file was unlinked (removed) almost immediately once
it started, avoiding any conflicts.

In order to support executing new process using the scrcpy-server.jar at
any time (to change the display power mode from a separate process), the
server file must not be unlinked, so using different names are necessary
to avoid conflicts.

Reuse the scid mechanism already used for generating device socket
names.

Refs 4315be164823d2c8fc44b475b52af79bfee98ff1
Refs 439a1fd4ed3d7ada4c5098a6d52893dd4e87082a
2023-11-21 17:01:06 +01:00
..
2023-11-21 00:01:28 +01:00
2023-11-21 00:01:13 +01:00
2023-11-21 00:01:13 +01:00
2023-11-01 18:36:33 +01:00
2023-11-21 00:01:28 +01:00