DevicePolicyManager.SetCommonCriteriaModeEnabled Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.