Merge "Fix the case where restricted mode allowed reasons are ignored" into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ff733363f6
@@ -4899,6 +4899,8 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub {
|
|||||||
? ALLOWED_REASON_POWER_SAVE_ALLOWLIST : 0);
|
? ALLOWED_REASON_POWER_SAVE_ALLOWLIST : 0);
|
||||||
newAllowedReasons |= (isWhitelistedFromPowerSaveExceptIdleUL(uid)
|
newAllowedReasons |= (isWhitelistedFromPowerSaveExceptIdleUL(uid)
|
||||||
? ALLOWED_REASON_POWER_SAVE_EXCEPT_IDLE_ALLOWLIST : 0);
|
? ALLOWED_REASON_POWER_SAVE_EXCEPT_IDLE_ALLOWLIST : 0);
|
||||||
|
newAllowedReasons |= (uidBlockedState.allowedReasons
|
||||||
|
& ALLOWED_REASON_RESTRICTED_MODE_PERMISSIONS);
|
||||||
|
|
||||||
if (LOGV) {
|
if (LOGV) {
|
||||||
Log.v(TAG, "updateRulesForPowerRestrictionsUL(" + uid + ")"
|
Log.v(TAG, "updateRulesForPowerRestrictionsUL(" + uid + ")"
|
||||||
|
|||||||
Reference in New Issue
Block a user