mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-06-18 23:20:57 +00:00
Replace the custom fingerprint auth UI with BiometricPrompt
This patch replaces the usage of the deprecated FingerprintManager API with BiometricPrompt. This uses the Android X library, so we get the native biometric prompt on recent versions of Android and a Google-made one on older versions. By not working with custom prompts for biometric authentication like we do now, we can be sure that any issues like #70, #81, #237 are not actually our fault. Here's what it looks like:  As a nice aside, this also adds support for the new facial recognition as an authentication method on Pixel 4 phones. This is still a draft, but early feedback is welcome.
This commit is contained in:
parent
a93ced6e34
commit
3be9aecb88
39 changed files with 499 additions and 716 deletions
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
@ -70,8 +70,8 @@ __master key__.
|
|||
|
||||
Aegis supports unlocking a vault with multiple different credentials. The main
|
||||
credential is a key derived from a user-provided password. In addition to that,
|
||||
users can also add a key backed by the Android KeyStore (authorized by the scan
|
||||
of a fingerprint) as a credential.
|
||||
users can also add a key backed by the Android KeyStore (authorized by biometrics)
|
||||
as a credential.
|
||||
|
||||
#### Slots
|
||||
|
||||
|
@ -146,7 +146,7 @@ The different slot types are identified with a numerical ID.
|
|||
| Type | ID |
|
||||
| :---------- | :--- |
|
||||
| Raw | 0x00 |
|
||||
| Fingerprint | 0x01 |
|
||||
| Biometric | 0x01 |
|
||||
| Password | 0x02 |
|
||||
|
||||
##### Raw
|
||||
|
@ -172,9 +172,9 @@ a unique randomly generated ``UUID`` (version 4).
|
|||
}
|
||||
```
|
||||
|
||||
##### Fingerprint
|
||||
##### Biometric
|
||||
|
||||
The structure of the Fingerprint slot is exactly the same as the Raw slot. The
|
||||
The structure of the Biometric slot is exactly the same as the Raw slot. The
|
||||
difference is that the wrapper key is backed by the Android KeyStore, whereas
|
||||
Raw slots don't imply use of a particular storage type.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue