miuicamera: Stub out usage of onBufferDetached

Change-Id: Iccc1a89ffd9f374d88ede162d05c65e783a3377b
This commit is contained in:
Arian 2024-04-19 21:14:06 +05:30 committed by basamaryan
parent 8ce4f840d5
commit e33d267db6
No known key found for this signature in database
GPG Key ID: 707BA6C82329E8F9
6 changed files with 26 additions and 0 deletions

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}"
;;
system/lib64/libmicampostproc_client.so)
"${PATCHELF}" --remove-needed "libhidltransport.so" "${2}"
;;

View File

@ -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

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;
}