android-biometric-prompt

android biometric USB fingerprint authentication tutorial

房东的猫 提交于 2020-01-25 06:52:17
问题 I have a biometric USB fingerprint sensor for android devices. I want to develop an application that reads a user's fingerprint via sensor and store it into an SQLite database so that it can be verified when the user login. So, Are there any tutorials or code samples that explain how to do that? Thanks In Advance. 回答1: Reading users biometric materials and storing them in an SQLite database seems a suspect usage of biometrics on Android. Normally quite a bit of security measures go into

BiometricPrompt: Why should we check KeyguardManager.isDeviceSecure() before enabling setDeviceCredentialAllowed?

限于喜欢 提交于 2020-01-24 12:54:45
问题 The documentation of BiometricPrompt.PromptInfo 's setDeviceCredentialAllowed method states: [...] Developers should first check KeyguardManager.isDeviceSecure() before enabling this. If the device is not secure, BiometricPrompt.ERROR_NO_DEVICE_CREDENTIAL will be returned in BiometricPrompt.AuthenticationCallback.onAuthenticationError(int, CharSequence). https://developer.android.com/reference/androidx/biometric/BiometricPrompt.PromptInfo.Builder.html#setDeviceCredentialAllowed(boolean)

BiometricPrompt: Why should we check KeyguardManager.isDeviceSecure() before enabling setDeviceCredentialAllowed?

社会主义新天地 提交于 2020-01-24 12:54:08
问题 The documentation of BiometricPrompt.PromptInfo 's setDeviceCredentialAllowed method states: [...] Developers should first check KeyguardManager.isDeviceSecure() before enabling this. If the device is not secure, BiometricPrompt.ERROR_NO_DEVICE_CREDENTIAL will be returned in BiometricPrompt.AuthenticationCallback.onAuthenticationError(int, CharSequence). https://developer.android.com/reference/androidx/biometric/BiometricPrompt.PromptInfo.Builder.html#setDeviceCredentialAllowed(boolean)

Biometric prompt not displayed on Android 6

限于喜欢 提交于 2020-01-23 10:32:28
问题 I am trying to use BiometricPrompt to use fingerprint sensor for authentication. My minimum supported sdk is 23 (Android M). It works on all android version I tested except for marshmallow. In marshmallow when I try to use authenticate method on button click it calls onAuthenticationError method from BiometricPrompt.AuthenticationCallback and it gives error code ERROR_HW_NOT_PRESENT and error messsage: This device does not have a fingerprint sensor even when device have fingerprint sensor and

Biometric prompt not displayed on Android 6

醉酒当歌 提交于 2020-01-23 10:32:28
问题 I am trying to use BiometricPrompt to use fingerprint sensor for authentication. My minimum supported sdk is 23 (Android M). It works on all android version I tested except for marshmallow. In marshmallow when I try to use authenticate method on button click it calls onAuthenticationError method from BiometricPrompt.AuthenticationCallback and it gives error code ERROR_HW_NOT_PRESENT and error messsage: This device does not have a fingerprint sensor even when device have fingerprint sensor and

BiometricPrompt crashes on Samsung S9 with Face unlock

ε祈祈猫儿з 提交于 2020-01-01 08:40:09
问题 I am using the new BiometricPrompt API in Android P (API 28) in my application. (I am actually using it inside a wrapper based on this project so that it functions on older devices too, but that is not relevant to the question.) This is working very well on all devices I have tested, except for the Samsung S9 with face unlock. Even though the stock Android version of BiometricPrompt currently only implements fingerprint authentication, Samsung appears to have extended it to support Face

BiometricPrompt iris and face prompt is not working with Crypto object authentication. #AndroidX

让人想犯罪 __ 提交于 2019-12-21 19:52:02
问题 Issue Biometric authentication iris and face-detection is not prompting with biometricPrompt.authenticate(**crypto**, promptInfo) call. Source reference: Securing data with BiometricPrompt (19 May 2019) One Biometric API Over all Android (30 October 2019) Biometrich API Device used for testing: Samsung S8 (Android OS 9) Steps of Authentication I'm following: val biometricPrompt = BiometricPrompt(...) val promptInfo = BiometricPrompt.PromptInfo.Builder()... biometricPrompt. authenticate

Jetpack's BiometricPrompt (androidx.biometric.BiometricPrompt) throws NullPointerException

China☆狼群 提交于 2019-12-11 17:24:22
问题 I'm using androidx.biometric:biometric:1.0.0-alpha03 in a test project and when pushing the negative button I always get the following error message: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.CharSequence androidx.biometric.BiometricFragment.getNegativeButtonText()' on a null object reference at androidx.biometric.BiometricPrompt$1$1.run(BiometricPrompt.java:329) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util

BiometricPrompt Executor and/or callback was null

烈酒焚心 提交于 2019-12-11 04:29:14
问题 I'm using BiometricPrompt from androidx.biometric:biometric:1.0.0-beta02 for the authenticate process. But i face very strange problem. First time i call biometricsPromt.authenticate() everything works fine, the library shows me the screen depending what security method is set(pattern,fingerprint, password and etc…) then the callback is called and everything is good. The problem is when i call biometricsPromt.authenticate() for the second time i got the error: E/DeviceCredentialHandler:

Android crashed after updating androidx biometric to 1.0.0-alpha04

本小妞迷上赌 提交于 2019-12-10 02:21:56
问题 Everything works fine with 'androidx.biometric:biometric:1.0.0-alpha03' , however when I build my project with the latest 'androidx.biometric:biometric:1.0.0-alpha04' and call myBiometricPrompt.authenticate(promptInfo) it throws this exception: FragmentManager is already executing transactions . Here is the stacktrace: java.lang.IllegalStateException: FragmentManager is already executing transactions at androidx.fragment.app.FragmentManagerImpl.ensureExecReady(FragmentManager.java:2207) at