語言

DevicePolicyManager.SetCommonCriteriaModeEnabled 方法

定義

由裝置擁有者或組織擁有的管理設定檔的設定檔擁有者呼叫,以切換該裝置的通用準則模式。

[Android.Runtime.Register("setCommonCriteriaModeEnabled", "(Landroid/content/ComponentName;Z)V", "GetSetCommonCriteriaModeEnabled_Landroid_content_ComponentName_ZHandler", ApiSince=30)]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_COMMON_CRITERIA_MODE")]
public virtual void SetCommonCriteriaModeEnabled(Android.Content.ComponentName? admin, bool enabled);
[<Android.Runtime.Register("setCommonCriteriaModeEnabled", "(Landroid/content/ComponentName;Z)V", "GetSetCommonCriteriaModeEnabled_Landroid_content_ComponentName_ZHandler", ApiSince=30)>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_COMMON_CRITERIA_MODE")>]
abstract member SetCommonCriteriaModeEnabled : Android.Content.ComponentName * bool -> unit
override this.SetCommonCriteriaModeEnabled : Android.Content.ComponentName * bool -> unit

參數

admin
ComponentName

這個請求就是和這個 DeviceAdminReceiver 問題有關的。 如果呼叫者不是裝置管理員,則為 Null。

enabled
Boolean

是否應該啟用通用準則模式。

屬性

備註

由裝置擁有者或組織擁有的管理設定檔的設定檔擁有者呼叫,以切換該裝置的通用準則模式。 當裝置處於共同準則模式時,某些裝置功能會被調整以符合共同準則認證所需的更高安全等級。 例如: <ul><li> 藍牙長期金鑰材料也透過 AES-GCM 進行完整性保護。 </li><li> WiFi 配置儲存庫也透過 AES-GCM 進行完整性保護。 </li></ul> 通用準則模式預設為關閉。

<em>注意:</em> 如果 Common Critera 模式在先前啟用後關閉,所有現有的 WiFi 設定都會遺失。

Java 文件 android.app.admin.DevicePolicyManager.setCommonCriteriaModeEnabled(android.content.ComponentName, boolean)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於