Merge "Fix default value for mUidState.get."
This commit is contained in:
committed by
Android (Google) Code Review
commit
4825116c10
@@ -2608,8 +2608,7 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub {
|
||||
// (mPowerSaveTempWhitelistAppIds) for whitelisting, we can reuse their logic in this method.
|
||||
private void updateRulesForWhitelistedPowerSaveUL(int uid, boolean enabled, int chain) {
|
||||
if (enabled) {
|
||||
if (isWhitelistedBatterySaverUL(uid)
|
||||
|| isProcStateAllowedWhileIdleOrPowerSaveMode(mUidState.get(uid))) {
|
||||
if (isWhitelistedBatterySaverUL(uid) || isUidForegroundOnRestrictPowerUL(uid)) {
|
||||
setUidFirewallRule(chain, uid, FIREWALL_RULE_ALLOW);
|
||||
} else {
|
||||
setUidFirewallRule(chain, uid, FIREWALL_RULE_DEFAULT);
|
||||
|
||||
Reference in New Issue
Block a user