I have written a daemon that would toggle the 'allow background connections' setting on and off depending on what kind of network (mobile data or WLAN) a user is connected to. However, it doesn't seem to be enough to just setting /system/osso/connectivity/network_type/restricted_mode to true/false. The setting would seem changed when checking via settings app, but apps still keep pulling stuff in background.
Do i have to emit a signal or something after changing the value, or there's no solution to this problem at all?
the code that does the value change is here https://bitbucket.org/jeffrey04/rest...dater_class.py