Share via


DevicePolicyManager.DelegationSecurityLogging Field

Definition

Grants access to #setSecurityLoggingEnabled, #isSecurityLoggingEnabled, #retrieveSecurityLogs, and #retrievePreRebootSecurityLogs.

[Android.Runtime.Register("DELEGATION_SECURITY_LOGGING", ApiSince=31)]
public const string DelegationSecurityLogging;
[<Android.Runtime.Register("DELEGATION_SECURITY_LOGGING", ApiSince=31)>]
val mutable DelegationSecurityLogging : string

Field Value

Attributes

Remarks

Grants access to #setSecurityLoggingEnabled, #isSecurityLoggingEnabled, #retrieveSecurityLogs, and #retrievePreRebootSecurityLogs. Once granted the delegated app will start receiving DelegatedAdminReceiver#onSecurityLogsAvailable callback, and Device owner or Profile Owner will no longer receive the DeviceAdminReceiver#onSecurityLogsAvailable callback. There can be at most one app that has this delegation. If another app already had delegated security logging access, it will lose the delegation when a new app is delegated.

Can only be granted by Device Owner or Profile Owner of an organization-owned managed profile.

Java documentation for android.app.admin.DevicePolicyManager.DELEGATION_SECURITY_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