Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
    
  
  
  
  
    
    
    
  
  
    
    
    
    SecurityEvent
    class SecurityEvent : Parcelable
    
    A class representing a security event log entry.
    Summary
    
      
        
          | Inherited constants | 
        
          | From class Parcelable
                
                  
                    | Int | CONTENTS_FILE_DESCRIPTOR
                         Descriptor bit used with describeContents(): indicates that the Parcelable object's flattened representation includes a file descriptor. |  
                    | Int | PARCELABLE_WRITE_RETURN_VALUE
                         Flag for use with writeToParcel: the object being written is a return value, that is the result of a function such as "Parcelable someFunction()", "void someFunction(out Parcelable)", or "void someFunction(inout Parcelable)". Some implementations may want to release resources at this point. |  | 
      
    
    
      
        
          | Public methods | 
        
          | Int |  | 
        
          | Any! | Returns the payload contained in this log entry or nullif there is no payload. | 
        
          | Long | Returns the id of the event, where the id monotonically increases for each event. | 
        
          | Int | Returns severity level for the event. | 
        
          | Int | Returns the tag of this log entry, which specifies entry's semantics. | 
        
          | Long | Returns the timestamp in nano seconds when this event was logged. | 
        
          | Unit |  | 
      
    
    
    Public methods
    
      describeContents
      
      fun describeContents(): Int
      
     
    
      getData
      
      fun getData(): Any!
      Returns the payload contained in this log entry or null if there is no payload.
     
    
      getId
      
      fun getId(): Long
      Returns the id of the event, where the id monotonically increases for each event. The id is reset when the device reboots, and when security logging is enabled.
     
    
      getLogLevel
      
      fun getLogLevel(): Int
      Returns severity level for the event.
      
     
    
      getTag
      
      fun getTag(): Int
      Returns the tag of this log entry, which specifies entry's semantics.
      
        
          
            | Return | 
          
            | Int | Value is android.app.admin.SecurityLog#TAG_ADB_SHELL_INTERACTIVE,android.app.admin.SecurityLog#TAG_ADB_SHELL_CMD,android.app.admin.SecurityLog#TAG_SYNC_RECV_FILE,android.app.admin.SecurityLog#TAG_SYNC_SEND_FILE,android.app.admin.SecurityLog#TAG_APP_PROCESS_START,android.app.admin.SecurityLog#TAG_KEYGUARD_DISMISSED,android.app.admin.SecurityLog#TAG_KEYGUARD_DISMISS_AUTH_ATTEMPT,android.app.admin.SecurityLog#TAG_KEYGUARD_SECURED,android.app.admin.SecurityLog#TAG_OS_STARTUP,android.app.admin.SecurityLog#TAG_OS_SHUTDOWN,android.app.admin.SecurityLog#TAG_LOGGING_STARTED,android.app.admin.SecurityLog#TAG_LOGGING_STOPPED,android.app.admin.SecurityLog#TAG_MEDIA_MOUNT,android.app.admin.SecurityLog#TAG_MEDIA_UNMOUNT,android.app.admin.SecurityLog#TAG_LOG_BUFFER_SIZE_CRITICAL,android.app.admin.SecurityLog#TAG_PASSWORD_EXPIRATION_SET,android.app.admin.SecurityLog#TAG_PASSWORD_COMPLEXITY_SET,android.app.admin.SecurityLog#TAG_PASSWORD_HISTORY_LENGTH_SET,android.app.admin.SecurityLog#TAG_MAX_SCREEN_LOCK_TIMEOUT_SET,android.app.admin.SecurityLog#TAG_MAX_PASSWORD_ATTEMPTS_SET,android.app.admin.SecurityLog#TAG_KEYGUARD_DISABLED_FEATURES_SET,android.app.admin.SecurityLog#TAG_REMOTE_LOCK,android.app.admin.SecurityLog#TAG_USER_RESTRICTION_ADDED,android.app.admin.SecurityLog#TAG_USER_RESTRICTION_REMOVED,android.app.admin.SecurityLog#TAG_WIPE_FAILURE,android.app.admin.SecurityLog#TAG_KEY_GENERATED,android.app.admin.SecurityLog#TAG_KEY_IMPORT,android.app.admin.SecurityLog#TAG_KEY_DESTRUCTION,android.app.admin.SecurityLog#TAG_CERT_AUTHORITY_INSTALLED,android.app.admin.SecurityLog#TAG_CERT_AUTHORITY_REMOVED,android.app.admin.SecurityLog#TAG_CRYPTO_SELF_TEST_COMPLETED,android.app.admin.SecurityLog#TAG_KEY_INTEGRITY_VIOLATION,android.app.admin.SecurityLog#TAG_CERT_VALIDATION_FAILURE,android.app.admin.SecurityLog#TAG_CAMERA_POLICY_SET,android.app.admin.SecurityLog#TAG_PASSWORD_COMPLEXITY_REQUIRED,android.app.admin.SecurityLog#TAG_PASSWORD_CHANGED,android.app.admin.SecurityLog#TAG_WIFI_CONNECTION,android.app.admin.SecurityLog#TAG_WIFI_DISCONNECTION,android.app.admin.SecurityLog#TAG_BLUETOOTH_CONNECTION,android.app.admin.SecurityLog#TAG_BLUETOOTH_DISCONNECTION,android.app.admin.SecurityLog#TAG_PACKAGE_INSTALLED,android.app.admin.SecurityLog#TAG_PACKAGE_UPDATED,android.app.admin.SecurityLog#TAG_PACKAGE_UNINSTALLED,android.app.admin.SecurityLog#TAG_BACKUP_SERVICE_TOGGLED,android.app.admin.SecurityLog#TAG_NFC_ENABLED, orandroid.app.admin.SecurityLog#TAG_NFC_DISABLED | 
        
      
     
    
      getTimeNanos
      
      fun getTimeNanos(): Long
      Returns the timestamp in nano seconds when this event was logged.
     
    
    Properties
    
  
  
  
    
  
 
  
    
      
      
    
    
      
    
    
  
       
    
    
      
    
  
  
  Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
  Last updated 2025-02-10 UTC.
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]