From 6e5f0868c65a2ce42fc5cf19d339b5759fa04401 Mon Sep 17 00:00:00 2001 From: Mill Chen Date: Fri, 9 Apr 2021 23:20:31 +0800 Subject: [PATCH] Add secure setting for using biometric Bug: 183449119 Test: builds Change-Id: I885cd42a46d4d0cdd6f8bb5cebaf34006bf542b8 --- core/java/android/provider/Settings.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 9450994af89fe..2616a6676db11 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -9135,6 +9135,20 @@ public final class Settings { public static final String BIOMETRIC_DEBUG_ENABLED = "biometric_debug_enabled"; + /** + * Whether or not biometric is allowed on Keyguard. + * @hide + */ + @Readable + public static final String BIOMETRIC_KEYGUARD_ENABLED = "biometric_keyguard_enabled"; + + /** + * Whether or not biometric is allowed for apps (through BiometricPrompt). + * @hide + */ + @Readable + public static final String BIOMETRIC_APP_ENABLED = "biometric_app_enabled"; + /** * Whether the assist gesture should be enabled. *