Skip to content

Commit

Permalink
fixup! don't report harmless fingerprint-service.goodix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
muhomorr authored and thestinger committed Dec 29, 2024
1 parent 13471b0 commit 3582f48
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions services/core/java/com/android/server/ext/TombstoneHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -423,16 +423,22 @@ private static boolean shouldIgnore(TombstoneProtos.Tombstone t, TombstoneProtos

if ("/apex/com.google.android.hardware.biometrics.fingerprint/bin/hw/android.hardware.biometrics.fingerprint-service.goodix".equals(cmdline[0])) {
// rare harmless crash, fingerprint service restarts and continues to work
return checkBacktraceFunctionNames(backtrace, 0
, "android::VectorImpl::editArrayImpl()"
, "goodix::EventCenter::hasUpEvt()"
, "goodix::DelmarSensor::checkFingerUp(unsigned int)"
, "goodix::DelmarSensor::readImage(unsigned int, unsigned long)"
, "goodix::CustomizedSensor::readImage(unsigned int, unsigned long)"
, "goodix::DelmarFingerprintCore::onAfterAuthCapture(goodix::FingerprintCore::AuthenticateContext*)"
, "goodix::CustomizedFingerprintCore::onAfterAuthCapture(goodix::FingerprintCore::AuthenticateContext*)"
, "goodix::FingerprintCore::onAuthDownEvt()"
);
String[] functionNames = {
"android::VectorImpl::editArrayImpl()",
"goodix::EventCenter::hasUpEvt()",
"goodix::DelmarSensor::checkFingerUp(unsigned int)",
"goodix::DelmarSensor::readImage(unsigned int, unsigned long)",
"goodix::CustomizedSensor::readImage(unsigned int, unsigned long)",
"goodix::DelmarFingerprintCore::onAfterAuthCapture(goodix::FingerprintCore::AuthenticateContext*)",
"goodix::CustomizedFingerprintCore::onAfterAuthCapture(goodix::FingerprintCore::AuthenticateContext*)",
"goodix::FingerprintCore::onAuthDownEvt()",
};
// top backtrace entries might be missing due to inlining
for (int i = 0; i < 3; ++i) {
if (checkBacktraceFunctionNames(backtrace, i, functionNames)) {
return true;
}
}
}

return false;
Expand Down

0 comments on commit 3582f48

Please sign in to comment.