-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
How to send custom adb commands through your server? #2248
Comments
@rom1v Can you help me? |
More details here: #231 (comment) Basically, scrcpy does not receive adb commands, but custom commands, which are reimplemented in java (using reflection to access Android framework). More documentation: |
It is possible to send adb command to get the ui dump while scrcpy is running.
It worked on my Android 9 environment. |
Hello developers, I am new to scrcpy, this is a great application because of the speed of its communication with android devices. I am using c # to automate android.
I am wanting to go through a scrcpy server to improve the speed of sending custom commands to an android device. I finished starting up the scrcpy server from the c# code associated with the SharpAdbClient library.
My problem is not knowing how to send custom adb commands. For example:
uiautomator dump/dev/tty
and get the device's xml layout. or send touch commands, swipe in custom position. or adb command to take individual screenshots (only 1 image at a time) ...Is there any example code or documentation to do the above? any example code or documentation is appreciated. Thanks a lot.
The text was updated successfully, but these errors were encountered: