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

Is it possible using "adb connect" like in STF

Open mhaqqiw opened this issue 3 years ago • 7 comments

mhaqqiw avatar Jul 29 '21 04:07 mhaqqiw

I don't use STF, please describe in more detail.

drauggres avatar Jul 29 '21 07:07 drauggres

in stf user can use adb connect <ip_host:port> after client using adb connect, connected devices display in client when using adb devices

user:~ user$ adb devices
List of devices attached

user:~ user$ adb connect 172.31.64.16:7417
already connected to 172.31.64.16:7417
user:~ user$ adb devices
List of devices attached
172.31.64.16:7417	device

user:~ user$ adb disconnect 172.31.64.16:7417
disconnected 172.31.64.16:7417
user:~ user$ adb devices
List of devices attached

user:~ user$

mhaqqiw avatar Aug 03 '21 02:08 mhaqqiw

ws-scrcpy works with devices connected over tcp. They should appear in the device list with others. Or you want to "run" adb connect from the UI?

drauggres avatar Aug 03 '21 10:08 drauggres

i want running adb connect from other machine in the same network. the UI provide <host_ip>:<port> information

mhaqqiw avatar Aug 06 '21 03:08 mhaqqiw

I still don't understand. Do you want this feature (qoute from STF README)?

  • Use adb connect to connect to a remote device as if it was plugged in to your computer, regardless of ADB mode and whether you're connected to the same network

drauggres avatar Aug 06 '21 08:08 drauggres

yes, like that feature. it will be helpful if has that feature

mhaqqiw avatar Aug 10 '21 02:08 mhaqqiw

Answering the original question: no, this feature is not implemented. But after looking at the STF implementaion, it is pretty easy to implement: they use an undocumented method createTcpUsbBridge from adbkit.

drauggres avatar Aug 10 '21 11:08 drauggres

will this feature help to implement #https://github.com/NetrisTV/ws-scrcpy/issues/143

krishtoautomate avatar Sep 06 '21 01:09 krishtoautomate