From 78a522db4d8dba190bf0e9aeb3a2e9bf369fabfb Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Thu, 28 Mar 2024 14:10:14 +0000 Subject: [PATCH] common: telephony: Create symlink target for CneApp Change-Id: Ic9629b046e078ca170fe081952749b8e51899ff6 --- vendor/telephony/Android.bp | 7 +++++++ vendor/telephony/Android.mk | 10 ---------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/vendor/telephony/Android.bp b/vendor/telephony/Android.bp index 9835ec0a..3bd29ed3 100644 --- a/vendor/telephony/Android.bp +++ b/vendor/telephony/Android.bp @@ -1,6 +1,13 @@ soong_namespace { } +install_symlink { + name: "CneApp.libvndfwk_detect_jni.qti_symlink", + vendor: true, + installed_location: "app/CneApp/lib/arm64/libvndfwk_detect_jni.qti.so", + symlink_target: "/vendor/lib64/libvndfwk_detect_jni.qti.so", +} + prebuilt_hidl_interfaces { name: "hidl_embmssl_interface", interfaces: [ diff --git a/vendor/telephony/Android.mk b/vendor/telephony/Android.mk index 8e95f9f8..4bf2a36b 100644 --- a/vendor/telephony/Android.mk +++ b/vendor/telephony/Android.mk @@ -18,14 +18,4 @@ ifneq (,$(filter telephony, $(TARGET_COMMON_QTI_COMPONENTS))) include $(CLEAR_VARS) -CNE_LIBRARIES := libvndfwk_detect_jni.qti.so - -CNE_SYMLINKS := $(addprefix $(TARGET_OUT_VENDOR_APPS)/CneApp/lib/arm64/,$(notdir $(CNE_LIBRARIES))) -$(CNE_SYMLINKS): $(LOCAL_INSTALLED_MODULE) - @mkdir -p $(dir $@) - @rm -rf $@ - $(hide) ln -sf /vendor/lib64/$(notdir $@) $@ - -ALL_DEFAULT_INSTALLED_MODULES += $(CNE_SYMLINKS) - endif