[Thread] add REDACT_FOR_THREAD_NETWORK_PRIVILEGED
This is used for redacting sensitive Thread info in ThreadNetworkSpecifier (to be added in ag/34224158) Bug: 374037595 Flag: EXEMPT new code is not used Change-Id: I606d59fc5259c79bddaa51ca0c270684dd3b674a
This commit is contained in:
parent
6b09ae0ace
commit
138e10e3ba
1 changed files with 41 additions and 0 deletions
|
|
@ -169,6 +169,15 @@ public final class NetworkCapabilities implements Parcelable {
|
|||
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
|
||||
public static final long REDACT_FOR_NETWORK_SETTINGS = 1 << 2;
|
||||
|
||||
/**
|
||||
* Redact any fields that need {@link android.Manifest.permission#THREAD_NETWORK_PRIVILEGED}
|
||||
* permission since the receiving app does not hold this permission.
|
||||
*
|
||||
* @see android.Manifest.permission#THREAD_NETWORK_PRIVILEGED
|
||||
* @hide for only {@code ThreadNetworkSpecifier} which is in the same module
|
||||
*/
|
||||
public static final long REDACT_FOR_THREAD_NETWORK_PRIVILEGED = 1 << 3;
|
||||
|
||||
/**
|
||||
* Redact all fields in this object that require any relevant permission.
|
||||
* @hide
|
||||
|
|
@ -182,6 +191,7 @@ public final class NetworkCapabilities implements Parcelable {
|
|||
REDACT_FOR_ACCESS_FINE_LOCATION,
|
||||
REDACT_FOR_LOCAL_MAC_ADDRESS,
|
||||
REDACT_FOR_NETWORK_SETTINGS,
|
||||
REDACT_FOR_THREAD_NETWORK_PRIVILEGED,
|
||||
REDACT_ALL
|
||||
})
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
|
|
|
|||
Loading…
Reference in a new issue