Commit graph

488 commits

Author SHA1 Message Date
Jeff Pu
53cf8ca74d Merge "Fix Fingperint Virtual Hal cancellation while waiting finger touch" into main 2024-01-12 21:04:55 +00:00
Jeff Pu
74e25d2dec Fix Fingperint Virtual Hal cancellation while waiting finger touch
Bug: 319146424
Test: atest BiometricsE2eTests:BiometricPromptAuthSuccessTest
Test: atest android.hardware.biometrics.fingerprint.*
Change-Id: I26a2dde01608177411cce3f9c68ee6fd1fd6aab8
2024-01-11 18:23:00 +00:00
Jeff Pu
b515d81fb7 Merge "Support Face Virtual HAL operation latency randomization" into main 2024-01-08 22:18:08 +00:00
Austin Delgado
7b690750fe Add isHardwareIgnoringTouches to OperationContext
Bug: 313763144
Test: atest SystemUITests:com.android.systemui.biometrics
Flag: None
Change-Id: If337f491b809d5e9c9fdfedad86a3d63a3431102
2024-01-05 16:02:15 -08:00
Jeff Pu
4aca35e205 Support Face Virtual HAL operation latency randomization
Bug: 294254230
Test: atest android.hardware.biometrics.face.*
Change-Id: I1e0c2ba2f0f6756c79375b56c7d1a10f7f3bf5c4
2024-01-05 16:02:50 +00:00
Joshua Mccloskey
f6bc1288c5 Merge "Freezing face api" into main 2023-12-12 16:18:36 +00:00
Joshua McCloskey
93ee24e67f Freezing face api
Test: N/A
Change-Id: I0c0ac52fbdc96ae2a416922ff4c994f0f2909802
2023-12-11 22:17:40 +00:00
Jeff Pu
3e7448dc2b Face Virtual HAL lockout support
Bug: 294254230
Test: atest android.hardware.biometrics.face.FakeFaceEngineTest
Test: atest android.hardware.biometrics.face.FakeLockoutTrackerTest
Change-Id: I4ed3ada4734f595d5f9ac70cf5ed2a94bed378c6
2023-12-11 14:47:46 +00:00
Vincent Wang
76de03f7df Merge "Update biometrics HAL interface version(2/2)" into main 2023-12-08 16:13:34 +00:00
Vincent Wang
50f12d7bd9 Merge "Update biometrics HAL interface version(1/2)" into main 2023-12-08 16:13:34 +00:00
Liana Kazanova
30f558a8fa Merge "Revert "Freezing face api"" into main 2023-12-07 21:59:08 +00:00
Liana Kazanova
d43d834d76 Revert "Freezing face api"
This reverts commit b3a55af391.

Reason for revert: Potential culprit for b/315354499 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Change-Id: Iab8a208df0704007b9ee29a3673c623eb968ce1b
2023-12-07 20:59:34 +00:00
Joshua Mccloskey
b9fe5cd8de Merge "Freezing face api" into main 2023-12-07 19:41:19 +00:00
Vincent Wang
774a9c0f44 Update biometrics HAL interface version(2/2)
In order to pass fold/unfold information to HAL during face auth,
add a new filed into OperationContext.aidl and update biometric
HAL interface version

Test: Build pass
Bug: 305284901
Change-Id: I886440a6332ba8c2555b29322c05f27edb7a5d44
2023-12-07 03:59:12 +00:00
Diya Bera
ef2dcff171 Merge "Add @hide to AIDL interfaces" into main 2023-12-06 23:13:52 +00:00
Joshua McCloskey
b3a55af391 Freezing face api
Test: N/A
Change-Id: Ibc6f6130a3e825ed20dcf27d30bbdc3f13d29cc3
2023-12-06 20:00:36 +00:00
Vincent Wang
890be57151 Update biometrics HAL interface version(1/2)
In order to pass fold/unfold information to HAL during face auth,
add a new filed into OperationContext.aidl and update biometric
HAL interface version

Test: Build pass
Bug: 305284901
Change-Id: Iddb2be85a4aae8ab0fa7880258151ebe9f5cf6c3
2023-12-06 09:16:02 +00:00
Jeff Pu
3cb30e7be7 Merge "Face Virtual HAL enrollment basic support via SUW" into main 2023-12-05 18:24:50 +00:00
Diya Bera
0afb3e8202 Add @hide to AIDL interfaces
Test: N/A
Bug: 303480396
Change-Id: I51aab72929a9242b513dfa836e682ed29bf4cbc0
2023-12-05 10:15:35 -08:00
Jeff Pu
84c60185f1 Face Virtual HAL enrollment basic support via SUW
Bug: 294254230
Test: Manually perform face enrollment via Settings
Change-Id: I30f6ffc3cde615b9cab55ef060623464a7799100
2023-12-05 14:16:03 +00:00
Vincent Wang
241aeca469 Mark frozen false to make sure native could reference
android.hardware.biometrics.common-V4-ndk is an unfrozen development version,
and it can't be used if it's explicitly marked as `frozen: true`

