Merge changes from topic "cts-snapshots"
* changes: Add CTS for NetworkAgentConfig#setSubscriberId Add CTS for getAllNetworkStateSnapshots Check NETWORK_SETTINGS permission for getAllNetworkStateSnapshots
This commit is contained in:
@@ -2223,7 +2223,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()) {
|
||||
|
||||
Reference in New Issue
Block a user