summaryrefslogtreecommitdiff
path: root/libs/androidfw/ConfigDescription.cpp
diff options
context:
space:
mode:
author Haining Chen <hainingc@google.com> 2023-01-25 11:16:34 -0800
committer Haining Chen <hainingc@google.com> 2023-01-25 11:39:35 -0800
commit1a336b0054cca6e99c5fd682d91f5bcb5dc86abc (patch)
treecd218873bc967d9ede284e7d216f1828ff8ed96a /libs/androidfw/ConfigDescription.cpp
parentfc16dc4b62c971063478f5299a091bfb5161150f (diff)
Switch to use addAuthenticatorsRegisteredCallback to get sensor props
Directly using getSensorPropertiesInternal to get fingerprint/face sensor props is fine but may potentially have issues of race condition or HAL taking too long to response during initialization. Switch to use addAuthenticatorsRegisteredCallback which is safer. The callback will be invoked immediately if sensor props are already available, or invoked until registration of all sensors is done. Fix: 266709333 Test: atest BinaryTransparencyServiceTest Test: Mannually set the flag to true/false via: adb shell device_config put biometrics enable_biometric_property_verification true/false Then check whether data is logged via: m statsd_testdrive && statsd_testdrive 587 Change-Id: Ief69fe426e3beb8983e64032a845b7e5e3cf6c28
Diffstat (limited to 'libs/androidfw/ConfigDescription.cpp')
0 files changed, 0 insertions, 0 deletions