DevicePolicyManager.SetCommonCriteriaModeEnabled Method

Definition

Called by device owner or profile owner of an organization-owned managed profile to toggle Common Criteria mode for the device.

[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

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with. Null if the caller is not a device admin.

enabled
Boolean

whether Common Criteria mode should be enabled or not.

Attributes

Remarks

Called by device owner or profile owner of an organization-owned managed profile to toggle Common Criteria mode for the device. When the device is in Common Criteria mode, certain device functionalities are tuned to meet the higher security level required by Common Criteria certification. For example: <ul> <li> Bluetooth long term key material is additionally integrity-protected with AES-GCM. </li> <li> WiFi configuration store is additionally integrity-protected with AES-GCM. </li> </ul> Common Criteria mode is disabled by default.

<em>Note:</em> if Common Critera mode is turned off after being enabled previously, all existing WiFi configurations will be lost.

Java documentation for android.app.admin.DevicePolicyManager.setCommonCriteriaModeEnabled(android.content.ComponentName, boolean).

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.

Applies to