mirror of
https://github.com/pjgowtham/android_device_realme_ferrarri.git
synced 2026-11-28 08:43:58 +00:00
ferrari: Report the face unlock no-face timeout as TIMEOUT
The face HAL ends an attempt that sees no face for 151 frames with UNABLE_TO_PROCESS. SystemUI treats that as a hardware error and retries up to four times, so a single lock screen wake keeps the front camera cycling for about a minute, racing any other camera client. E face_aidl.FaceSession: No face times have reached 151 counts, so cancel! E face_aidl.FaceSession: onError(error=2, vendor=0) E FaceAuthenticateOptions: unmapped FaceAuthUiEvent FACE_AUTH_TRIGGERED_RETRY_AFTER_HW_UNAVAILABLE One such camera close stalled while Aperture opened the rear camera, and the HAL's watchdog killed it: F DEBUG : signal 11 (SIGSEGV), code 0 (SI_USER), fault addr -------- F DEBUG : #08 pc 000000000003dfcc /vendor/lib64/libcamera2ndk_vendor.so (ACameraDevice_close.cfi+36) F DEBUG : #09 pc 0000000000025e60 /odm/bin/hw/vendor.oplus.hardware.biometrics.face@1.0-service (CameraHelper::closeCameraNoLock()+316) Report it as TIMEOUT, which is what it is. Assisted-by: LLM Change-Id: Ibbb5189c7181427d975e3c26695927ffbca2b9e6
This commit is contained in:
1 parent
7c430cb2dc
commit
41424fcfbe
1 file changed
+1
@@ -72,6 +72,7 @@ def blob_fixup_nop_call(
|
||||
|
||||
blob_fixups: blob_fixups_user_type = {
|
||||
'odm/bin/hw/vendor.oplus.hardware.biometrics.face@1.0-service': blob_fixup()
|
||||
.binary_regex_replace(b'\x41\x00\x80\x52\xe0\x03\x14\xaa\xf3\xf8\xff\x97', b'\x61\x00\x80\x52\xe0\x03\x14\xaa\xf3\xf8\xff\x97') # no face timeout: UNABLE_TO_PROCESS -> TIMEOUT
|
||||
.replace_needed('android.hardware.biometrics.common-V1-ndk_platform.so', 'android.hardware.biometrics.common-V1-ndk.so')
|
||||
.replace_needed('android.hardware.biometrics.face-V1-ndk_platform.so', 'android.hardware.biometrics.face-V1-ndk.so'),
|
||||
'odm/bin/hw/vendor.oplus.hardware.biometrics.fingerprint@2.1-service': blob_fixup()
|
||||
|
||||
Reference in new issue
Block a user