summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'Android.mk')
-rwxr-xr-xAndroid.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 7ffcd70aa..d0d962f54 100755
--- a/Android.mk
+++ b/Android.mk
@@ -515,6 +515,19 @@ ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 28; echo $$?),0)
endif
endif
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26; echo $$?),0)
+ TWRP_REQUIRED_MODULES += ld.config.txt
+ ifeq ($(BOARD_VNDK_RUNTIME_DISABLE),true)
+ LOCAL_POST_INSTALL_CMD += \
+ sed '0,/^namespace.default.search.paths\s\{1,\}/!b;//a\namespace.default.search.paths += \/sbin' \
+ $(TARGET_OUT_ETC)/ld.config.vndk_lite.txt > $(TARGET_RECOVERY_ROOT_OUT)/sbin/ld.config.txt;
+ else
+ LOCAL_POST_INSTALL_CMD += \
+ sed '0,/^namespace.default.search.paths\s\{1,\}/!b;//a\namespace.default.search.paths += \/sbin' \
+ $(TARGET_OUT_ETC)/ld.config.txt > $(TARGET_RECOVERY_ROOT_OUT)/sbin/ld.config.txt;
+ endif
+endif
+
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 25; echo $$?),0)
TWRP_REQUIRED_MODULES += file_contexts_text
endif