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

Commit 72f5572e authored by Sudheer Shanka's avatar Sudheer Shanka Committed by Automerger Merge Worker
Browse files

Merge "Check UID's process state before restricting its network." am:...

Merge "Check UID's process state before restricting its network." am: 114124c3 am: 5eefebd0 am: 24802a49 am: 3abe673e

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1438379

Change-Id: I52e9b8b59f357666cbf623169ac3526fd3ecf26a
parents d403f539 3abe673e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3900,7 +3900,7 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub {
                        // quick check: if this uid doesn't have INTERNET permission, it
                        // doesn't have network access anyway, so it is a waste to mess
                        // with it here.
                        if (hasInternetPermissionUL(uid)) {
                        if (hasInternetPermissionUL(uid) && !isUidForegroundOnRestrictPowerUL(uid)) {
                            uidRules.put(uid, FIREWALL_RULE_DENY);
                        }
                    }