diff --git a/Android.mk b/Android.mk index fc7b4f7..e20e187 100644 --- a/Android.mk +++ b/Android.mk @@ -27,4 +27,15 @@ LOCAL_PATH := $(call my-dir) ifneq (,$(filter $(TARGET_DEVICE),lynx)) include $(call all-makefiles-under,$(LOCAL_PATH)) + +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) + @echo "HBM lib link: $@" + @mkdir -p $(dir $@) + @rm -rf $@ + $(hide) ln -sf /system_ext/lib64/$(notdir $@) $@ + +ALL_DEFAULT_INSTALLED_MODULES += $(HBM_SYMLINKS) + endif