From dc406318b91a514630ba5295173270165d97ce29 Mon Sep 17 00:00:00 2001 From: Blaster4385 Date: Thu, 22 Jun 2023 13:18:13 +0530 Subject: [PATCH] lynx: Add DMService symlinks Change-Id: I83a73157b5a9cc4359d79339df50c84e43bef53f --- Android.mk | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Android.mk b/Android.mk index e20e187..abaff2c 100644 --- a/Android.mk +++ b/Android.mk @@ -28,6 +28,21 @@ LOCAL_PATH := $(call my-dir) ifneq (,$(filter $(TARGET_DEVICE),lynx)) include $(call all-makefiles-under,$(LOCAL_PATH)) +DM_LIBS := libdmengine.so libdmjavaplugin.so +DM_32_SYMLINKS := $(addprefix $(TARGET_OUT_PRODUCT)/priv-app/DMService/lib/arm/,$(notdir $(DM_LIBS))) +$(DM_32_SYMLINKS): $(LOCAL_INSTALLED_MODULE) + @echo "DMService 32 lib link: $@" + @mkdir -p $(dir $@) + @rm -rf $@ + $(hide) ln -sf /product/lib/$(notdir $@) $@ + +DM_64_SYMLINKS := $(addprefix $(TARGET_OUT_PRODUCT)/priv-app/DMService/lib/arm64/,$(notdir $(DM_LIBS))) +$(DM_64_SYMLINKS): $(LOCAL_INSTALLED_MODULE) + @echo "DMService 64 lib link: $@" + @mkdir -p $(dir $@) + @rm -rf $@ + $(hide) ln -sf /product/lib64/$(notdir $@) $@ + HBM_LIBS := libhbmsvmanager_jni.so HBM_SYMLINKS := $(addprefix $(TARGET_OUT_SYSTEM_EXT)/priv-app/HbmSVManager/lib/arm64/,$(notdir $(HBM_LIBS))) $(HBM_SYMLINKS): $(LOCAL_INSTALLED_MODULE) @@ -36,6 +51,5 @@ $(HBM_SYMLINKS): $(LOCAL_INSTALLED_MODULE) @rm -rf $@ $(hide) ln -sf /system_ext/lib64/$(notdir $@) $@ -ALL_DEFAULT_INSTALLED_MODULES += $(HBM_SYMLINKS) - +ALL_DEFAULT_INSTALLED_MODULES += $(DM_32_SYMLINKS) $(DM_64_SYMLINKS) $(HBM_SYMLINKS) endif