bw: Make background data work as background network access instead
* Always apply penalty box
* Why should only costly interfaces (metered, mobile data) have all the fun
* This changes the AOSP "Background data" implementation to "Background network access"
instead, wherein all background network usage is disallowed when the Settings
toggle is off, instead of just mobile data.
* Data saver currently applies beyond metered networks since it is linked to the
UID background data restriction chain. This is unintentional behaviour
and therefore must be unlinked.
Test: Toggle on, Launch F-Droid, try to download a big app, Toggle off.
Download should pause when in background (verify via notification),
and resume when in foreground.
Change-Id: I634c4c8a8e83dd55ac287efcebda1980571c8772
(cherry picked from commit daee31b01644b13882698f7fa486b90569f6809d)
Signed-off-by: Jis G Jacob <studiokeys@blissroms.org>
1 file changed