fingerprint: Do not notify AIDL HAL about touch events

As previously noticed with uff fingerprint HIDL HAL, Oplus makes
use of touch down/up events for product testing. With the most
recent AIDL HAL, entering the code paths for factory tests breaks
fingerprint registration.

By setting halHandlesDisplayTouches prop to true, the framework
will skip passing the display touch events in ISession#onPointerDown
and ISession#onPointerUp down to the HAL.

Change-Id: I194719f27c182d044c0f4e349c3e0ef032361fbd
This commit is contained in:
Bruno Martins
2025-02-19 22:26:59 +00:00
committed by dianlujitao
parent a6435e6bc0
commit fd03aaaed9

View File

@@ -61,6 +61,10 @@ SensorProps SensorPropsInit(SensorProps props) {
}
}
props.halHandlesDisplayTouches =
props.sensorType == FingerprintSensorType::UNDER_DISPLAY_OPTICAL ||
props.sensorType == FingerprintSensorType::UNDER_DISPLAY_ULTRASONIC;
return props;
}
} // anonymous namespace