- admin
- Which Android.App.Admin.DeviceAdminReceiver this request is associated with.
- which
- DevicePolicyManager.KeyguardDisableFeaturesNone (default), DevicePolicyManager.KeyguardDisableWidgetsAll, DevicePolicyManager.KeyguardDisableSecureCamera, DevicePolicyManager.KeyguardDisableSecureNotifications, DevicePolicyManager.KeyguardDisableTrustAgents, DevicePolicyManager.KeyguardDisableUnredactedNotifications, DevicePolicyManager.KeyguardDisableFeaturesAll
Called by an application that is administering the device to disable keyguard customizations, such as widgets. After setting this, keyguard features will be disabled according to the provided feature list.
The calling device admin must have requested DeviceAdminInfo.UsesPolicyDisableKeyguardFeatures to be able to call this method; if it has not, a security exception will be thrown.
Calling this from a managed profile will throw a security exception.