From 9fedf32108db474609377124b02e29cfa5c0dd3a Mon Sep 17 00:00:00 2001 From: anonymix007 <48598263+anonymix007@users.noreply.github.com> Date: Wed, 23 Oct 2024 15:52:35 +0900 Subject: [PATCH] cepheus: fingerprint: Fix UDFPS enrollment and authentication - Without this screen would light up for just a few seconds, matching would be unreliable and often error out with GF_ERROR_ACQUIRED_IMAGER_DIRTY or GF_ERROR_TOO_FAST Change-Id: Ibc02d111224dc0921bf91c7b69330dcda2c7dc8f Signed-off-by: Omkar Chandorkar Signed-off-by: Skyblueborb --- fingerprint/BiometricsFingerprint.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fingerprint/BiometricsFingerprint.cpp b/fingerprint/BiometricsFingerprint.cpp index 88fb10c..3a8de6c 100644 --- a/fingerprint/BiometricsFingerprint.cpp +++ b/fingerprint/BiometricsFingerprint.cpp @@ -408,8 +408,10 @@ void BiometricsFingerprint::notify(const fingerprint_msg_t* msg) { set(DIMLAYER_HBM_PATH, DIMLAYER_HBM_OFF); set(FOD_STATUS_PATH, FOD_STATUS_OFF); } - if (!thisPtr->mClientCallback->onAcquired(devId, result, vendorCode).isOk()) { - ALOGE("failed to invoke fingerprint onAcquired callback"); + if (result != FingerprintAcquiredInfo::ACQUIRED_VENDOR) { + if (!thisPtr->mClientCallback->onAcquired(devId, result, vendorCode).isOk()) { + ALOGE("failed to invoke fingerprint onAcquired callback"); + } } } break; case FINGERPRINT_TEMPLATE_ENROLLING: