From 3e68284a90bf9ac3f1e61ed762e38ec688ebfbb4 Mon Sep 17 00:00:00 2001 From: Secondarian Date: Fri, 28 Mar 2025 21:48:57 +0800 Subject: [PATCH] sm8550-common: Patch libsamsungcamerahal to expose all camera IDs Replaces GetCameraIdList's address with that of GetCameraIdListAll so that calls to GetCameraIdList will also expose all camera IDs ``` $ nm -D libsamsungcamerahal.so | grep GetCameraIdList 0000000000008ae0 T _ZNK7android18samsung_camera_hal14CameraProvider15GetCameraIdListEPNSt3__16vectorIjNS2_9allocatorIjEEEE 0000000000008b94 T _ZNK7android18samsung_camera_hal14CameraProvider18GetCameraIdListAllEPNSt3__16vectorIjNS2_9allocatorIjEEE ``` Change-Id: I7c572460a0f0bbde5f06e05b2bf6f152036c3030 --- extract-files.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extract-files.py b/extract-files.py index 1dfff41..abe23d7 100755 --- a/extract-files.py +++ b/extract-files.py @@ -72,6 +72,8 @@ blob_fixups: blob_fixups_user_type = { .add_needed('libcodec2_shim.so'), 'vendor/lib64/unihal_android.so': blob_fixup() .add_needed('libui_shim.so'), + 'vendor/lib64/libsamsungcamerahal.so': blob_fixup() + .sig_replace('E0 8A', '94 8B'), 'vendor/etc/init/android.hardware.security.keymint-service.rc': blob_fixup() .regex_replace('android.hardware.security.keymint-service', 'android.hardware.security.keymint-service-qti'), } # fmt: skip