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

Please Add Remote Control. #62

Open
the-mentor opened this issue Jul 16, 2019 · 15 comments
Open

Please Add Remote Control. #62

the-mentor opened this issue Jul 16, 2019 · 15 comments

Comments

@the-mentor
Copy link

This app is great the only thing its missing IMO is the ability to remote control the phone that is being streamed.
so i would like to suggest that improvement.

thank you!
-DM

@dkrivoruchko
Copy link
Owner

What kind of remote control you suggest?

@the-mentor
Copy link
Author

I recommend a way to click and drag with the mouse on the website and relay these clicks to the device.
Also keyboard support will also be very useful.

@dkrivoruchko
Copy link
Owner

You not the first one with such ideas. The is one issue - for security reasons Android system deny any way to interact one app with other. There is only limited options completely controlled by system. So without rooting device there is no way to do this or I don't know such way. Let me know if you have any.

@the-mentor
Copy link
Author

I think apps like Vysor use the adb over network or adb over USB to control a device without root.
And I would very much prefer an open source solution like screen stream

@dkrivoruchko
Copy link
Owner

Yes, but this is differently no a simple solution as Start-and-Go.
I'll not do this, but any one can do this.

@ItsShadowl
Copy link

It can be implemented using accessibility services, the user has to enabled it for the app before the controls can work

@soutieslak
Copy link

@noobshow I am currently looking at trying to implement remote control functionality into this. Have you perhaps already attempted it?

@ItsShadowl
Copy link

Hi @soutieslak,
I eventually stopped the project, the others on the team stopped responding around the COVID outbreak. It should be easy I think.

@nian0114
Copy link

@soutieslak @ItsShadowl try this one which is based this project if u have ROOT access. it need ROOT so i will not create pr to this proj.And big thanks to dkrivoruchko. fork proj url is https://github.com/nian0114/ScreenStreamRemoteControl

@KopiasCsaba
Copy link

Maybe these guys have it figured out? Indeed this would be super cool to have.

https://github.com/h-mdm

@aurium
Copy link

aurium commented Dec 20, 2024

@KopiasCsaba H-MDM looks interesting for automated tests, but I don't really understand it. Can you point how it can simulate screen touch on the device? Thank you!

@KopiasCsaba
Copy link

An update on this, here is a proof of concept that it is possible!

  1. Install this awesome tool: https://play.google.com/store/search?q=automate&c=apps

  2. import this flow:
    Gesture!.zip
    (You need to unzip it first).
    This will create a flow that looks like this:
    image

And you can see it in this video in action:

  • I start the flow
  • I switch to the browser
  • Automate injects the swipe and the browser interprets that as a reload gesture
rec.mp4

So upon doing those things, you'll notice it asks permission to be an accessibility service.

So I'm pretty sure that is the key to this, through accessibility service you can inject gestures somehow.

@KopiasCsaba
Copy link

KopiasCsaba commented Jan 14, 2025

@KopiasCsaba H-MDM looks interesting for automated tests, but I don't really understand it. Can you point how it can simulate screen touch on the device? Thank you!

Great news!

I had hard time finding it in that repo, but based on my prev post i started to dig around, and found it!

So KDEConnect is an opensource tooling from where you can learn how to do it!

I believe the key code parts are here:

Here is a confusing video on kdeconnect in action, where I draw with my mouse through wifi on a split screen, so you can see both my mouse and what events happening on the paint canvas.

document_5778563323477890199.mp4

It would be really awesome to be able to interact with the phone through the browser. I hope I could have shown some useful resources for it.

@dkrivoruchko dkrivoruchko reopened this Jan 14, 2025
@dkrivoruchko
Copy link
Owner

Thanks for research. Will have a look. But no promises.

@Sigmun
Copy link

Sigmun commented Mar 4, 2025

Indeed, TeslaDisplay made it real. But I prefer your app with resizing feature. Another feature they have is using local domaine name rather than IP.

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

8 participants