Bug: b/305284901
Test: Build pass

Change-Id: Ie3f82da032d5b9d201f094ced2636592cc3f8844
2023-11-30 08:15:53 +00:00
Vincent Wang
7b0194374b Merge "Add a new filed into OperationContext.aidl" into main 2023-11-17 00:23:14 +00:00
Vincent Wang
06523c6fb1 Add a new filed into OperationContext.aidl
In order to pass fold/unfold information to HAL during face auth,
add a new filed into OperationContext.aidl

Test: Build pass
Bug: 305284901
Change-Id: I03d7b4c97df89232f8393d094e02b1472921200b
2023-11-14 01:14:33 +00:00
Joshua McCloskey
67310c3fc3 Updated face session to use SurfaceView
Test: Verified that it builds.
Test: Verified framework supports older NativeHandle.
Bug: 308784038
Change-Id: I6f5fa573bdfcfd903b53d8d85c43f491413bdcae
2023-11-07 18:21:38 +00:00
Jooyung Han
b72b1a5feb Merge changes I1d745f64,I4bb2572c into main am: 94b63ab755 am: b1ce8cb40e am: 4828f5aa75
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2803696

Change-Id: I83d8357e35b01d12db9cffa9a227c80bbd554588
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-30 03:40:06 +00:00
Jooyung Han
b1ce8cb40e Merge changes I1d745f64,I4bb2572c into main am: 94b63ab755
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2803696

Change-Id: Icd220773a24f3af8c2aa5b1f565ed4d69195afe3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-30 02:39:27 +00:00
Jooyung Han
e458294ba1 Use static linking for virtual fingerprint hal
To make the binary smaller in APEX, use static linking.

For aosp_cf_x86_64_phone target, the APEX is reduced from 1576960 to
643072 (by 933888).

Bug: 306314086
Test: m
Change-Id: I1d745f64fb98a97e7adb417870034044a03ce88c
2023-10-26 11:09:00 +09:00
Jooyung Han
80baad2ccf Make Fingerprint Virtual HAL APEX as default
- moved apex definition beside the HAL binary definition
- updated README.md about installation

Bug: 306314086
Test: follow README.md to test the virtual FP HAL
Change-Id: I4bb2572ca79c93cb32a273625f4e965c2505e48a
2023-10-26 10:47:49 +09:00
Jooyung Han
cd05b33eb4 Merge "Cleanup: use shared apex_key" into main am: a232f9f196
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2780369

Change-Id: I4214962686e1782d971ad5982a1f8ed496359258
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-24 04:18:13 +00:00
Jooyung Han
a232f9f196 Merge "Cleanup: use shared apex_key" into main 2023-10-24 03:46:05 +00:00
Xin Li
3d862c9608 Merge "Merge 10952656" into aosp-main-future 2023-10-19 17:58:46 +00:00
Jooyung Han
1ae66eae7d Merge "Cleanup: use shared apex_key (fingerprint APEX)" into main am: 52dec402f0 am: 27fcbfacdb am: 3c3d15866e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2780313

Change-Id: Icf07e23d4c727f322d1d5a02436b6a5d32079ddd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-19 03:29:58 +00:00
Jooyung Han
3c3d15866e Merge "Cleanup: use shared apex_key (fingerprint APEX)" into main am: 52dec402f0 am: 27fcbfacdb
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2780313

Change-Id: I8543a10ee682ff490c2da44ba865cb8e00bcbd97
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-19 02:57:10 +00:00
Jooyung Han
1419f35690 Make face.virtual HAL smaller
by static-linking dependencies. This makes the Face virtual hal much
smaller.

/vendor/apex/com.android.hardware.biometrics.face.virtual.apex is now
585728 bytes, which is slightly bigger than the size before regression
(536576).

