Per-app background internet restriction
Android already has a way to restrict background mobile data for apps, it's a per-app toggle.
Background data is also restricted in some other cases, namely metered network and data saver modes.
We can re-use this functionality to extend it to works always, per-app. I.e. wifi / data / anything.