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

Widgets are enabled in keyguard

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. Has no effect between Build.VERSION_CODES.LOLLIPOP and Build.VERSION_CODES.UPSIDE_DOWN_CAKE (both inclusive), since keyguard widget is only supported on Android versions lower than 5.0 and versions higher than 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. If the admin then wants to allowlist specific features of some trust agent, setTrustAgentConfiguration(ComponentName, ComponentName, PersistableBundle) can be used in conjuction to set trust-agent-specific configurations.

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 constant was deprecated in API level 33. This flag was added in version Build.VERSION_CODES.N, but it never had any effect.

Disable text entry into notifications on secure keyguard screens (e.g. PIN/Pattern/Password).

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