Compartilhar via


SecurityLog Class

Definition

Definitions for working with security logs.

[Android.Runtime.Register("android/app/admin/SecurityLog", ApiSince=24, DoNotGenerateAcw=true)]
public class SecurityLog : Java.Lang.Object
[<Android.Runtime.Register("android/app/admin/SecurityLog", ApiSince=24, DoNotGenerateAcw=true)>]
type SecurityLog = class
    inherit Object
Inheritance
SecurityLog
Attributes

Remarks

Definitions for working with security logs.

Device owner apps can control the logging with DevicePolicyManager#setSecurityLoggingEnabled. When security logs are enabled, device owner apps receive periodic callbacks from DeviceAdminReceiver#onSecurityLogsAvailable, at which time new batch of logs can be collected via DevicePolicyManager#retrieveSecurityLogs. SecurityEvent describes the type and format of security logs being collected.

Java documentation for android.app.admin.SecurityLog.

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.

Constructors

SecurityLog()
SecurityLog(IntPtr, JniHandleOwnership)

Fields

LevelError
Obsolete.

Event severity level indicating that the event requires urgent admin action.

LevelInfo
Obsolete.

Event severity level indicating that the event corresponds to normal workflow.

LevelWarning
Obsolete.

Event severity level indicating that the event may require admin attention.

TagAdbShellCmd
Obsolete.

Indicates that a shell command was issued over ADB via adb shell <command> The log entry contains a String payload containing the shell command, accessible via SecurityEvent#getData().

TagAdbShellInteractive
Obsolete.

Indicates that an ADB interactive shell was opened via "adb shell".

TagAppProcessStart
Obsolete.

Indicates that an app process was started.

TagBluetoothConnection
Obsolete.

Indicates that the device attempts to connect to a Bluetooth device.

TagBluetoothDisconnection
Obsolete.

Indicates that the device disconnects from a connected Bluetooth device.

TagCameraPolicySet
Obsolete.

Indicates that the admin has set policy to disable camera.

TagCertAuthorityInstalled
Obsolete.

Indicates that a new root certificate has been installed into system's trusted credential storage.

TagCertAuthorityRemoved
Obsolete.

Indicates that a new root certificate has been removed from system's trusted credential storage.

TagCertValidationFailure
Obsolete.

Indicates a failure to validate X.

TagCryptoSelfTestCompleted
Obsolete.

Indicates that cryptographic functionality self test has completed.

TagKeyDestruction
Obsolete.

Indicates that a cryptographic key was destroyed.

TagKeyGenerated
Obsolete.

Indicates that a cryptographic key was generated.

TagKeyguardDisabledFeaturesSet
Obsolete.

Indicates that an admin has set disabled keyguard features.

TagKeyguardDismissAuthAttempt
Obsolete.

Indicates that there has been an authentication attempt to dismiss the keyguard.

TagKeyguardDismissed
Obsolete.

Indicates that keyguard has been dismissed.

TagKeyguardSecured
Obsolete.

Indicates that the device has been locked, either by the user or by a timeout.

TagKeyImport
Obsolete.

Indicates that a cryptographic key was imported.

TagKeyIntegrityViolation
Obsolete.

Indicates a failed cryptographic key integrity check.

TagLogBufferSizeCritical
Obsolete.

Indicates that the audit log buffer has reached 90% of its capacity.

TagLoggingStarted
Obsolete.

Indicates start-up of audit logging.

TagLoggingStopped
Obsolete.

Indicates shutdown of audit logging.

TagMaxPasswordAttemptsSet
Obsolete.

Indicates that an admin has set a maximum number of failed password attempts before wiping data.

TagMaxScreenLockTimeoutSet
Obsolete.

Indicates that an admin has set a maximum screen lock timeout.

TagMediaMount
Obsolete.

Indicates that removable media has been mounted on the device.

TagMediaUnmount
Obsolete.

Indicates that removable media was unmounted from the device.

TagOsShutdown
Obsolete.

Indicates that the Android OS has shutdown.

TagOsStartup
Obsolete.

Indicates that the Android OS has started.

TagPackageInstalled
Obsolete.

Indicates that a package is installed.

TagPackageUninstalled
Obsolete.

Indicates that a package is uninstalled.

TagPackageUpdated
Obsolete.

Indicates that a package is updated.

TagPasswordChanged
Obsolete.

Indicates that a user has just changed their lockscreen password.

TagPasswordComplexityRequired
Obsolete.

Indicates that an admin has set a password complexity requirement, using the platform's pre-defined complexity levels.

TagPasswordComplexitySet
Obsolete.

Indicates that an admin has set a requirement for password complexity.

TagPasswordExpirationSet
Obsolete.

Indicates that an admin has set a password expiration timeout.

TagPasswordHistoryLengthSet
Obsolete.

Indicates that an admin has set a password history length.

TagRemoteLock
Obsolete.

Indicates that an admin remotely locked the device or profile.

TagSyncRecvFile
Obsolete.

Indicates that a file was pulled from the device via the adb daemon, for example via adb pull.

TagSyncSendFile
Obsolete.

Indicates that a file was pushed to the device via the adb daemon, for example via adb push.

TagUserRestrictionAdded
Obsolete.

Indicates that an admin has set a user restriction.

TagUserRestrictionRemoved
Obsolete.

Indicates that an admin has removed a user restriction.

TagWifiConnection
Obsolete.

Indicates that an event occurred as the device attempted to connect to a managed WiFi network.

TagWifiDisconnection
Obsolete.

Indicates that the device disconnects from a managed WiFi network.

TagWipeFailure
Obsolete.

Indicates a failure to wipe device or user data.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
ThresholdClass
ThresholdType

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to