Bug: 304679972
Test: m
Change-Id: I4ed0cd432aeb9932c09c00592dd1fe0a1a38af0a
2023-10-13 14:58:41 +09:00
Jooyung Han
e0c4ad52ba Cleanup: use shared apex_key (fingerprint APEX)
Bug: 296524155
Test: m
Change-Id: I6ca90bb66a612650bc6ebbf05526b5e866372707
2023-10-10 15:43:10 +09:00
Jooyung Han
bc09e453a5 Cleanup: use shared apex_key
Bug: 296524155
Test: m
Merged-In: Ib04e5b2f1f2719b040656237f3759502d14e3d3e
Change-Id: Ib04e5b2f1f2719b040656237f3759502d14e3d3e
2023-10-10 15:34:31 +09:00
Jooyung Han
0cd816cf20 Cleanup: use shared apex_key
Bug: 296524155
Test: m
Change-Id: Ib04e5b2f1f2719b040656237f3759502d14e3d3e
2023-10-10 15:28:38 +09:00
Jeff Pu
29df1e98a7 Fix: Fingerprint detect should not depend on enrollment match
Bug: 277600842
Test: atest FakeFingerprintEngineTest -c
Test: atest VtsHalBiometricsFingerprintTargetTest
Change-Id: I750e9c4684fd7513d5281dfa653acbd2985317d9
2023-10-06 15:06:28 +00:00
Jeff Pu
484d2e70c3 Face Biometric Virtual HAL Authentication Implementation
Bug: 294254230
Test: atest VtsHalBiometricsFaceTargetTest
Test: atest VtsHalBiometricsFingerprintTargetTest
Test: atest android.hardware.biometrics.face.FakeFaceEngineTest
Test: atest android.hardware.biometrics.fingerprint.FakeFingerprintEngineTest
Change-Id: Id7a4698730307235c5de94811f5e396ff4b9c5ae
2023-09-27 16:58:31 +00:00
Jeff Pu
4b5e5ce406 Face Biometric Virtual HAL
Bug: 294254230
Test: Manual
Change-Id: I00813b1313510e0965cb91864163e182e10aea22
2023-09-07 20:08:27 +00:00
Jeff Pu
f74216d410 Merge "Added temporary-lockout timer support" into udc-qpr-dev am: 27c07e6bfa
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/24324121

Change-Id: I4891539c433e3c835e777b465410b0c66f2672b8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-10 13:51:29 +00:00
Jeff Pu
c6f2146a2e Added temporary-lockout timer support
Bug: 294096426
Test: Manual
Change-Id: I7d11b28697021ee21abae7c01ff393e4154ee9a4
2023-08-04 15:27:42 +00:00
Jeff Pu
dfdb6c5e55 Merge "HAT validity check should be performed early" into udc-qpr-dev am: bdf9c891cf
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/24225175

Change-Id: Ia7d3d4fc534595c26c234d22896f4dc6cb0480b7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-28 13:55:58 +00:00
Jeff Pu
5055e3cb07 HAT validity check should be performed early
in enrollment HAL operation.
Bug: 293206206
Test: atest --no-bazel-mode VtsHalBiometricsFingerprintTargetTest

Change-Id: I223615bbbd86d3f918f976c0d46e9ee93338f2a8
2023-07-27 12:44:02 -04:00
Jeff Pu
1201ba309e Merge "Authentication state stays on enrollment mismatch" into udc-qpr-dev am: bd8f26ea55
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/24147068

Change-Id: I8fe1fae98cd70e2871b6b5743b9c4d3871752b3a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-21 15:50:56 +00:00
Jeff Pu
8fec556d25 Authentication state stays on enrollment mismatch
Bug: 291778822
Test: atest FakeFingerprintEngineTest
Change-Id: I4566303af982855aa0ebc52652464fb116a23858
2023-07-20 13:51:34 +00:00
Jeff Pu
f1ac28d608 Merge "Update fingerprint VHAL operation lifecycle" into udc-qpr-dev am: 750c778f60
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/24039772

Change-Id: I4fb0ad4809307e5ec0e0237e8775f7075054e5c4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-17 16:09:29 +00:00
Jeff Pu
073af1802e Update fingerprint VHAL operation lifecycle
Bug: 289410175
Test: atest FakeFingerprintEngineTest
Change-Id: I6da68047be9bf5357c1b4c75ba28fc66c2e3bcc0
2023-07-17 13:23:47 +00:00
Jeff Pu
007c0d8238 Merge "Inform framework of lockout right when the failed attempts reaches threshold" into udc-qpr-dev am: 9d838849bb
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23846523

Change-Id: Ie523d48469435ee28f4357bfa748247d02185131
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-29 20:23:26 +00:00
Jeff Pu
437516ea3a Inform framework of lockout right when the failed attempts reaches threshold
Bug: b/277780293
Test: atest FakeLockoutTrackerTest
Change-Id: Iefe88f3ab492773844b18c525ddbf37218227256
2023-06-28 15:22:44 +00:00