From da48c97ab7798d490f847e2f1fc987c23c841bbf Mon Sep 17 00:00:00 2001 From: Arian Date: Wed, 28 Feb 2024 16:53:29 +0100 Subject: [PATCH] vermeer: Patch citsensorservice to work with OSS libdisplayconfig.qti For some reason xiaomi has duplicated the Init method as ClientImplGet. (or it gets automatically generated for them due to some other differences?) However, our OSS libdisplayconfig.qti doesn't provide this symbol, but the Init method takes the same parameters and seems to be sufficient for citsensorservice to work. Change-Id: I26a88eb379b517f147932310de1da51d65a31c6b [fiqri19102002: Adapt to python extract utils] Signed-off-by: Fiqri Ardyansyah --- extract-files.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extract-files.py b/extract-files.py index 0172371..bd67908 100755 --- a/extract-files.py +++ b/extract-files.py @@ -39,6 +39,8 @@ lib_fixups: lib_fixups_user_type = { ): lib_fixup_odm_suffix, } +sensor_simbol = b'_ZN13DisplayConfig10ClientImpl4InitENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPNS_14ConfigCallbackE\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' + blob_fixups: blob_fixups_user_type = { ( 'odm/etc/camera/enhance_motiontuning.xml', @@ -88,6 +90,8 @@ blob_fixups: blob_fixups_user_type = { 'odm/lib64/hw/camera.xiaomi.so': blob_fixup() .add_needed('libprocessgroup_shim.so') .replace_needed('libui.so', 'libui-v34.so'), + 'odm/lib64/hw/vendor.xiaomi.sensor.citsensorservice@2.0-impl.so' : blob_fixup() + .binary_regex_replace(b'_ZN13DisplayConfig10ClientImpl13ClientImplGetENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPNS_14ConfigCallbackE', sensor_simbol) } module = ExtractUtilsModule(