Removed redundant call to updateRulesForRestrictPowerUL().

That method scans all UIDs, and is redundantly called on
updateRulesForTempWhitelistChangeUL() for each UID.

BUG: 30374782
BUG: 30568426

Change-Id: I56670578eff0789b1923cee0a1b316ffdbc3aa79
This commit is contained in:
Felipe Leme
2016-07-29 16:59:14 -07:00
parent 29cc1b6939
commit 7e6d8e2236

View File

@@ -2818,7 +2818,6 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub {
for (int j = mPowerSaveTempWhitelistAppIds.size() - 1; j >= 0; j--) {
int appId = mPowerSaveTempWhitelistAppIds.keyAt(j);
int uid = UserHandle.getUid(user.id, appId);
updateRulesForRestrictPowerUL();
// Update external firewall rules.
updateRuleForAppIdleUL(uid);
updateRuleForDeviceIdleUL(uid);