DevicePolicyManager.RetrievePreRebootSecurityLogs(ComponentName) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
由组织拥有的托管配置文件的设备所有者或配置文件所有者调用,以在设备上次重新启动之前从中检索设备日志。
[Android.Runtime.Register("retrievePreRebootSecurityLogs", "(Landroid/content/ComponentName;)Ljava/util/List;", "GetRetrievePreRebootSecurityLogs_Landroid_content_ComponentName_Handler", ApiSince=24)]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_SECURITY_LOGGING")]
public virtual System.Collections.Generic.IList<Android.App.Admin.SecurityLog.SecurityEvent>? RetrievePreRebootSecurityLogs(Android.Content.ComponentName? admin);
[<Android.Runtime.Register("retrievePreRebootSecurityLogs", "(Landroid/content/ComponentName;)Ljava/util/List;", "GetRetrievePreRebootSecurityLogs_Landroid_content_ComponentName_Handler", ApiSince=24)>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_SECURITY_LOGGING")>]
abstract member RetrievePreRebootSecurityLogs : Android.Content.ComponentName -> System.Collections.Generic.IList<Android.App.Admin.SecurityLog.SecurityEvent>
override this.RetrievePreRebootSecurityLogs : Android.Content.ComponentName -> System.Collections.Generic.IList<Android.App.Admin.SecurityLog.SecurityEvent>
参数
- admin
- ComponentName
此请求与哪个设备管理员相关联,或者 null
由委托的应用调用。
返回
设备在系统最新重启之前或 null
设备上不支持此 API 时记录。
- 属性
注解
由组织拥有的托管配置文件的设备所有者或配置文件所有者调用,以在设备上次重新启动之前从中检索设备日志。
<在所有设备上都不支持强> 此 API。 在不支持的设备上调用此 API 将导致 null
返回。 从 RAM 区域检索设备日志,这不能保证在电源周期期间无损坏,因此在分析时对数据损坏持谨慎态度。 </strong>
当设备所有者调用时,如果设备上存在任何其他用户或配置文件,它必须与设备关联。 否则将引发 a SecurityException
。 请参阅 #isAffiliatedUser
。
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。