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 <gotenksIN@aospa.co>
Signed-off-by: Skyblueborb <tomaszborbely0710@gmail.com>
This commit is contained in:
anonymix007
2024-10-23 15:52:35 +09:00
committed by balgxmr
parent 3c9bd06708
commit 9fedf32108

View File

@@ -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: