I'm currently implementing AppLock using BiometricPrompt (androidx.biometric:biometric:1.0.0-rc01
)
There is an option .setDeviceCredentialAllowed(true)
which uses device's password.
But I was wondering if there is a way to use this library with custom password (not from system)?
Thanks in advance.
But I was wondering if there is a way to use this library with custom password (not from system)?
No, sorry. That is beyond the scope of BiometricPrompt
. If you wish to use device authentication as a second factor to an app-specific password, you will need to implement the app-specific password yourself.