Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 719bae19 authored by Felipe Leme's avatar Felipe Leme Committed by android-build-merger
Browse files

Merge "Fixed enforceMeteredApnPolicy when Data Saver is on." into nyc-dev am:...

Merge "Fixed enforceMeteredApnPolicy when Data Saver is on." into nyc-dev am: efd3a174 am: 223d4fff
am: 3886a8cb

* commit '3886a8cb':
  Fixed enforceMeteredApnPolicy when Data Saver is on.

Change-Id: If9e525f86b29960ed4dfdd6ca27bc5d0077454ae
parents 0f6394a2 3886a8cb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4069,7 +4069,8 @@ public class ConnectivityService extends IConnectivityManager.Stub
            synchronized(mRulesLock) {
                uidRules = mUidRules.get(uid, RULE_ALLOW_ALL);
            }
            if ((uidRules & RULE_ALLOW_ALL) == 0) {
            if (mRestrictBackground && (uidRules & RULE_ALLOW_METERED) == 0
                    && (uidRules & RULE_TEMPORARY_ALLOW_METERED) == 0) {
                // we could silently fail or we can filter the available nets to only give
                // them those they have access to.  Chose the more useful option.
                networkCapabilities.addCapability(NET_CAPABILITY_NOT_METERED);