From 4bb7af2fc90637f5e6dfa4eaa4de775c021f852c Mon Sep 17 00:00:00 2001 From: pjgowtham Date: Fri, 6 Nov 2026 22:58:01 +0530 Subject: [PATCH] ferrari: Treat Aperture as the system camera 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 --- extract-files.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extract-files.py b/extract-files.py index 2e9ec96..79a8d0a 100755 --- a/extract-files.py +++ b/extract-files.py @@ -78,7 +78,8 @@ blob_fixups: blob_fixups_user_type = { .replace_needed('android.hardware.biometrics.common-V1-ndk_platform.so', 'android.hardware.biometrics.common-V1-ndk.so') .replace_needed('android.hardware.biometrics.fingerprint-V1-ndk_platform.so', 'android.hardware.biometrics.fingerprint-V1-ndk.so'), 'odm/etc/camera/CameraHWConfiguration.config': blob_fixup() - .regex_replace('SystemCamera = 0; 0; 1; 1; 1', 'SystemCamera = 0; 0; 0; 0; 1'), + .regex_replace('SystemCamera = 0; 0; 1; 1; 1', 'SystemCamera = 0; 0; 0; 0; 1') + .regex_replace('SystemCamera = com.oplus.camera', 'SystemCamera = org.lineageos.aperture'), 'odm/lib64/libAlgoProcess.so': blob_fixup() .replace_needed('android.hardware.graphics.common-V2-ndk_platform.so', 'android.hardware.graphics.common-V7-ndk.so'), ('odm/lib64/libCOppLceTonemapAPI.so', 'odm/lib64/libSuperRaw.so', 'odm/lib64/libYTCommon.so', 'odm/lib64/libaps_frame_registration.so'): blob_fixup()