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 <shubhamprince111@gmail.com>
This commit is contained in:
sb6596 2024-08-12 23:43:30 +05:30 committed by Anand S
parent 4af537c0a6
commit 22907d27f5
No known key found for this signature in database
GPG key ID: 3B2983FA448B3D61
2 changed files with 12 additions and 0 deletions

View file

@ -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/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 $(LOCAL_PATH)/audio/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml
# Camera
PRODUCT_PACKAGES += \
libgui_shim_vendor
# Fingerprint # Fingerprint
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
android.hardware.biometrics.fingerprint@2.1-service.fogos \ android.hardware.biometrics.fingerprint@2.1-service.fogos \

View file

@ -6,6 +6,14 @@
# SPDX-License-Identifier: Apache-2.0 # 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, # If we're being sourced by the common script that we called,
# stop right here. No need to go down the rabbit hole. # stop right here. No need to go down the rabbit hole.
if [ "${BASH_SOURCE[0]}" != "${0}" ]; then if [ "${BASH_SOURCE[0]}" != "${0}" ]; then