libartpalette: Change rtld flag
Change dlopen flag from RTLD_LOCAL to RTLD_GLOBAL for additional
flexibility.
Bug: 122824298
Test: m -j100
Change-Id: Ie865c9aa42bfdf11a3f1b8ee97673f454ce75ffd
diff --git a/libartpalette/apex/palette.cc b/libartpalette/apex/palette.cc
index 8c17057..0b391f8 100644
--- a/libartpalette/apex/palette.cc
+++ b/libartpalette/apex/palette.cc
@@ -76,7 +76,7 @@
};
void* PaletteLoader::OpenLibrary() {
- void* handle = dlopen(kPaletteSystemLibrary, RTLD_NOW | RTLD_LOCAL | RTLD_NODELETE);
+ void* handle = dlopen(kPaletteSystemLibrary, RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE);
if (handle == nullptr) {
// dlerror message includes details of error and file being opened.
__android_log_assert(nullptr, kLogTag, "%s", dlerror());