Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e77d23f authored by Sudheer Shanka's avatar Sudheer Shanka
Browse files

Update standby firewall rules when an app came out of standby mode.

Fixes: 64690559
Test: cts-tradefed run singleCommand cts-dev --module CtsHostsideNetworkTests -t \
      com.android.cts.net.HostsideRestrictBackgroundNetworkTests
Test: bit FrameworksServicesTests:com.android.server.net.ConnOnActivityStartTest

Change-Id: If437047a3b9e37ca7c587460d39f93ce4d4febcd
parent 06668b5f
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -3046,9 +3046,7 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub {
                updateRestrictBackgroundRulesOnUidStatusChangedUL(uid, oldUidState, uidState);
                if (isProcStateAllowedWhileIdleOrPowerSaveMode(oldUidState)
                        != isProcStateAllowedWhileIdleOrPowerSaveMode(uidState) ) {
                    if (isUidIdle(uid)) {
                    updateRuleForAppIdleUL(uid);
                    }
                    if (mDeviceIdleMode) {
                        updateRuleForDeviceIdleUL(uid);
                    }