scrcpy-snap icon indicating copy to clipboard operation
scrcpy-snap copied to clipboard

Consider adding more documentation about when and how to use scrcpy.adb

Open frederickjh opened this issue 4 years ago • 0 comments

Hi! Please considered adding more information to the documentation and a link to the documentation to the Snap Store page for scrpy.adb.

I was having issues as I have a different version of adb installed with the android-tools-adb package in Ubuntu. I was seeing messages in the terminal when running adb and scrpy command like the following:

$ adb devices -l
List of devices attached
adb server version (39) doesn't match this client (40); killing...
* daemon started successfully
$ scrcpy
INFO: scrcpy 1.16 <https://github.com/Genymobile/scrcpy>
adb server version (40) doesn't match this client (39); killing...
* daemon started successfully
/usr/local/share/scrcpy/scrcpy-server: 1 file pushed. 1.5 MB/s (33622 bytes in 0.022s)
[server] INFO: Device: XXX XXXXXXXX (Android 9)
INFO: Renderer: opengl
INFO: OpenGL version: 4.6.0 NVIDIA 390.25
INFO: Trilinear filtering enabled
INFO: Initial texture: 1440x2560

Notice the lines in both adb server version (40) doesn't match this client (39); killing...

This really became an issue when I decide to connect via Wi-Fi instead of via the USB cable.

$ adb tcpip 5555
adb server version (39) doesn't match this client (40); killing...
* daemon started successfully
$ adb connect 192.168.1.25:5555 
connected to 192.168.1.25:5555
$ scrcpy 
INFO: scrcpy 1.16 <https://github.com/Genymobile/scrcpy>
adb server version (40) doesn't match this client (39); killing...
* daemon started successfully
adb: error: failed to get feature set: no devices/emulators found
ERROR: "adb push" returned with value 1

What enabled me to get this working and stop seeing the adb server version (40) doesn't match this client (39); killing... messages was to use the adb built into the snap, scrpy.adb.

$ scrcpy.adb devices -l
List of devices attached
XXXXXXXXXXXXXXXX       device usb:1-1 product:XX-XXXX_XXXX model:XX_XXXX device:NB1 transport_id:1
$ scrcpy.adb usb
restarting in USB mode
$ scrcpy.adb tcpip 5555
$ scrcpy.adb connect 192.168.1.25:5555
connected to 192.168.1.25:5555
$ scrcpy
INFO: scrcpy 1.16 <https://github.com/Genymobile/scrcpy>
/usr/local/share/scrcpy/scrcpy-server: 1 file pushed. 0.6 MB/s (33622 bytes in 0.051s)
[server] INFO: Device: XXXXX XXXXXXX (Android 9)
INFO: Renderer: opengl
INFO: OpenGL version: 4.6.0 NVIDIA 390.25
INFO: Trilinear filtering enabled
INFO: Initial texture: 1440x2560
[server] INFO: Device screen turned off

See Genymobile/scrcpy#1126 for an example of how this is being reported by users in the upstream project.

Please consider adding documentation that says if you see a message like adb server version (40) doesn't match this client (39); killing... to use the adb built into the snap, scrpy.adb and give examples. Also consider linking from the Snap store page to the documentation on the Github page.

frederickjh avatar Sep 16 '20 20:09 frederickjh