diff --git a/api/current.txt b/api/current.txt index 1cf68321ae222..7db205e6eb52b 100644 --- a/api/current.txt +++ b/api/current.txt @@ -40575,7 +40575,7 @@ package android.provider { field public static final String EXTRA_APP_PACKAGE = "android.provider.extra.APP_PACKAGE"; field public static final String EXTRA_AUTHORITIES = "authorities"; field public static final String EXTRA_BATTERY_SAVER_MODE_ENABLED = "android.settings.extra.battery_saver_mode_enabled"; - field public static final String EXTRA_BIOMETRIC_MINIMUM_STRENGTH_REQUIRED = "android.provider.extra.BIOMETRIC_MINIMUM_STRENGTH_REQUIRED"; + field public static final String EXTRA_BIOMETRIC_AUTHENTICATORS_ALLOWED = "android.provider.extra.BIOMETRIC_AUTHENTICATORS_ALLOWED"; field public static final String EXTRA_CHANNEL_ID = "android.provider.extra.CHANNEL_ID"; field public static final String EXTRA_CONVERSATION_ID = "android.provider.extra.CONVERSATION_ID"; field public static final String EXTRA_DO_NOT_DISTURB_MODE_ENABLED = "android.settings.extra.do_not_disturb_mode_enabled"; diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 4216cf387380a..842713685bcd3 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -703,13 +703,18 @@ public final class Settings { * Weak or above, as defined by the CDD. Only biometrics that meet or exceed Strong, as defined * in the CDD are allowed to participate in Keystore operations. *
- * Input: extras {@link #EXTRA_BIOMETRIC_MINIMUM_STRENGTH_REQUIRED} as an integer, with + * Input: extras {@link #EXTRA_BIOMETRIC_AUTHENTICATORS_ALLOWED} as an integer, with * constants defined in {@link android.hardware.biometrics.BiometricManager.Authenticators}, * e.g. {@link android.hardware.biometrics.BiometricManager.Authenticators#BIOMETRIC_STRONG}. * If not specified, the default behavior is * {@link android.hardware.biometrics.BiometricManager.Authenticators#BIOMETRIC_WEAK}. *
- * Output: Nothing. + * Output: Returns {@link android.app.Activity#RESULT_CANCELED} if the user already has an + * authenticator that meets the requirements, or if the device cannot fulfill the request + * (e.g. does not have biometric hardware). Returns {@link android.app.Activity#RESULT_OK} + * otherwise. Note that callers should still check + * {@link android.hardware.biometrics.BiometricManager#canAuthenticate(int)} + * afterwards to ensure that the user actually completed enrollment. */ @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) public static final String ACTION_BIOMETRIC_ENROLL = @@ -719,12 +724,12 @@ public final class Settings { * Activity Extra: The minimum strength to request enrollment for. *
* This can be passed as an extra field to the {@link #ACTION_BIOMETRIC_ENROLL} intent to - * indicate that only enrollment for sensors that meet this strength should be shown. The - * value should be one of the biometric strength constants defined in + * indicate that only enrollment for sensors that meet these requirements should be shown. The + * value should be a combination of the constants defined in * {@link android.hardware.biometrics.BiometricManager.Authenticators}. */ - public static final String EXTRA_BIOMETRIC_MINIMUM_STRENGTH_REQUIRED = - "android.provider.extra.BIOMETRIC_MINIMUM_STRENGTH_REQUIRED"; + public static final String EXTRA_BIOMETRIC_AUTHENTICATORS_ALLOWED = + "android.provider.extra.BIOMETRIC_AUTHENTICATORS_ALLOWED"; /** * Activity Action: Show settings to allow configuration of cast endpoints.