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

Always starting minitouch agent #53

Closed

Conversation

4c0n
Copy link

@4c0n 4c0n commented Jun 7, 2020

Hi,

I'd like to suggest that the minitouch agent always be started, not just for Android Q.
That way we can use it when devices don't have a libevdev multi touch input device.
As such openstf/minitouch#15 can be closed, as we now have a better solution.
My personal use case is that I need stf to be able to remotely control my Android devices running without a (working) touch screen. (Using the boards of old phones to turn them into remotely operated vehicles)

@4c0n
Copy link
Author

4c0n commented Jun 8, 2020

@koral-- thanks for reviewing! 😎 What are the next steps to get this merged?

@4c0n
Copy link
Author

4c0n commented Jun 15, 2020

@koral-- Did not receive a response from you :( @sorccu Can you perhaps coordinate this?

@koral--
Copy link
Member

koral-- commented Jun 15, 2020

Sorry for the lack of the response. I was quite busy last days. I'll reach you back ASAP.

@4c0n
Copy link
Author

4c0n commented Jun 17, 2020

Thank you @koral--

@fablexis
Copy link

fablexis commented Jun 18, 2020

not sure if I'm doing something wrong but when running:

adb shell am startservice --user 0 \
    -a jp.co.cyberagent.stf.ACTION_START \
    -n jp.co.cyberagent.stf/.Service

I get:

Starting service: Intent { act=jp.co.cyberagent.stf.ACTION_START cmp=jp.co.cyberagent.stf/.Service }
Error: app is in background uid null

Any suggestions here? I've read several issues here, but nothing has worked for me...

By the way, @4c0n I've tried this using your fork, but it did not work for me either

I'm really struggling with this :'(

@4c0n
Copy link
Author

4c0n commented Jun 18, 2020

@fablexis I don't think it's related to this pull request and I'm sorry to say I don't know what that error means. However if I were to make a guess, it would be something in the lines of: user id (uid) 0 is usually that of the "root" user. The command would imply that you are trying to start the APK as service running with root privileges. Maybe you don't have the right privileges to do so.
Hope that helps, otherwise opening an issue or seeking support through other channels would be the best thing you can do.

@4c0n
Copy link
Author

4c0n commented Jun 29, 2020

@koral-- Still very busy? It's only a very small change.

@koral--
Copy link
Member

koral-- commented Jun 29, 2020

Sorry for the delay. As I wrote in openstf/stf#1239 (comment) all the STF repos are being reconfigured.

In the meantime could you sign off your commit as described in https://github.com/apps/dco?
Sign-off requirement is going to be enabled for all the repos.

@4c0n
Copy link
Author

4c0n commented Jun 30, 2020

@koral-- No worries, sorry I didn't notice the comment. I'll do the sign-off in the meantime.

@koral--
Copy link
Member

koral-- commented Jul 13, 2020

@4c0n could you resumbit your PR that repo: https://github.com/DeviceFarmer/STFService.apk?
This repository will be archived and won't be updated.
Sorry for the inconvenience.

4c0n added 2 commits July 13, 2020 22:08
Signed-off-by: Youri Westerman <[email protected]>
…n/STFService.apk into feature/always-start-minitouch-agent
@4c0n
Copy link
Author

4c0n commented Jul 13, 2020

@koral-- As requested: DeviceFarmer#5

@4c0n 4c0n closed this Jul 13, 2020
@YangCn
Copy link

YangCn commented Feb 14, 2023

@4c0n Hello, sorry for bothering, I encountered some problems when using minitouch and would like to ask for advice.
My case is to use minitouch to do gestures on the development board (without touchpad?). When I execute the minitouch command, the command returns "Unable to find a suitable touch device".
Now I have installed Minitouch and STFService on the development board, and started the service and agent according to the readme of STFService, what should I do next? How to make Minitouch work normally on devices without touchpad?

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

Successfully merging this pull request may close these issues.

4 participants