miuicamera: Stub out usage of onBufferDetached

Change-Id: Iccc1a89ffd9f374d88ede162d05c65e783a3377b
This commit is contained in:
Arian
2024-04-22 17:50:36 +08:00
committed by COSMIC
parent a5500bab30
commit 7fa49713fb
4 changed files with 26 additions and 0 deletions

View File

@@ -6,3 +6,7 @@
# Inherit from the proprietary version
$(call inherit-product, vendor/xiaomi/miuicamera/common/common-vendor.mk)
# Shims
PRODUCT_PACKAGES += \
libgui_shim_miuicamera

View File

@@ -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}"
;;
esac
}

10
shims/Android.bp Normal file
View File

@@ -0,0 +1,10 @@
//
// Copyright (C) 2024 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) 2024 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
void _ZN7android18BnProducerListener16onBufferDetachedEi() {
return;
}