View Single Post
Posts: 203 | Thanked: 596 times | Joined on Jan 2015 @ Finland
#425
Hello folks,

I implemented a quick (and dirty?) companion daemon "Sonar" for Situations app that makes it possible to run privileged actions on Sailfish without any other hacks. And it is now available for testing.

First implementation is just bringing back functionality that has previously been crippled by updates to Sailfish security policies. But with this daemon, new & improved functionality should be possible to implement in the future too.

This version just re-enables the following actions:
- Bluetooth state
- Wifi state
- Mobile network
- Airplane mode

In addition, the package implements autostart for Situations background service - so it might be incompatible with any other autostart tweaks available.

Obviously the package cannot be available in harbour, so users need to install it separately.

NOTE: Since the Sonar daemon runs as root and opens holes to the current Sailfish security model, the sources of it are open (and available for improvement suggestions). Beware that absolutely any app could use the same interface to access same functionality that is exposed to Situations.

Sonar sources are available here:
https://github.com/pastillilabs/sonar

A ready made rpm package can be fetched from here:
https://github.com/pastillilabs/sona...ases/tag/0.0.1

A compatible alpha version of Situations app is available here:
https://github.com/pastillilabs/pack...leases/tag/248

Briefly tested on Jolla 1 and nothing else. Feedback & improvement suggestions are welcome. Would be nice to know if anyone is actually willing to use this

Br,
Heikki
 

The Following 14 Users Say Thank You to hhaveri For This Useful Post: