Fixed
Status Update
Comments
cu...@google.com <cu...@google.com>
ap...@google.com <ap...@google.com> #3
Project: platform/frameworks/support
Branch: androidx-master-dev
commit f7ac7b8e0be1c38f9583f5d9fb69bfce9b1a4737
Author: Curtis Belmonte <curtislb@google.com>
Date: Mon Aug 17 17:19:38 2020
Clean up biometric device exception lists
Adjusts the vendors and models listed in devices.xml for the
androidx.biometric library to remove redundancies and avoid including
unintended devices.
Test: ./gradlew biometric:biometric:test
Test: ./gradlew biometric:biometric:connectedAndroidTest
Test: ./gradlew biometric:integration-tests:testapp:connectedAndroidTest
Fixes: 154868505
Change-Id: Iad26d07e316bb064d399a2b2010231953fa0f67b
M biometric/biometric/src/main/res/values/devices.xml
https://android-review.googlesource.com/1403107
Branch: androidx-master-dev
commit f7ac7b8e0be1c38f9583f5d9fb69bfce9b1a4737
Author: Curtis Belmonte <curtislb@google.com>
Date: Mon Aug 17 17:19:38 2020
Clean up biometric device exception lists
Adjusts the vendors and models listed in devices.xml for the
androidx.biometric library to remove redundancies and avoid including
unintended devices.
Test: ./gradlew biometric:biometric:test
Test: ./gradlew biometric:biometric:connectedAndroidTest
Test: ./gradlew biometric:integration-tests:testapp:connectedAndroidTest
Fixes: 154868505
Change-Id: Iad26d07e316bb064d399a2b2010231953fa0f67b
M biometric/biometric/src/main/res/values/devices.xml
Description
// key generation
val keyGenerator = KeyGenerator.getInstance("AES", "AndroidKeyStore")
keyGenerator.init(
KeyGenParameterSpec.Builder(alias, PURPOSE_ENCRYPT or PURPOSE_DECRYPT)
.setBlockModes(BLOCK_MODE_GCM)
.setEncryptionPaddings(ENCRYPTION_PADDING_NONE)
.setUserAuthenticationRequired(true)
.setUserAuthenticationValidityDurationSeconds(-1)
.build()
)
val secretKey = keyGenerator.generateKey()
// cipher initialization
val encryptCipher = Cipher.getInstance(CIPHER_TRANSFORMATION)
encryptCipher.init(Cipher.ENCRYPT_MODE, secretKey)
// biometry prompt invocation
val prompt = BiometricPrompt(activity, executor, listener)
prompt.authenticate(info, CryptoObject(encryptCipher))
BUILD INFO
- Device type: Samsung S10e (SM-G970F)
- OS version: Android 9
- Biometric library version: 1.0.1
- Device security configuration: only one fingerprint added
STEPS TO REPRODUCE
[Be as specific as possible please]
1. Try to authenticate with biometry prompt on Samsung S10e (SM-G970F)
EXPECTED RESULTS
Biometry prompt is shown
OBSERVED RESULTS
Biometry prompt not shown
NUMBER OF TIMES YOU WERE ABLE TO REPRODUCE: 10/10