From dba89696b0885505e90dad57bfcccf480bdf3d0d Mon Sep 17 00:00:00 2001 From: Joshua Mccloskey Date: Mon, 28 Feb 2022 20:58:37 +0000 Subject: [PATCH] Updated Face AIDL createSession docs Test: N/A Bug: 219081263 Change-Id: I05af5a64ca9275932a026ed43e2061e7fd51d247 --- .../face/aidl/android/hardware/biometrics/face/IFace.aidl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/biometrics/face/aidl/android/hardware/biometrics/face/IFace.aidl b/biometrics/face/aidl/android/hardware/biometrics/face/IFace.aidl index 4d7e59ebb7..65c589f192 100644 --- a/biometrics/face/aidl/android/hardware/biometrics/face/IFace.aidl +++ b/biometrics/face/aidl/android/hardware/biometrics/face/IFace.aidl @@ -46,6 +46,10 @@ interface IFace { * vold_prepare_subdirs.cpp). Implementations may store additional user-specific data, such as * embeddings or templates, in StrongBox. * + * During create session it is expected that the HAL will call linkToDeath with the callee's + * binder token. The recommended implementation is to close this session if the callee dies, + * to prevent subsequent createSession calls from failing. + * * @param sensorId The sensorId for which this session is being created. * @param userId The userId for which this session is being created. * @param cb A callback to notify the framework about the session's events.