-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OTG over tcpip mode #3453
Comments
No because we can only send HID events on Android using the AOA protocol (over USB). |
ok. I was thinking you wanted to implement what Deskdock was doing using ADB for mouse and keyboard input |
Actually it is possible with root + uinput. |
I have a root device, can you show me how |
It will require a lot of modifications inside scrcpy. This case can not be handled in easy way. |
Are you able to get it to work yourself
…On Thu, 6 Oct 2022 at 17:17, Twaik Yont ***@***.***> wrote:
It will require a lot of modifications inside scrcpy. This case can not be
handled in easy way.
—
Reply to this email directly, view it on GitHub
<#3453 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUPOVSWTHTMUIHN7ZWEMN3WB33TBANCNFSM57AJFXTA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@rom1v it seems like uinput works fine over ADB TCPIP connection. I can work with https://github.com/Blub/netevent tool cross-compiled to aarch64 with all devices except Xiaomi. I think it can be used to implement capturing PC's keyboard and mouse. |
Since this issue, UHID mode has been implemented: https://github.com/Genymobile/scrcpy/blob/master/doc/keyboard.md#uhid |
What about emulating mouse this way? |
Mouse is also implemented. https://github.com/Genymobile/scrcpy/blob/master/doc/mouse.md#uhid |
You are right, keyboard works after installing last version from release page. But for some reason mouse does not work. I mean cursor is intercepted, but I do not see it on screen. Also clicks make some weird action I can not really identify. Phone reacts like I swipe up. |
On some devices, the cursor is not displayed on lock screen. Does it work on the home screen? (run |
It does not. |
Should I record a video? |
Is your feature request related to a problem? Please describe.
I have been using scrcpy for a very long time, all my phones are always rooted, so I always use scrcpy with tcpip, I just discovered that there is an otg mode, which is only accessible with USB
Describe the solution you'd like
Is it possible to enable this mode on tcpip mode, since the ADB daemon is not being used by the USB on tcpip mode?
Describe alternatives you've considered
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: