From 41424fcfbe5785a57616d1eec7fd33d339e4a65e Mon Sep 17 00:00:00 2001 From: pjgowtham Date: Sat, 14 Nov 2026 17:34:16 +0530 Subject: [PATCH] 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 --- extract-files.py | 1 + 1 file changed, 1 insertion(+) diff --git a/extract-files.py b/extract-files.py index 643d88d..3b487db 100755 --- a/extract-files.py +++ b/extract-files.py @@ -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()