From 22907d27f52571b75201210f38e096a450ca436b Mon Sep 17 00:00:00 2001 From: sb6596 Date: Mon, 12 Aug 2024 23:43:30 +0530 Subject: [PATCH] fogos: Add libgui_shim for libmot_chi_desktop_helper * Even tho libmot_chi_desktop_helper has a dependency of libgui_vendor, it seems to be not loading and throws missing symbol `_ZN7android7SurfaceC1ERKNS_2spINS_22IGraphicBufferProducerEEEb` Change-Id: I10e6774467cf6bb933a63fa0455307ecdf65163f Signed-off-by: sb6596 --- device.mk | 4 ++++ extract-files.sh | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/device.mk b/device.mk index 41bec70..394b5f4 100644 --- a/device.mk +++ b/device.mk @@ -45,6 +45,10 @@ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ $(LOCAL_PATH)/audio/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml +# Camera +PRODUCT_PACKAGES += \ + libgui_shim_vendor + # Fingerprint PRODUCT_PACKAGES += \ android.hardware.biometrics.fingerprint@2.1-service.fogos \ diff --git a/extract-files.sh b/extract-files.sh index 3d364be..586abce 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -6,6 +6,14 @@ # SPDX-License-Identifier: Apache-2.0 # +function blob_fixup() { + case "${1}" in + vendor/lib/libmot_chi_desktop_helper.so | vendor/lib64/libmot_chi_desktop_helper.so) + grep -q "libgui_shim_vendor.so" "${2}" || "${PATCHELF}" --add-needed "libgui_shim_vendor.so" "${2}" + ;; + esac +} + # If we're being sourced by the common script that we called, # stop right here. No need to go down the rabbit hole. if [ "${BASH_SOURCE[0]}" != "${0}" ]; then