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

Commit ff733363 authored by Sudheer Shanka's avatar Sudheer Shanka Committed by Android (Google) Code Review
Browse files

Merge "Fix the case where restricted mode allowed reasons are ignored" into sc-v2-dev

parents 1a789dc5 8ec56b2f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -4899,6 +4899,8 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub {
                ? ALLOWED_REASON_POWER_SAVE_ALLOWLIST : 0);
        newAllowedReasons |= (isWhitelistedFromPowerSaveExceptIdleUL(uid)
                ? ALLOWED_REASON_POWER_SAVE_EXCEPT_IDLE_ALLOWLIST : 0);
        newAllowedReasons |= (uidBlockedState.allowedReasons
                & ALLOWED_REASON_RESTRICTED_MODE_PERMISSIONS);

        if (LOGV) {
            Log.v(TAG, "updateRulesForPowerRestrictionsUL(" + uid + ")"