@pherjung / @moderators can you split all posts after and including Script to block chosen Android apps from accessing the internet - #16 by chr1s into this thread: Apps by ichthyosaurus ? That would make discussion here a little cleaner. Thank you!
There are built packages and screenshots in the repo ![]()
My Xperia 10 III with Sailfish 4.6 has the former path, my C2 with latest Sailfish 5.x uses the latter. My app supports both.
I do actually: MainPage.qml I used the list from your script. It uses Jolla’s own ApplicationSettingsModel which is not ideal but it was the quickest way to get the results I needed. Implementing a custom model may make sense in a future version.
Yes, I don’t like parsing CLI output. I just pushed version 0.2.0 where I implemented a new method that works faster and doesn’t require parsing iptables: connman doesn’t support live reloading changed config files (Firewall | Sailfish OS Documentation) but it does support adding and removing config files without a service restart. So now the app simply switches between two config files (60-... and 61-...), then calls systemctl reload connman. This is fast and reliable.
You can ignore most of it. The code in src is just for setup, everything in qml/modules is the GitHub - Pretty-SFOS/opal: A collection of pretty QML components for SailfishOS library. All the magic happens in qml/py/firewall.py and the main GUI part is in qml/pages/MainPage.qml.
Because of: FAQ This app won’t fly in harbour but it makes maintenance easier if all my apps follow the same structure.
Would be nice but I didn’t manage to set it up yet. From a developer perspective I also see little use in it because it is yet another place where I’d have to manually release stuff. Automatic publishing from Git to chum to Harbour and OpenRepos would be ideal…
Nice, thank you!