miuicamera: Stub out usage of onBufferDetached
Change-Id: Iccc1a89ffd9f374d88ede162d05c65e783a3377b
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
10
shims/Android.bp
Normal 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"],
|
||||
}
|
||||
9
shims/libgui_shim_miuicamera.c
Normal file
9
shims/libgui_shim_miuicamera.c
Normal file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
* Copyright (C) 2024 The LineageOS Project
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
void _ZN7android18BnProducerListener16onBufferDetachedEi() {
|
||||
return;
|
||||
}
|
||||
Reference in New Issue
Block a user