mirror of
https://github.com/Anything-at-25-00/android_device_tecno_LG8n.git
synced 2024-11-22 13:46:26 -08:00
X6833B: Link older libutils for PQ HAL
* Abort message: 'incStrongRequireStrong() called on 0xb400007c5afa7250 which isn't already owned' Change-Id: I7ea86d3d7c68ba183b4838cb1f35a9fc58cfbf67 Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
This commit is contained in:
parent
5ca665b1a5
commit
c1d70a0738
|
@ -59,7 +59,8 @@ PRODUCT_PACKAGES += \
|
|||
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.graphics.allocator@4.0.vendor \
|
||||
libdrm.vendor
|
||||
libdrm.vendor \
|
||||
libutils-v32
|
||||
|
||||
# Dynamic partitions
|
||||
PRODUCT_USE_DYNAMIC_PARTITIONS := true
|
||||
|
|
|
@ -53,6 +53,14 @@ if [ -z "${SRC}" ]; then
|
|||
SRC="adb"
|
||||
fi
|
||||
|
||||
function blob_fixup {
|
||||
case "$1" in
|
||||
vendor/lib*/hw/mt6789/vendor.mediatek.hardware.pq@2.15-impl.so)
|
||||
"$PATCHELF" --replace-needed "libutils.so" "libutils-v32.so" "$2"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
# Initialize the helper
|
||||
setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false "${CLEAN_VENDOR}"
|
||||
|
||||
|
|
14
vndk/Android.mk
Normal file
14
vndk/Android.mk
Normal file
|
@ -0,0 +1,14 @@
|
|||
LOCAL_PATH := prebuilts/vndk
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := libutils-v32
|
||||
LOCAL_MULTILIB := both
|
||||
LOCAL_SRC_FILES_arm := v32/arm64/arch-arm-armv8-a/shared/vndk-sp/libutils.so
|
||||
LOCAL_SRC_FILES_arm64 := v32/arm64/arch-arm64-armv8-a/shared/vndk-sp/libutils.so
|
||||
LOCAL_MODULE_SUFFIX := .so
|
||||
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
|
||||
LOCAL_MODULE_TARGET_ARCH := arm arm64
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_CHECK_ELF_FILES := false
|
||||
LOCAL_VENDOR_MODULE := true
|
||||
include $(BUILD_PREBUILT)
|
Loading…
Reference in a new issue