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

Possible to control wifi toggles

Open krishtoautomate opened this issue 4 years ago • 7 comments

is it possible to add wifi on and off toggles in ui

krishtoautomate avatar Jan 09 '21 16:01 krishtoautomate

Why? There are no other controls like this. And you can always turn it on/off from the device UI (needless to say you must select proxy over adb from Network Interface before connection).

drauggres avatar Jan 11 '21 12:01 drauggres

i have functionality requirement of running some commands like this adb shell svc wifi enable adb shell svc wifi disable adb shell svc data disable adb shell svc data enable

krishtoautomate avatar Jan 11 '21 14:01 krishtoautomate

Is there a problem to run them from included remote shell (#!action=shell link in the last column)? Or do you just want a shortcut?

drauggres avatar Jan 11 '21 18:01 drauggres

required shotcut so less technical people can use it

krishtoautomate avatar Jan 11 '21 22:01 krishtoautomate

I have no intention to implement this feature myself at the moment. But PR are welcome.

drauggres avatar Mar 08 '21 11:03 drauggres

what message I should send to websocket to start an appPackage or appActivity? please share an example command message

krishtoautomate avatar Jun 19 '21 23:06 krishtoautomate

what message I should send to websocket to start an appPackage or appActivity?

This feature is not supported, you can only start an app manually by clicking on its icon. All control messages classes are in https://github.com/NetrisTV/ws-scrcpy/tree/master/src/app/controlMessage

drauggres avatar Jun 20 '21 08:06 drauggres