From a24e9fd9acf0c7abbdbe40dbc2c2015d28acad49 Mon Sep 17 00:00:00 2001 From: Kevin Chyn Date: Mon, 27 Aug 2018 12:39:17 -0700 Subject: 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 Manager to BiometricPrompt. FingerprintManager now does not care about BiometricPrompt logic anymore (reverts several P changes). Face, and all future 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 --- core/java/android/content/Context.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'core/java/android/content/Context.java') 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 @@ -3671,6 +3671,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 -- cgit v1.2.3