summaryrefslogtreecommitdiff
path: root/core/java/android/content/Context.java
diff options
context:
space:
mode:
authorKevin Chyn <kchyn@google.com>2018-08-27 12:39:17 -0700
committerKevin Chyn <kchyn@google.com>2018-08-30 14:49:32 -0700
commita24e9fd9acf0c7abbdbe40dbc2c2015d28acad49 (patch)
treea5407268d03f9a7198161fe786670cffb6106c03 /core/java/android/content/Context.java
parent836f2cfb9eaee16458876f8ddaa2d3f778f02be1 (diff)
Add BiometricPromptService
The change introduces the following: - BiometricPrompt communicatates with BiometricPromptService (new) system service. The service does the decision making for which biometric modality to use. - As a result, a lot of logic is moved from <Biometric>Manager to BiometricPrompt. FingerprintManager now does not care about BiometricPrompt logic anymore (reverts several P changes). Face, and all future <Biometric>Service interfaces must be protected by the signature-only MANAGE_BIOMETRIC permission. Settings, SystemUI, and BiometricPromptService are their only clients. Bug: 72825012 Test: BiometricPromptDemo works Test: Keyguard works Test: Settings works Change-Id: I2b7d6eff81bc07950202c50e592d733032523bf0
Diffstat (limited to 'core/java/android/content/Context.java')
-rw-r--r--core/java/android/content/Context.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java
index a352e84b060e..4fb21f3ad5e3 100644
--- a/core/java/android/content/Context.java
+++ b/core/java/android/content/Context.java
@@ -3672,6 +3672,15 @@ public abstract class Context {
public static final String AUDIO_SERVICE = "audio";
/**
+ * Use with {@link #getSystemService(String)}
+ *
+ * @hide
+ * @see #getSystemService(String)
+ * @see com.android.server.biometrics.BiometricPromptService
+ */
+ public static final String BIOMETRIC_PROMPT_SERVICE = "biometric_prompt";
+
+ /**
* Use with {@link #getSystemService(String)} to retrieve a
* {@link android.hardware.fingerprint.FingerprintManager} for handling management
* of fingerprints.