Merge "Check UID's process state before restricting its network." am: 114124c348 am: 5eefebd02e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1438379 Change-Id: I302404f23e46451583e46537e6a8736e90af14dd
This commit is contained in:
@@ -3891,7 +3891,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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user