Language

KeyguardDisable Enum

Definition

Enumerates values returned by several types and taken as a parameter of the F:Android.App.Admin.DevicePolicyManager.SetKeyguardDisabledFeatures member.

public enum KeyguardDisable
type KeyguardDisable = 
Inheritance
KeyguardDisable

Fields

Name Value Description
FeaturesNone 0

Specifies that no keyguard features are disabled by this policy.

Android reference for android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_FEATURES_NONE.

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.

WidgetsAll 1

Disable all keyguard widgets. This flag has no effect on Android 5.0 through Android 14, because keyguard widgets are supported only on versions before Android 5.0 and after Android 14.

Android reference for android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_WIDGETS_ALL.

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.

SecureCamera 2

Disable the camera on secure keyguard screens (e.g.

SecureNotifications 4

Disable showing all notifications on secure keyguard screens (e.g. PIN/Pattern/Password)

Android reference for android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_SECURE_NOTIFICATIONS.

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.

UnredactedNotifications 8

Only allow redacted notifications on secure keyguard screens (e.g. PIN/Pattern/Password)

Android reference for android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_UNREDACTED_NOTIFICATIONS.

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.

TrustAgents 16

Disable trust agents on secure keyguard screens (e.g. PIN/Pattern/Password). By setting this flag alone, all trust agents are disabled. To allowlist specific features of a trust agent, use SetTrustAgentConfiguration(ComponentName, ComponentName, PersistableBundle) to set its configuration.

Android reference for android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_TRUST_AGENTS.

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.

Fingerprint 32

Disable fingerprint authentication on keyguard secure screens (e.g. PIN/Pattern/Password).

Android reference for android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_FINGERPRINT.

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.

RemoteInput 64

This flag was intended to disable text entry into notifications on secure keyguard screens, but it never had any effect. It was added in Android 7.0 (API level 24) and deprecated in API level 33.

Android reference for android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_REMOTE_INPUT.

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.

Face 128

Disable face authentication on keyguard secure screens (e.g. PIN/Pattern/Password).

Android reference for android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_FACE.

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.

Iris 256

Disable iris authentication on keyguard secure screens (e.g. PIN/Pattern/Password).

Android reference for android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_IRIS.

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.

Biometrics 416

Disable all biometric authentication on keyguard secure screens (e.g. PIN/Pattern/Password).

Android reference for android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_BIOMETRICS.

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.

KeyguardDisableShortcutsAll 512

Disable all keyguard shortcuts.

Android reference for android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_SHORTCUTS_ALL.

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.

FeaturesAll 2147483647

Disable all current and future keyguard customizations.

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.

Applies to