Skip to content

Users with no biometric features enrolled can enable biometric authentication #6713

@jmartinesp

Description

@jmartinesp

Steps to reproduce

  1. Make sure you have no biometric authenticators enrolled in your device (no fingerprint, no face unlock, etc.).
  2. Open the app, go to Settings > Security & Privacy > Protect Access.
  3. Enable PIN code.
  4. See 'Enable biometrics' can be toggled.

Outcome

What did you expect?

'Enable biometrics' should be disabled so it can't be toggled, as there are no biometric authenticators enrolled.

What happened instead?

It is enabled.

This can lead to crashes when starting the app, since we're asking for biometric auth but there is no biometric feature to unlock the prompt, and a UserNotAuthenticatedException will be thrown.

This can also be reproduced as a weird bug in some emulators even if there are biometric features enrolled.

Your phone model

Emulator, Mi 9T Pro

Operating system version

Android 12

Application version and app store

1.4.32-dev [212085012] (G-1411fdd9) develop

Homeserver

matrix.org

Will you send logs?

No

Are you willing to provide a PR?

Yes

Metadata

Metadata

Assignees

Labels

A-Pin codeT-DefectSomething isn't working: bugs, crashes, hangs and other reported problems

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions