Commit graph

103 commits

Author SHA1 Message Date
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
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
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
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
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
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
0cd816cf20 Cleanup: use shared apex_key
Bug: 296524155
Test: m
Change-Id: Ib04e5b2f1f2719b040656237f3759502d14e3d3e
2023-10-10 15:28:38 +09: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
Jooyung Han
477079abae Merge "Add faceauth HAL APEX" am: f7a7d8e20b am: 266f967602 am: 27a71068c8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2604785

Change-Id: I54b49c81cdf118cdec21b89ba2a78ddaa9b3ecef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-30 03:43:39 +00:00
Jooyung Han
d5842aebcd Add faceauth HAL APEX
This moves the faceauth HAL into a vendor apex:
  com.android.hardware.biometrics.face

The contents:

  ./apex_manifest.pb
  ./bin/hw/android.hardware.biometrics.face-service.example
  ./etc/face-default-apex.rc
  ./etc/permissions/android.hardware.biometrics.face.prebuilt.xml
  ./etc/vintf/face-default-apex.xml
  ./lib64/android.hardware.biometrics.common-V2-ndk.so
  ./lib64/android.hardware.biometrics.face-V2-ndk.so
  ./lib64/android.hardware.keymaster-V3-ndk.so

Bug: 279674662
Test: Not installed yet
Test: m com.android.hardware.biometrics.face
Change-Id: I6e52c83601d29bcc6a9ef4e165fab48f3579426c
2023-05-25 17:35:23 +09:00
Joshua Mccloskey
4803c70715 Merge "Updated aidl doc w/ regard to lockout." into udc-dev 2023-04-11 23:15:22 +00:00
Alex Buynytskyy
ec1198d941 UpsideDownCake is now 34
Ignore-AOSP-First: UpsideDownCake Finalization
Bug: 275409981
Test: build
Change-Id: I832ab7a8b5445ba85e27bbcf5be64906bfa0e5be
2023-04-07 23:41:20 +00:00
Joshua McCloskey
0716d7d56b Updated aidl doc w/ regard to lockout.
Test: N/A
Bug: 250071647
Change-Id: I774640b6f7a3f6397b6acbdb48c8ab14c6001a12
2023-03-13 22:19:28 +00:00
Steven Moreland
e489590628 specify import version (I)
Required to automate AIDL finalization - makes errors show up
now instead of later.

Bug: 188871598
Test: build
Change-Id: I6f46a39f76a73f27a71bc36e600941249ccbe8ee
Merged-In: Ic544707bac671d8327d8cc704a9d453470141e8e
2022-12-23 03:49:06 +00:00
Jeff Pu
b27153df09 Streamline OWNERS file under hardware/interfaces/biometrics
Bug: 259997419
Test: N/A
Change-Id: Ie435c70566267f9ff4a4b9474d41c5b625fc6b74
2022-11-28 14:12:28 +00:00
Ilya Matyukhin
8453178f18 Add @hide to the biometric interfaces
This change allows the framework to depend on biometric AIDL types, for
example: `android.hardware.biometrics.fingerprint.PointerContext`.

The dependency can be introduced with a `-java-source` target, for
example: `:android.hardware.biometrics.common-V3-java-source`.

The "@hide" annotation informs Metalava that these types are not a
public API (not part of the SDK).

Bug: 218388821
Test: m android.hardware.biometrics.common-update-api
Test: m android.hardware.biometrics.face-update-api
Test: m android.hardware.biometrics.fingerprint-update-api
Change-Id: Ib3327594c64dbb800b9d1744869ceb490d63e553
2022-11-18 06:37:09 +00:00
Trevor Radcliffe
c088612eb2 Point directly to generated c sysprop_library
Supports aosp/2119952

Bug: 226199990
Test: m
Change-Id: Ifa5725abda911f2ea4d4951d41ac54fe703ae31b
2022-06-14 20:02:44 +00:00
Joshua McCloskey
db009a58cb Add virtual Face HAL
Fixes: 230514750
Test: atest VtsHalBiometricsFaceTargetTest
Test: atest VtsHalBiometricsFingerprintTargetTest
Test: atest android.hardware.biometrics.face.FakeFaceEngineTest
Test: atest android.hardware.biometrics.face.FakeFingerprintEngineTest
Test: See README.md
Test: Verified that face and fingerprint get reset upon authenticating.

Change-Id: I57c1a61bec960e3be28736e6050be662ef412d8c
2022-05-16 19:34:12 +00:00
Jiyong Park
703e97920e Freeze AIDL APIs for TM
Bug: 225941299
Test: m
Change-Id: Ie41cc0797710f813f92c65c387f247c7806d8394
2022-03-31 12:01:39 +09:00
Joshua Mccloskey
dba89696b0 Updated Face AIDL createSession docs
Test: N/A
Bug: 219081263
Change-Id: I05af5a64ca9275932a026ed43e2061e7fd51d247
2022-03-14 18:16:22 +00:00
Steven Moreland
22c5b64894 -= src_available (internal)
Default now. To Remove.

Bug: 215754978
Test: N/A
Change-Id: Ie83df828ea2ec892c6586ffa32e9f6c42d83a2fe
2022-01-31 19:52:35 +00:00
Joe Bolinger
25e9823f63 Add update context method to face and fingerprint HAL.
This is needed for changes that occur mid-operation and was lost
from the previous changes when switching from the single context
method to the overloaded approach.

Bug: 204584403
Test: atest VtsHalBiometricsFingerprintTargetTest VtsHalBiometricsFaceTargetTest

Change-Id: Ie917bce9de910a421e19130b6e518bd6fc85298e
2022-01-25 01:19:56 +00:00
Joe Bolinger
7bd42e1b14 Update common and face AIDL for session logging.
Bug: 204585936
Bug: 204584403
Test: atest VtsHalBiometricsFaceTargetTest
Change-Id: Icba064c5c48f808327323ab64b7b63f68737a2f8
2022-01-12 16:29:35 -08:00
Steven Moreland
77b74ffc0a Merge "CHECK -> CHECK_EQ copy pasta" am: a8138bfbf6 am: dd39b5c9d0 am: f711c9d406 am: 53c7517b02
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1921302

Change-Id: I3f32bf37c1c025e82e14ee6c9f0ffde87f6bcbd6
2021-12-14 18:40:32 +00:00
Steven Moreland
ffb03995e6 CHECK -> CHECK_EQ copy pasta
Hey did I start this? We can take a little bit better errors. :)

Bug: N/A
Test: N/A
Change-Id: I0e96f7f49dae9968904333da9b8269694058c11c
2021-12-14 01:45:47 +00:00
Jiyong Park
d55d28a1d0 Remove ndk_platform backend. Use the ndk backend.
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

Bug: 161456198
Test: m
Merged-In: I0652f1efe920111d79dd8c2ecd52e55dda54538f
Change-Id: Ib58c9f1cb80d083a3c62d03415610be855b80f03
(cherry picked from commit c426c6dbdc)
2021-08-09 11:20:04 +09:00
Jiyong Park
1519b41bdd Merge "Remove ndk_platform backend. Use the ndk backend." 2021-08-05 13:51:02 +00:00
Jiyong Park
c426c6dbdc Remove ndk_platform backend. Use the ndk backend.
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

Bug: 161456198
Test: m
Change-Id: I0652f1efe920111d79dd8c2ecd52e55dda54538f
2021-08-04 12:48:07 +09:00
Hongguang
92545ca013 Generate face HAL java-source
Bug: 194739778
Test: make and CTS cases in b/194739778
Change-Id: Iaf3cd972402017b4606fc494e4fe02acdca99767
2021-08-02 11:58:43 -07:00
TreeHugger Robot
e5433ff609 Merge changes from topic "fix-IFace-enroll" into sc-dev am: de4d1e954f am: 33ec14975d
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15353380

Change-Id: I84f55ce41e71e961e8d258522af4fc387f7fe2b1
2021-07-27 00:49:57 +00:00
TreeHugger Robot
de4d1e954f Merge changes from topic "fix-IFace-enroll" into sc-dev
* changes:
  IFace: update VTS test to pass std::nullopt for previewSurface
  IFace: update default implementation to use optional previewSurface
  IFace: annotate the previewSurface as @nullable in enroll
2021-07-27 00:21:27 +00:00
Hongguang
87331887db Setting the version explicitly on the face HAL.
Bug: 194348824
Fix: 194348824
Test: make
Change-Id: I35a4778fbd2d64412e4a318ed4a1c356ac68b554
2021-07-22 21:17:30 +00:00
Ilya Matyukhin
88796f4992 IFace: update VTS test to pass std::nullopt for previewSurface
Bug: 194346408
Test: atest VtsHalBiometricsFaceTargetTest
Change-Id: I1e945d821d4b91b9a9ea8f74ae6f817ef04a0f85
2021-07-21 22:55:31 -07:00
Ilya Matyukhin
bde61ca1d3 IFace: update default implementation to use optional previewSurface
Bug: 194346408
Test: atest VtsHalBiometricsFaceTargetTest
Change-Id: I72d3d6d638a1662ebd1a53a7029ea3bf200efe48
2021-07-21 19:01:55 -07:00
Ilya Matyukhin
5beafca660 IFace: annotate the previewSurface as @nullable in enroll
Bug: 194346408
Test: android.hardware.biometrics.face-update-api
Change-Id: Id8809b27f121a738a41abeee66f5c1fd3840cc44
2021-07-21 18:58:15 -07:00
Ilya Matyukhin
9208a09568 IFace: fix default implementation to pass VTS
Bug: 193849101
Test: atest VtsHalBiometricsFaceTargetTest
Change-Id: Ia90c639074a6a9ed270f7c499c8816a8c7224b7f
2021-07-21 23:13:43 +00:00
Ilya Matyukhin
61a6d8d72e IFace: fix VTS test to match the interface contract
Bug: 193849101
Test: atest VtsHalBiometricsFaceTargetTest
Change-Id: I5b3ed1b87244d6265d23c15ef2c2efe4f6155973
2021-07-21 23:12:17 +00:00
Ilya Matyukhin
046020b149 IFace: update VTS tests
Bug: 170650876
Test: atest VtsHalBiometricsFaceTargetTest
Change-Id: I0b38a98acaec654b144dbe56fc64c5c741bd4488
2021-07-03 00:10:19 +00:00
Ilya Matyukhin
60406beac6 IFace: update default implementation
Bug: 170651283
Test: atest VtsHalBiometricsFaceTargetTest
Change-Id: I6f8e6ec12e597034264e2b1383bc7325b0f697b7
2021-07-03 00:10:03 +00:00
Ilya Matyukhin
8b372b6734 IFace: update comments
Bug: 152412683
Test: N/A
Change-Id: I4bae4ba9eaa5631d72d5665b54dd5c2b23f7f4d5
2021-06-30 18:26:35 +00:00
Ilya Matyukhin
ba83133139 IFace: Add more comments
Bug: 152412683
Test: N/A
Change-Id: I0d444804acdd7e063c411cc2dec05efb26c6facf
2021-06-29 21:44:17 +00:00