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