Sample for the Androidx Biometrics Library
This is the canonical sample that demonstrates how to integrate Android Biometrics into your apps. Whether your project is for government, healthcare, financial, enterprise, or general usage, this sample should guide your implementation.
The sample app addresses the following critical user journeys:
- How to enable biometric login in your app.
- How to handle the server token for subsequent biometric login.
- How to actually login with biometric and release the server token for communication with the server.
- This sample does not teach you how to handle server side authentication
- This sample does not teach you how to communicate with your servers
- One Biometric API Over all Android
- Migrating from FingerprintManager to BiometricPrompt
- Using BiometricPrompt with CryptoObject: How and Why
- Biometric Authentication
- Google DOC
- Google DOC - Security Prefs
- Google Code Labs
This sample uses the Gradle build system. To build this project, use the "gradlew build" command or use "Import Project" in Android Studio.
- Stack Overflow: https://stackoverflow.com/questions/tagged/android-biometric
If you've found an error in this sample, please file an issue: https://github.com/android/security
Patches are encouraged, and may be submitted by forking this project and submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.