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
tree: 9a3db6624bf1b228a811dc5da79827603142ad53
  1. client/
  2. include/
  3. netutils_wrappers/
  4. server/
  5. tests/
  6. .editorconfig
  7. Android.bp
  8. NOTICE
  9. OWNERS
  10. PREUPLOAD.cfg
  11. TEST_MAPPING