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 <fiqri191002@gmail.com>
This commit is contained in:
Arian
2024-02-28 16:53:29 +01:00
committed by Lunark :3
parent 6a3515590c
commit da48c97ab7

View File

@@ -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(