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 區域取得的,該區域在電源循環中不保證無損毀,因此解析時需謹慎注意資料損壞。
</強壯>
當裝置擁有者呼叫時,如果該裝置上有其他使用者或設定檔,必須與該裝置有關聯。 否則 SecurityException 會被丟棄。 參見 #isAffiliatedUser。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。