scrcpy/server
Romain Vimont 1038bad385 Make it work over tcpip
"adb reverse" currently does not work over tcpip (i.e. on a device
connected by "adb connect"):
<https://issuetracker.google.com/issues/37066218>

To work around the problem, if the call to "adb reverse" fails, then
fallback to "adb forward", and reverse the client/server roles.

Keep the "adb reverse" mode as the default because it does not involve
connection retries: when using "adb forward", the client must try to
connect successively until the server listens.

Due to the tunnel, every connect() will succeed, so the client must
attempt to read() to detect a connection failure. For this purpose, when
using the "adb forward" mode, the server initially writes a dummy byte,
read by the client.

Fixes <https://github.com/Genymobile/scrcpy/issues/5>.
2018-03-12 14:10:32 +01:00
..
scripts Always invoke gradle except as root 2018-02-14 14:03:56 +01:00
src Make it work over tcpip 2018-03-12 14:10:32 +01:00
.gitignore Convert server to an Android project 2018-01-30 12:01:36 +01:00
build.gradle Apply Genymobile rules for Android projects 2018-02-07 20:58:18 +01:00
meson.build Accept prebuilt server 2018-02-14 16:28:21 +01:00
proguard-rules.pro Convert server to an Android project 2018-01-30 12:01:36 +01:00