diff --git a/common/proprietary/system/lib64/libcamera_algoup_jni.xiaomi.so b/common/proprietary/system/lib64/libcamera_algoup_jni.xiaomi.so index 4e1ee04..e678446 100644 Binary files a/common/proprietary/system/lib64/libcamera_algoup_jni.xiaomi.so and b/common/proprietary/system/lib64/libcamera_algoup_jni.xiaomi.so differ diff --git a/common/proprietary/system/lib64/libcamera_mianode_jni.xiaomi.so b/common/proprietary/system/lib64/libcamera_mianode_jni.xiaomi.so index a74e914..da6aff7 100644 Binary files a/common/proprietary/system/lib64/libcamera_mianode_jni.xiaomi.so and b/common/proprietary/system/lib64/libcamera_mianode_jni.xiaomi.so differ diff --git a/extract-files.sh b/extract-files.sh index 5073f53..b1442fd 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -55,6 +55,9 @@ fi function blob_fixup() { case "${1}" in + system/lib64/libcamera_algoup_jni.xiaomi.so|system/lib64/libcamera_mianode_jni.xiaomi.so) + "${PATCHELF}" --add-needed "libgui_shim_miuicamera.so" "${2}" + ;; system/lib64/libmicampostproc_client.so) "${PATCHELF}" --remove-needed "libhidltransport.so" "${2}" ;; diff --git a/products/miuicamera.mk b/products/miuicamera.mk index 9432648..51cf220 100644 --- a/products/miuicamera.mk +++ b/products/miuicamera.mk @@ -18,6 +18,10 @@ PRODUCT_COPY_FILES += \ vendor/xiaomi/sweet-miuicamera/configs/permissions/privapp-permissions-miuicamera.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-miuicamera.xml +# Shims +PRODUCT_PACKAGES += \ + libgui_shim_miuicamera + # Sysconfig PRODUCT_COPY_FILES += \ vendor/xiaomi/sweet-miuicamera/configs/sysconfig/miuicamera-hiddenapi-package-whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/miuicamera-hiddenapi-package-whitelist.xml diff --git a/shims/Android.bp b/shims/Android.bp new file mode 100644 index 0000000..1cf1a7a --- /dev/null +++ b/shims/Android.bp @@ -0,0 +1,10 @@ +// +// Copyright (C) 2022 The LineageOS Project +// +// SPDX-License-Identifier: Apache-2.0 +// + +cc_library { + name: "libgui_shim_miuicamera", + srcs: ["libgui_shim_miuicamera.c"], +} diff --git a/shims/libgui_shim_miuicamera.c b/shims/libgui_shim_miuicamera.c new file mode 100644 index 0000000..53adfd1 --- /dev/null +++ b/shims/libgui_shim_miuicamera.c @@ -0,0 +1,9 @@ +/* + * Copyright (C) 2023 The LineageOS Project + * + * SPDX-License-Identifier: Apache-2.0 + */ + +void _ZN7android18BnProducerListener16onBufferDetachedEi() { + return; +}