lisa-miuicamera: Drop libgui-xiaomi dependency

Signed-off-by: basamaryan <basam.aryan@gmail.com>
Change-Id: I4744682b84a0f74084d9227a0045a138bfc20ea6
This commit is contained in:
Arian 2023-11-02 01:12:42 +01:00 committed by Karan Parashar
parent a73f1d3376
commit 42465b5cd3
9 changed files with 24 additions and 6 deletions

View File

@ -8,7 +8,6 @@ PRODUCT_SOONG_NAMESPACES += \
PRODUCT_COPY_FILES += \
vendor/xiaomi/camera/proprietary/system/lib64/libcamera_algoup_jni.xiaomi.so:$(TARGET_COPY_OUT_SYSTEM)/lib64/libcamera_algoup_jni.xiaomi.so \
vendor/xiaomi/camera/proprietary/system/lib64/libcamera_mianode_jni.xiaomi.so:$(TARGET_COPY_OUT_SYSTEM)/lib64/libcamera_mianode_jni.xiaomi.so \
vendor/xiaomi/camera/proprietary/system/lib64/libgui-xiaomi.so:$(TARGET_COPY_OUT_SYSTEM)/lib64/libgui-xiaomi.so \
vendor/xiaomi/camera/proprietary/system/lib64/libmicampostproc_client.so:$(TARGET_COPY_OUT_SYSTEM)/lib64/libmicampostproc_client.so \
vendor/xiaomi/camera/proprietary/system/lib64/vendor.xiaomi.hardware.campostproc@1.0.so:$(TARGET_COPY_OUT_SYSTEM)/lib64/vendor.xiaomi.hardware.campostproc@1.0.so

View File

@ -55,11 +55,8 @@ fi
function blob_fixup() {
case "${1}" in
system/lib64/libgui-xiaomi.so)
patchelf --set-soname libgui-xiaomi.so "${2}"
;;
system/lib64/libcamera_algoup_jni.xiaomi.so|system/lib64/libcamera_mianode_jni.xiaomi.so)
patchelf --replace-needed libgui.so libgui-xiaomi.so "${2}"
patchelf --add-needed "libgui_shim_miuicamera.so" "${2}"
;;
esac
}

View File

@ -21,4 +21,8 @@ PRODUCT_SYSTEM_PROPERTIES += \
BOARD_VENDOR_SEPOLICY_DIRS += \
vendor/xiaomi/camera/sepolicy/vendor
# Shims
PRODUCT_PACKAGES += \
libgui_shim_miuicamera
$(call inherit-product, vendor/xiaomi/camera/camera-vendor.mk)

View File

@ -2,6 +2,5 @@
-product/priv-app/MiuiCamera/MiuiCamera.apk:system/priv-app/MiuiCamera/MiuiCamera.apk;OVERRIDES=Aperture,Camera,Camera2,GoogleCameraGo
system/lib64/libcamera_algoup_jni.xiaomi.so
system/lib64/libcamera_mianode_jni.xiaomi.so
system/lib64/libgui.so:system/lib64/libgui-xiaomi.so
system/lib64/libmicampostproc_client.so
system/lib64/vendor.xiaomi.hardware.campostproc@1.0.so

10
shims/Android.bp Normal file
View File

@ -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"],
}

View File

@ -0,0 +1,9 @@
/*
* Copyright (C) 2023 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
void _ZN7android18BnProducerListener16onBufferDetachedEi() {
return;
}