Send access UIDs to netd

Test: FrameworkNetTests CtsNetTestCases
Change-Id: I8301abaddf5850071fa23d41e8e736ab7071e299
This commit is contained in:
Chalard Jean
2022-01-25 21:04:21 +09:00
parent 9a30acf744
commit e6c9527554
5 changed files with 165 additions and 15 deletions

View File

@@ -1865,6 +1865,13 @@ public final class NetworkCapabilities implements Parcelable {
return new ArraySet<>(mAccessUids);
}
/** @hide */
// For internal clients that know what they are doing and need to avoid the performance hit
// of the defensive copy.
public @NonNull ArraySet<Integer> getAccessUidsNoCopy() {
return mAccessUids;
}
/**
* Test whether this UID has special permission to access this network, as per mAccessUids.
* @hide