mirror of
https://github.com/LineageOS/android_device_xiaomi_vermeer.git
synced 2026-06-20 18:19:35 +00:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user