hidl: biometrics: 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>
This commit is contained in:
committed by
Wiktor Rudzki
parent
2aa98e1b97
commit
7db9651375
@@ -328,8 +328,10 @@ void BiometricsFingerprint::notify(const fingerprint_msg_t* msg) {
|
|||||||
if (thisPtr->mUdfpsHandler) {
|
if (thisPtr->mUdfpsHandler) {
|
||||||
thisPtr->mUdfpsHandler->onAcquired(static_cast<int32_t>(result), vendorCode);
|
thisPtr->mUdfpsHandler->onAcquired(static_cast<int32_t>(result), vendorCode);
|
||||||
}
|
}
|
||||||
if (!thisPtr->mClientCallback->onAcquired(devId, result, vendorCode).isOk()) {
|
if (result != FingerprintAcquiredInfo::ACQUIRED_VENDOR) {
|
||||||
ALOGE("failed to invoke fingerprint onAcquired callback");
|
if (!thisPtr->mClientCallback->onAcquired(devId, result, vendorCode).isOk()) {
|
||||||
|
ALOGE("failed to invoke fingerprint onAcquired callback");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
case FINGERPRINT_TEMPLATE_ENROLLING:
|
case FINGERPRINT_TEMPLATE_ENROLLING:
|
||||||
|
|||||||
Reference in New Issue
Block a user