msm8996-common: Link Dolby Atmos dependencies against v33 libstagefright_foundation

* fixes crashes and absurdly high CPU usage while using dolby

Co-authored-by: Woomymy <woomy@woomy.be>
Change-Id: Ib72b775dae677f3085d0b0e2afcbb709d8690063
Signed-off-by: basamaryan <basam.aryan@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
This commit is contained in:
Fabian Leutenegger
2023-11-29 16:43:55 +01:00
committed by Onelots
parent bda28d1905
commit d6e0fd0c76
5 changed files with 30 additions and 1 deletions

View File

@@ -67,6 +67,9 @@ function blob_fixup() {
vendor/lib/libchromaflash.so|vendor/lib/libmmcamera_hdr_gb_lib.so|vendor/lib/libmorpho_easy_hdr.so|vendor/lib/libmorpho_hdr_checker.so|vendor/lib/libmorpho_image_stab4.so|vendor/lib/libmpbase.so|vendor/lib/liboptizoom.so|vendor/lib/libseemore.so|vendor/lib/libubifocus.so)
"${PATCHELF}" --replace-needed "libstdc++.so" "libstdc++_vendor.so" "${2}"
;;
vendor/lib64/libdlbdsservice.so|vendor/lib/libstagefright_soft_ac4dec.so|vendor/lib/libstagefright_soft_ddpdec.so)
"${PATCHELF}" --replace-needed "libstagefright_foundation.so" "libstagefright_foundation-v33.so" "${2}"
;;
vendor/lib64/libwvhidl.so|vendor/lib64/mediadrm/libwvdrmengine.so)
grep -q libcrypto_shim.so "${2}" || "${PATCHELF}" --add-needed "libcrypto_shim.so" "${2}"
;;

View File

@@ -311,7 +311,8 @@ PRODUCT_PACKAGES += \
libOmxCore \
libOmxVdec \
libOmxVenc \
libstagefrighthw
libstagefrighthw \
libstagefright_foundation-v33
# Partitions
PRODUCT_USE_DYNAMIC_PARTITIONS := true

23
vndk/Android.bp Normal file
View File

@@ -0,0 +1,23 @@
//
// Copyright (C) 2023 The LineageOS Project
//
// SPDX-License-Identifier: Apache-2.0
//
cc_prebuilt_library_shared {
name: "libstagefright_foundation-v33",
vendor: true,
strip: {
none: true,
},
target: {
android_arm: {
srcs: ["v33/arm/libstagefright_foundation-v33.so"],
},
android_arm64: {
srcs: ["v33/arm64/libstagefright_foundation-v33.so"],
},
},
compile_multilib: "both",
check_elf_files: false,
}

View File

@@ -0,0 +1 @@
../../../../../../prebuilts/vndk/v33/arm/arch-arm-armv7-a-neon/shared/vndk-core/libstagefright_foundation.so

View File

@@ -0,0 +1 @@
../../../../../../prebuilts/vndk/v33/arm64/arch-arm64-armv8-a/shared/vndk-core/libstagefright_foundation.so