What if I decide that I don´t after all trust the app and want to revoke my given permissions, but do not want to uninstall the app (because multi-user)?
Also, right now when testing I have the phenomenon that while I have the [X-SailJail] section in the .desktop, when launched the app is NOT sandboxed. I suspect it may be because I had a Sandbox=Disabled at one point, and later changed it to proper config with permissions. But I`m not sure about that, and want to start afresh to confirm.
(Changing the permissions also shows up in the Settings-App parts, but I am never prompted for new permissions on launch.)
All this happens on SFOS 4.2 so I might just hit some things that have been resolved in later versions.
Just out of curiosity:
Why would apps always request permission for everything, e.g. why would “Galaxy Attack HD” access Internet, Kamera, Mediaindex, Microphone, Position and so on?
Because that is the compatibility mode Jolla chose for the initial release of mandatory sandboxing. Apps which do not request specific permissions get assigned a (broad) default set, hence the prompt.
This has been explained briefly in the Release Notes.
Ah! Thanks for clarification. I tried to revoke all permissions except for Audio for the Galaxy Attack HD app by editing /home/.system/var/lib/sailjail/settings/user-100000.settings, but after a reboot the app wouldn’t start but instead request the entire set of permissions again. I therefore conclude it’s currently not possible to revoke single permissions. What a pitty.
That’s pretty cool.
I played around a bit with the corresponding Desktop file (/usr/share/applications/harbour-pgz-galaxy-attack-hd.desktop) and added the section: [X-Sailjail]
ApplicationName=harbour-pgz-galaxy-attack-hd
Permissions=Audio;Camera;
Audio is necessary for sound output, and Camera to access the sensors.
Using “Sensors” instead of “Camera” does also work, but Jolla doesn’t want it to be used, according to Github.
So next step is to alter all desktop files and add the adequate permissions, right?
It’s automatic, if you run the app with extra permissions in .desktop file you get prompted, if you run with less permissions the old extra ones get removed
First guess: you modified both Permissions and Granted lists? After which Permissions does not match what .desktop has → looks like application requirements have changed → ask from user again. It should work if you: stop the service, edit just the Granted list, restart the service.
While the settings UI etc is still missing things, the underlying interfaces are already there, e.g.
Interesting, thank you, I will give it a try.
I noticed that amazfish-ui wouldn’t start properly when launched through the desktop icon and I wonder which permission would be missing? According to the desktop file, everything including bluetooth is already granted.
BTW: Ah, could be the AppLaunch permission which is missing. How to restart the sailjail service?