Udostępnij za pośrednictwem


DevicePolicyManager.DelegationNetworkLogging Field

Definition

Grants access to #setNetworkLoggingEnabled, #isNetworkLoggingEnabled and #retrieveNetworkLogs.

[Android.Runtime.Register("DELEGATION_NETWORK_LOGGING", ApiSince=29)]
public const string DelegationNetworkLogging;
[<Android.Runtime.Register("DELEGATION_NETWORK_LOGGING", ApiSince=29)>]
val mutable DelegationNetworkLogging : string

Field Value

Attributes

Remarks

Grants access to #setNetworkLoggingEnabled, #isNetworkLoggingEnabled and #retrieveNetworkLogs. Once granted the delegated app will start receiving DelegatedAdminReceiver.onNetworkLogsAvailable() callback, and Device owner or Profile Owner will no longer receive the DeviceAdminReceiver.onNetworkLogsAvailable() callback. There can be at most one app that has this delegation. If another app already had delegated network logging access, it will lose the delegation when a new app is delegated.

Device Owner can grant this access since Android 10. Profile Owner of a managed profile can grant this access since Android 12.

Java documentation for android.app.admin.DevicePolicyManager.DELEGATION_NETWORK_LOGGING.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to