Stop reading UIDS_ALLOWED_ON_RESTRICTED_NETWORKS setting in PermissionMonitor

The setting is a factor used to determine the network permission level that is granted to an app. Restricted networking mode defaults to granting PERMISSION_SYSTEM to UIDs that are listed in the setting. This removal avoids this.

Change-Id: I1e5af36f0fc9d4828b693bbb4b888c449bac3d29
This commit is contained in:
Oliver Scott
2022-09-10 22:30:05 +02:00
committed by Michael Bestas
parent 7eb9093933
commit ed2a84a6f0

View File

@@ -526,7 +526,6 @@ public class PermissionMonitor {
// TODO : remove carryover package check in the future(b/31479477). All apps should just
// request the appropriate permission for their use case since android Q.
return isCarryoverPackage(app.applicationInfo)
|| isUidAllowedOnRestrictedNetworks(app.applicationInfo)
|| hasPermission(app, PERMISSION_MAINLINE_NETWORK_STACK)
|| hasPermission(app, NETWORK_STACK)
|| hasPermission(app, CONNECTIVITY_USE_RESTRICTED_NETWORKS);