summaryrefslogtreecommitdiff
path: root/linker/linker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linker/linker.cpp')
-rw-r--r--linker/linker.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/linker/linker.cpp b/linker/linker.cpp
index de0da56f5..791f94d41 100644
--- a/linker/linker.cpp
+++ b/linker/linker.cpp
@@ -177,6 +177,11 @@ static bool is_greylisted(const char* name, const soinfo* needed_by) {
nullptr
};
+ // limit greylisting to apps targeting sdk version 23 and below
+ if (get_application_target_sdk_version() > 23) {
+ return false;
+ }
+
// if the library needed by a system library - implicitly assume it
// is greylisted