Skip to content
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

After the control socket is established, how to make the server recognize the sent ADB command? #1631

Closed
Helaer opened this issue Jul 29, 2020 · 3 comments

Comments

@Helaer
Copy link

Helaer commented Jul 29, 2020

I have set up the scrcpy-server control socket, but after sending the ADB command, it shows: [server] WARN: Unknown event type: 49, what should I do to make the server recognize my ADB command?

@Helaer
Copy link
Author

Helaer commented Jul 29, 2020

Command line return information: [server] WARN: Unknown event type: 49

@rom1v
Copy link
Collaborator

rom1v commented Jul 29, 2020

Please don't open a new issue every time, continue on #1625.

You must serialize events exactly the same way as scrcpy does:

https://github.com/Genymobile/scrcpy/blob/master/app/src/control_msg.chttps://github.com/Genymobile/scrcpy/blob/master/app/tests/test_control_msg_serialize.c

@rom1v rom1v closed this as completed Jul 29, 2020
@rxydenxd
Copy link

@Helaer any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants