Merge "Fix the case where restricted mode allowed reasons are ignored" am: e07b665eec am: bfe9b8a9f3 am: 239e0ec234 am: d0ea504501

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1899431

Change-Id: I950022906886f40a1fb830cc904570ac774254de
This commit is contained in:
Sudheer Shanka
2021-11-30 19:06:37 +00:00
committed by Automerger Merge Worker

View File

@@ -4739,6 +4739,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);
uidBlockedState.blockedReasons = (uidBlockedState.blockedReasons
& BLOCKED_METERED_REASON_MASK) | newBlockedReasons;