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
Take the extensions, the camera unit SDK they drive and its sepolicy
from vendor/oplus/camera, and declare Night and Bokeh on the main
camera in camera_unit_config, which predates the SDK's
cameraExtensionConfig. Pin the Night preview sizes, as newer Oplus
devices do, since the SDK otherwise derives portrait oriented ones from
the screen and CameraX finds no output size.
The rear portrait preview is configured for two cameras, but an
extension session has a single stream, so APS rejects every frame
("dispatchInputData() undefined case!!") and the viewfinder stays black.
Configure it for one camera.
Front Night is left out: the HAL aborts on the capture request.
Assisted-by: LLM
Change-Id: Iecbc00963d94c3f13a01a91f218b2ea10d08e443
The camera HAL gives multi-frame noise reduction only to the package
named in the PackageName Group's SystemCamera key. Every other client
gets a JPEG encoded from a single preview frame:
IPE ... pipeline:JPEGEncodePreviewMctfOplus_IPE19_cam0
With Aperture listed, the same capture is blended from eight frames on
every lens:
IPE ... pipeline:MfsrPrefilter_IPE0_cam0
IPE ... pipeline:MfsrBlend_IPE1_cam0 (x7)
IPE ... pipeline:MfsrPostFilter_IPE3_cam0
The key holds a single package, so the Oplus camera app loses it.
Assisted-by: LLM
Change-Id: I4c644c7895340a12b2f738f48792352baa12eeea
Support for android.frameworks.stats HIDL HAL has been removed in CP2A.
Camera still works, so move on.
Change-Id: I9753714c7447cbd05a85a3fe537c949f6fc5c0ec