Commit graph

504 commits

Author SHA1 Message Date
Jeff Pu
5dadb93d1b Warning if finger is down before HAL operation
Bug: 340126007
Test: atest android.hardware.biometrics.fingerprint.* -c
Change-Id: I43aa9bd1c7826262c10c0df4cec1597fcafdf792
2024-06-04 12:48:42 -04:00
Jeff Pu
ea388ef0c5 Merge "Added more methods in IVirtualHal interface" into main 2024-04-29 18:44:56 +00:00
Jeff Pu
3bc1f0667f Added more methods in IVirtualHal interface
Bug: 326227403
Test: atest android.hardware.biometrics.fingerprint.* -c
Change-Id: If5cdd5e5cfea96ef941852ea286f865a99ef8ba8
2024-04-29 16:50:48 +00:00
Joe Bolinger
53ece58051 Update owners.
Change-Id: Ib3bc7197161de63e8b202f0935d66826104fb3ed
Fix: 335274653
Test: N/A
2024-04-23 20:21:33 +00:00
Ronish Kalia
7dbbfcd17a Merge "Migrate Test Targets to New Android Ownership Model" into main am: 98ef872235 am: 8d119d3d0c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2946535

Change-Id: I1349263068518c882bb0944c9bf7709534819033
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-22 15:41:18 +00:00
Ronish Kalia
98ef872235 Merge "Migrate Test Targets to New Android Ownership Model" into main 2024-04-22 15:01:56 +00:00
Jeff Pu
eda68e4ffe Dump fingerprint configurations on CLI dumpsys command
Bug: 326227403
Test: adb shell dumpsys android.hardware.biometrics.fingerprint.IFingerprint/virtual
Change-Id: I75e11b7baef3566411588ea5231f6336d271dc77
2024-04-15 12:35:00 -04:00
Jeff Pu
c2f76afc4c Add biometric virtual HAL tests to presubmit
Bug: 333743980
Test: atest --test-mapping

Change-Id: I4efc51473194ee431ee8ca4bb2c8a5dfb629ad87
2024-04-11 13:35:47 +00:00
Jeff Pu
df81c964df Added Fingerprint Virtual HAL AIDL extension
Bug: 326227403
Test: atest android.hardware.biometrics.fingerprint.* -c
Change-Id: I967c009c99f8dc279f89c21a59cf0462d9590296
2024-03-18 15:11:03 -04:00
Jeff Pu
6904bf18f7 Merge "Refactor biometric virtual HAL config/control" into main 2024-03-04 14:13:20 +00:00
Jeff Pu
6ccd956117 Refactor biometric virtual HAL config/control
for additional ways besides system property
Bug: 326227403
Test: atest android.hardware.biometrics.common.ConfigTest

Change-Id: Id0aa4961cc732c23f5da140eca81470316834b70
2024-02-29 15:20:35 -05:00
Devin Moore
a8efdb127e Vendor API level 202404 is now frozen
Ignore-AOSP-First: VINTF 202404 Finalization
Bug: 279809333
Test: build
Change-Id: Ie6d38d27a287e258c30516e0030ad8c931d06432
2024-02-20 21:05:23 +00:00
Steven Moreland
2a59b89a84 AIDL: disable Rust explicitly
Now that it's enabled by default, because this
doesn't compile in Rust.

Bug: 321267339
Test: m
Change-Id: I01e0af965827944ba2b4b168a6e8d6c4cf81cfff
Merged-In: I01e0af965827944ba2b4b168a6e8d6c4cf81cfff
(cherry picked from commit 62105fb264)
2024-02-06 17:36:03 +00:00
Aditya Choudhary
04ef2121cd Migrate Test Targets to New Android Ownership Model
This CL is created as a best effort to migrate test targets to the new Android ownership model.
It is based on historical data from repository history and insights from git blame.
Given the nature of this effort, there may be instances of incorrect attribution. If you find incorrect or unnecessary
attribution in this CL, please create a new CL to fix that.

For detailed guidelines and further information on the migration please refer to the link below,
go/new-android-ownership-model

Bug: 304529413
Test: N/A
Change-Id: Ibe1360ca3f7eb919834715aa90b0b842fbcd0692
2024-02-02 14:00:43 +00:00
Steven Moreland
62105fb264 AIDL: disable Rust explicitly
Now that it's enabled by default, because this
doesn't compile in Rust.

Bug: 321267339
Test: m
Change-Id: I01e0af965827944ba2b4b168a6e8d6c4cf81cfff
2024-01-30 23:47:32 +00:00
Jeff Pu
1e93ca6c74 Support configuration reset and dump
Bug: 294254230
Test: atest android.hardware.biometrics.face.* -c
      adb shell cmd android.hardware.biometrics.face.IFace/virtual resetconfig
      adb shell dumpsys face
Change-Id: I6dc5657104da103860cca133beba21e1b10cb423
2024-01-24 12:52:35 -05:00
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