Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cf7fe46d authored by Kevin Chyn's avatar Kevin Chyn
Browse files

Update ACTION_BIOMETRIC_ENROLL documentation

Activity result codes are already being used "undocumentedly" by SUW.
Given the timeline, it's better to not make any guarantees about the
result code and just mention that applications should still check
BiometricManager#canAuthenticate(int) after onActivityResult.

Fixes: 151058692

Test: Skip fingerprint in SUW. Fingerprint SUW is not shown again.
Change-Id: Ia36ea1b6cfc39848be00f8d2219604e68ff45213
parent 3a68e2d0
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -709,10 +709,7 @@ public final class Settings {
     * If not specified, the default behavior is
     * {@link android.hardware.biometrics.BiometricManager.Authenticators#BIOMETRIC_WEAK}.
     * <p>
     * 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
     * Output: Nothing. Note that callers should still check
     * {@link android.hardware.biometrics.BiometricManager#canAuthenticate(int)}
     * afterwards to ensure that the user actually completed enrollment.
     */