summaryrefslogtreecommitdiff
path: root/libnativeloader/native_loader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libnativeloader/native_loader.cpp')
-rw-r--r--libnativeloader/native_loader.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libnativeloader/native_loader.cpp b/libnativeloader/native_loader.cpp
index f37f661a3e..964279446f 100644
--- a/libnativeloader/native_loader.cpp
+++ b/libnativeloader/native_loader.cpp
@@ -70,6 +70,11 @@ using ::android::nativeloader::LibraryNamespaces;
// the APEX. In that case the default namespace links to the ART namespace
// (com_android_art) for all libraries, which means this can be used to load
// test libraries that depend on ART internal libraries.
+//
+// There's also code in art/dalvikvm.cc to add links from com_android_art back
+// to the default namespace for NATIVELOADER_DEFAULT_NAMESPACE_LIBS, enabling
+// access in the opposite direction as well. Useful e.g. to load ART plugins in
+// NATIVELOADER_DEFAULT_NAMESPACE_LIBS.
constexpr const char* kNativeloaderExtraLibs = "nativeloader-extra-libs";
std::mutex g_namespaces_mutex;