Android Biometrics

Слайд 2

Define

Physiological

VS

Behavioral

Define Physiological VS Behavioral

Слайд 3

Verification (one-to-one)

Identification (one-to-many)

Verification (one-to-one) Identification (one-to-many)

Слайд 4

Innovate

Innovate

Слайд 5

Do mistakes

Do mistakes

Слайд 7

Investigate

Investigate

Слайд 9

Deploy

Gradle:
dependencies {
implementation "androidx.biometric:biometric:1.0.1"
}

Deploy Gradle: dependencies { implementation "androidx.biometric:biometric:1.0.1" }

Слайд 10

Deploy

private lateinit var executor: Executor
private lateinit var biometricPrompt: BiometricPrompt
private lateinit var promptInfo:

Deploy private lateinit var executor: Executor private lateinit var biometricPrompt: BiometricPrompt private
BiometricPrompt.PromptInfo
override fun onCreate(savedInstanceState: Bundle?) {
...
executor = ContextCompat.getMainExecutor(this)
biometricPrompt = BiometricPrompt(this, executor,
object : BiometricPrompt.AuthenticationCallback() {
override fun onAuthenticationError(errorCode: Int,errString: CharSequence)
override fun onAuthenticationSucceeded(result: BiometricPrompt.AuthenticationResult)
override fun onAuthenticationFailed()
}
)

Слайд 11

Deploy

promptInfo = BiometricPrompt.PromptInfo.Builder()
.setTitle("Biometric login for my app")
.setSubtitle("Log in using

Deploy promptInfo = BiometricPrompt.PromptInfo.Builder() .setTitle("Biometric login for my app") .setSubtitle("Log in using
your biometric credential")
.setNegativeButtonText("Use account password")
.build()

Слайд 12

Deploy

// Allows user to authenticate using their lock screen
// PIN, pattern, or

Deploy // Allows user to authenticate using their lock screen // PIN,
password.
promptInfo = BiometricPrompt.PromptInfo.Builder()
.setTitle("Biometric login for my app")
.setSubtitle("Log in using your biometric credential")
// Cannot call setNegativeButtonText() and
// setDeviceCredentialAllowed() at the same time.
// .setNegativeButtonText("Use account password")
.setDeviceCredentialAllowed(true)
.build()

Слайд 13

Deploy

// Allows user to authenticate using their lock screen
// PIN, pattern, or

Deploy // Allows user to authenticate using their lock screen // PIN,
password.
promptInfo = BiometricPrompt.PromptInfo.Builder()
.setTitle("Biometric login for my app")
.setSubtitle("Log in using your biometric credential")
// Cannot call setNegativeButtonText() and
// setDeviceCredentialAllowed() at the same time.
// .setNegativeButtonText("Use account password")
.setDeviceCredentialAllowed(true)
.build()

Слайд 14

Enjoy

Cryptographic solution that depends on authentication
Authenticate using only biometric credentials
Authenticate using either

Enjoy Cryptographic solution that depends on authentication Authenticate using only biometric credentials
biometric or lock screen credentials
Authenticate without explicit user action

Слайд 15

Update

Android 6
Android 8
Android 9 Android 10

Update Android 6 Android 8 Android 9 Android 10