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

Commit 30e26904 authored by Oliver Scott's avatar Oliver Scott Committed by Michael Bestas
Browse files

fixup! fw/b: Add support for allowing/disallowing apps on cellular, vpn and wifi networks

Do not set apps without INTERNET permission as blocked by restricted networking mode

Issue: calyxos#1266
Change-Id: I11e30bc0c1f8c722d2b5941c17d430dba942594d
parent bdbf4ad5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4480,7 +4480,7 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub {
            } else {
                uidBlockedState.blockedReasons &= ~BLOCKED_REASON_RESTRICTED_MODE;
            }
            if (hasRestrictedModeAccess) {
            if (hasRestrictedModeAccess || !hasInternetPermissionUL(uid)) {
                uidBlockedState.allowedReasons |= ALLOWED_REASON_RESTRICTED_MODE_PERMISSIONS;
            } else {
                uidBlockedState.allowedReasons &= ~ALLOWED_REASON_RESTRICTED_MODE_PERMISSIONS;