DeviceAdminUses Enum
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.
public enum DeviceAdminUses
type DeviceAdminUses =
- Inheritance
-
DeviceAdminUses
Fields
| Name | Value | Description |
|---|---|---|
| PolicyLimitPassword | 0 | A type of policy that this device admin can use: limit the passwords that the user can select, via DevicePolicyManager.setPasswordQuality and DevicePolicyManager.setPasswordMinimumLength. To control this policy, the device admin must be a device owner or profile owner, and must have a "limit-password" tag in the "uses-policies" section of its meta-data. If used by a device owner, the policy only affects the primary user and its profiles, but not any secondary users on the device. Android reference for 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. |
| PolicyWatchLogin | 1 | A type of policy that this device admin can use: able to watch login attempts from the user, via DeviceAdminReceiver.ACTION_PASSWORD_FAILED, DeviceAdminReceiver.ACTION_PASSWORD_SUCCEEDED, and DevicePolicyManager.getCurrentFailedPasswordAttempts. To control this policy, the device admin must have a "watch-login" tag in the "uses-policies" section of its meta-data. Android reference for 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. |
| PolicyResetPassword | 2 | A type of policy that this device admin can use: able to reset the user's password via DevicePolicyManager.resetPassword. To control this policy, the device admin must have a "reset-password" tag in the "uses-policies" section of its meta-data. Android reference for 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. |
| PolicyForceLock | 3 | A type of policy that this device admin can use: able to force the device to lock viaDevicePolicyManager.lockNow or limit the maximum lock timeout for the device via DevicePolicyManager.setMaximumTimeToLock. To control this policy, the device admin must have a "force-lock" tag in the "uses-policies" section of its meta-data. Android reference for 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. |
| PolicyWipeData | 4 | A type of policy that this device admin can use: able to factory reset the device, erasing all of the user's data, via DevicePolicyManager.wipeData. To control this policy, the device admin must have a "wipe-data" tag in the "uses-policies" section of its meta-data. Android reference for 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. |
| PolicyExpirePassword | 6 | A type of policy that this device admin can use: force the user to change their password after an administrator-defined time limit. To control this policy, the device admin must be a device owner or profile owner, and must have an "expire-password" tag in the "uses-policies" section of its meta-data. If used by a device owner, the policy only affects the primary user and its profiles, but not any secondary users on the device. Android reference for 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. |
| EncryptedStorage | 7 | A type of policy that this device admin can use: require encryption of stored data. To control this policy, the device admin must have a "encrypted-storage" tag in the "uses-policies" section of its meta-data. Android reference for 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. |
| PolicyDisableCamera | 8 | A type of policy that this device admin can use: disables use of all device cameras. To control this policy, the device admin must be a device owner or profile owner, and must have a "disable-camera" tag in the "uses-policies" section of its meta-data. If used by a device owner, the policy affects all users on the device. Android reference for 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. |
| PolicyDisableKeyguardFeatures | 9 | A type of policy that this device admin can use: disables use of keyguard features. To control this policy, the device admin must be a device owner or profile owner, and must have a "disable-keyguard-features" tag in the "uses-policies" section of its meta-data. If used by a device owner, the policy only affects the primary user and its profiles, but not any secondary users on the device. Android reference for 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. |
Remarks
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.