Merge "Fix the case where restricted mode allowed reasons are ignored" am: e07b665eec am: bfe9b8a9f3 am: 239e0ec234
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1899431 Change-Id: I9658eb42381af2f00aaf2a6090d80f8aca32d5a3
This commit is contained in:
@@ -4759,6 +4759,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;
|
||||
|
||||
Reference in New Issue
Block a user