lisa-miuicamera: Drop libgui-xiaomi dependency
Signed-off-by: basamaryan <basam.aryan@gmail.com> Change-Id: I4744682b84a0f74084d9227a0045a138bfc20ea6
This commit is contained in:
parent
a73f1d3376
commit
42465b5cd3
|
@ -8,7 +8,6 @@ PRODUCT_SOONG_NAMESPACES += \
|
||||||
PRODUCT_COPY_FILES += \
|
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_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/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/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
|
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
|
||||||
|
|
||||||
|
|
|
@ -55,11 +55,8 @@ fi
|
||||||
|
|
||||||
function blob_fixup() {
|
function blob_fixup() {
|
||||||
case "${1}" in
|
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)
|
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
|
esac
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,4 +21,8 @@ PRODUCT_SYSTEM_PROPERTIES += \
|
||||||
BOARD_VENDOR_SEPOLICY_DIRS += \
|
BOARD_VENDOR_SEPOLICY_DIRS += \
|
||||||
vendor/xiaomi/camera/sepolicy/vendor
|
vendor/xiaomi/camera/sepolicy/vendor
|
||||||
|
|
||||||
|
# Shims
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
libgui_shim_miuicamera
|
||||||
|
|
||||||
$(call inherit-product, vendor/xiaomi/camera/camera-vendor.mk)
|
$(call inherit-product, vendor/xiaomi/camera/camera-vendor.mk)
|
||||||
|
|
|
@ -2,6 +2,5 @@
|
||||||
-product/priv-app/MiuiCamera/MiuiCamera.apk:system/priv-app/MiuiCamera/MiuiCamera.apk;OVERRIDES=Aperture,Camera,Camera2,GoogleCameraGo
|
-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_algoup_jni.xiaomi.so
|
||||||
system/lib64/libcamera_mianode_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/libmicampostproc_client.so
|
||||||
system/lib64/vendor.xiaomi.hardware.campostproc@1.0.so
|
system/lib64/vendor.xiaomi.hardware.campostproc@1.0.so
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -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"],
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2023 The LineageOS Project
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
void _ZN7android18BnProducerListener16onBufferDetachedEi() {
|
||||||
|
return;
|
||||||
|
}
|
Loading…
Reference in New Issue