diff options
| author | 2020-07-30 18:31:31 -0700 | |
|---|---|---|
| committer | 2020-08-07 12:17:30 -0700 | |
| commit | 0bca835ebedc764592f265da5ae2dfc258af42cd (patch) | |
| tree | 607bb60b8f8e3387e51818cb2b20dae491444d93 | |
| parent | cd52980d92dbb2502ae5c03f82798e63cad69d65 (diff) | |
Remove GenerateChallengeBlocking from FingerprintManager
Test: Builds
Bug: 162533680
Change-Id: I28c01bf977d32a5decd941c0449081577069d174
| -rw-r--r-- | core/java/android/hardware/fingerprint/FingerprintManager.java | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/core/java/android/hardware/fingerprint/FingerprintManager.java b/core/java/android/hardware/fingerprint/FingerprintManager.java index b92051b24dfa..71598eb6394f 100644 --- a/core/java/android/hardware/fingerprint/FingerprintManager.java +++ b/core/java/android/hardware/fingerprint/FingerprintManager.java @@ -581,37 +581,6 @@ public class FingerprintManager implements BiometricAuthenticator, BiometricFing } /** - * Same as {@link #generateChallenge(GenerateChallengeCallback)}, except blocks until the - * TEE/hardware operation is complete. - * @return challenge generated in the TEE/hardware - * @hide - */ - @RequiresPermission(MANAGE_FINGERPRINT) - public long generateChallengeBlocking() { - final AtomicReference<Long> result = new AtomicReference<>(); - final CountDownLatch latch = new CountDownLatch(1); - final GenerateChallengeCallback callback = new InternalGenerateChallengeCallback() { - @Override - public void onChallengeGenerated(long challenge) { - result.set(challenge); - latch.countDown(); - } - }; - - generateChallenge(callback); - - try { - latch.await(1, TimeUnit.SECONDS); - } catch (InterruptedException e) { - Slog.e(TAG, "Interrupted while generatingChallenge", e); - e.printStackTrace(); - } - - return result.get(); - } - - - /** * Generates a unique random challenge in the TEE. A typical use case is to have it wrapped in a * HardwareAuthenticationToken, minted by Gatekeeper upon PIN/Pattern/Password verification. * The HardwareAuthenticationToken can then be sent to the biometric HAL together with a |