diff --git a/device.mk b/device.mk index b0b681f..83ce2b5 100644 --- a/device.mk +++ b/device.mk @@ -48,6 +48,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.berlin \ diff --git a/extract-files.sh b/extract-files.sh index 3dab39d..3c4137e 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