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

Commit 95188f37 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Check NETWORK_SETTINGS permission for getAllNetworkStateSnapshots" into sc-dev

parents 0dad48e0 2be16e6f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2213,7 +2213,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
    @NonNull
    public List<NetworkStateSnapshot> getAllNetworkStateSnapshots() {
        // This contains IMSI details, so make sure the caller is privileged.
        PermissionUtils.enforceNetworkStackPermission(mContext);
        enforceNetworkStackOrSettingsPermission();

        final ArrayList<NetworkStateSnapshot> result = new ArrayList<>();
        for (Network network : getAllNetworks()) {