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

Running STFService on user devices #1

Open
paulirish opened this issue Jul 15, 2015 · 5 comments
Open

Running STFService on user devices #1

paulirish opened this issue Jul 15, 2015 · 5 comments

Comments

@paulirish
Copy link

On the way to report this I see the "not meant for user devices" text… :)

For me, the benefits of using openstf on a small set of devices are huge. Two of those devices are my personal phones. (yeah, two in my pocket all the time. shrug.)

In this case, the stfservice continues to run long after i've disconnected.

I don't know what the best solution should be, but I would like to easily use STP on and off with my own devices and have the STFService not always running. Basically I think I'm asking for an easier off-switch than Settings > Apps > Running > STF > Terminate service.

@sorccu
Copy link
Member

sorccu commented Jul 15, 2015

You're right, I've been thinking about the same thing. All of our devices are fixed right now, so it hasn't been a real issue for us as they're going to be running it anyway, but I'm aware of the problem.

Just to be clear: you'd be happ(y|ier) if it was easier to turn the service off, or would you prefer if the service stopped itself when STF stops?

@paulirish
Copy link
Author

1st preference: the android service terminated when STF stops.
2nd: manually kill the service from the notification bar.

@sorccu
Copy link
Member

sorccu commented Jul 15, 2015

The service opens a socket server on the device which STF then connects to. My current war plan is to make the service terminate itself if there's not even a single connection for ~30s or so. This should achieve the desired result albeit with a small delay, and as a bonus would be relatively easy to implement.

The UsbManager broadcasts are for SDK 12+ and I'm not completely sure if they'd work for this use case anyway, although I'll probably do some additional googling later.

@paulirish
Copy link
Author

My current war plan is to make the service terminate itself if there's not even a single connection for ~30s or so

works for me! thanks

@deano2390
Copy link

+1

thinkhy added a commit that referenced this issue Feb 9, 2019
igit-cn added a commit to igit-cn/STFService.apk that referenced this issue Jan 25, 2021
Update Semaphore configuration (openstf#1)
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