summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordianlujitao <dianlujitao@lineageos.org>2020-01-30 17:13:44 +0800
committerMichael Bestas <mkbestas@lineageos.org>2020-04-30 00:48:54 +0300
commit2f78bc3051dd47ba414ee2717552e9cbe7a64563 (patch)
tree33c6405f85d051fa207896a56dbf14f0fb89b2ea
parentb5277eaedeb081e8799dc556ea45e6f509d619d0 (diff)
sdm660-common: Add missing ims symlinks
Change-Id: I77eb1cc4cab9158623c8e383cd8d7c4f183a5791
-rw-r--r--Android.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 021afb5..f797f1e 100644
--- a/Android.mk
+++ b/Android.mk
@@ -104,5 +104,15 @@ $(EGL_SYMLINK): $(LOCAL_INSTALLED_MODULE)
ALL_DEFAULT_INSTALLED_MODULES += $(EGL_SYMLINK)
+IMS_LIBS := libimscamera_jni.so libimsmedia_jni.so
+IMS_SYMLINKS := $(addprefix $(TARGET_OUT_APPS_PRIVILEGED)/ims/lib/arm64/,$(notdir $(IMS_LIBS)))
+$(IMS_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
+ @echo "IMS lib link: $@"
+ @mkdir -p $(dir $@)
+ @rm -rf $@
+ $(hide) ln -sf /system/lib64/$(notdir $@) $@
+
+ALL_DEFAULT_INSTALLED_MODULES += $(IMS_SYMLINKS)
+
include $(call all-makefiles-under,$(LOCAL_PATH))
endif