scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

Checking ADB connection on Android device

Open dilbert168 opened this issue 7 years ago • 5 comments

I have the scrcpy setup and working over WiFi to Android device. Now I have a question, is there a way (API) on Android "scrcpy-master"

  • check the status of the "scrcpy" has ran and displayed ?
  • check data transport performance ?

Any reference code would be excellent. Thanks so much

dilbert168 avatar Oct 25 '19 23:10 dilbert168

check the status of the "scrcpy" has ran and displayed ?

#153 ?

check data transport performance ?

There's nothing implemented for that.

rom1v avatar Oct 28 '19 20:10 rom1v

I try to see the flow of the code on Android using the logcat but nothing show for scrcpy when connected. Something I done wrong ?

adb logcat -s scrcpy

dilbert168 avatar Oct 30 '19 20:10 dilbert168

I try to see the flow of the code on Android using the logcat but nothing show for scrcpy when connected

There are only few log messages on the device-side. Btw, they are also printed into the console.

You could try to copy some text from your computer (Ctrl+C), then Ctrl+Shift+V in the scrcpy window, it sets the clipboard and logs at INFO level.

rom1v avatar Oct 30 '19 20:10 rom1v

Thanks. See logcat message using your method.

As for my question, I went through #153 and couldn't find the method to check for device "connected" to desktop. In #575, you stated there isn't a method, correct ?

dilbert168 avatar Oct 30 '19 21:10 dilbert168

No, there is nothing to notify some app that scrcpy is running.

rom1v avatar Oct 31 '19 20:10 rom1v