From d16e2b4731e0ac6ed0c1c6649f55a1d76b4a36b2 Mon Sep 17 00:00:00 2001 From: Arian Date: Wed, 28 Feb 2024 16:53:29 +0100 Subject: [PATCH] sm8450-common: 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 --- extract-files.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extract-files.sh b/extract-files.sh index e1eec11..9dd1937 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -76,6 +76,9 @@ function blob_fixup() { vendor/etc/vintf/manifest/c2_manifest_vendor.xml) sed -ni '/dolby/!p' "${2}" ;; + vendor/lib64/hw/vendor.xiaomi.sensor.citsensorservice@2.0-impl.so) + sed -i 's/_ZN13DisplayConfig10ClientImpl13ClientImplGetENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPNS_14ConfigCallbackE/_ZN13DisplayConfig10ClientImpl4InitENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPNS_14ConfigCallbackE\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0/g' "${2}" + ;; esac }