openstf / STFService.apk

Monitor and perform various actions on your Android device. Not meant for actual user devices.
Other
242 stars 207 forks source link

Bluetooth and location #18

Closed JeannedArk closed 6 years ago

JeannedArk commented 6 years ago

Hi,

first of all, you did a great job!

We would like to be able on the OpenSTF server to reset Bluetooth and location settings. As far as I have seen there exists no functionality for these already. I would create then similiar ones to the WiFi functionality: https://github.com/openstf/STFService.apk/blob/master/app/src/main/java/jp/co/cyberagent/stf/query/SetWifiEnabledResponder.java

I think that might be useful to others, therefore after finishing this feature shall I create a pull request?

Thanks

sorccu commented 6 years ago

Yes please :)

JeannedArk commented 6 years ago

I created a pull request for Bluetooth: https://github.com/openstf/STFService.apk/pull/20/files

Apparently, it is not able to change the location settings programmatically for security reasons: https://stackoverflow.com/questions/4721449/how-can-i-enable-or-disable-the-gps-programmatically-on-android

JeannedArk commented 6 years ago

Ping @sorccu , maybe you had already a chance to have a look at the code changes :)

sorccu commented 6 years ago

I can't until next weekend - sorry for the delay.

JeannedArk commented 6 years ago

@sorccu Any chance to test it?

sorccu commented 6 years ago

Finally merged. Sorry for the wait.