diff options
author | Jiyong Park <jiyong@google.com> | 2019-10-03 11:37:22 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-10-03 11:37:22 +0000 |
commit | 571e68efec588b8f55900efb282de5e7da99899c (patch) | |
tree | 9b8c009ac1c03a27414db55e36d456398ef816ed | |
parent | 50816f0c213d895f15acdae74f408f568f502b45 (diff) | |
parent | 62870e295d575885c4d9fc8b227d2ef021a02014 (diff) |
Merge "public libs from APEXes are pre-loadable"
-rw-r--r-- | libnativeloader/public_libraries.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libnativeloader/public_libraries.cpp b/libnativeloader/public_libraries.cpp index 93df1d05a..010e8cc3b 100644 --- a/libnativeloader/public_libraries.cpp +++ b/libnativeloader/public_libraries.cpp @@ -176,6 +176,11 @@ static std::string InitDefaultPublicLibraries(bool for_preload) { std::copy(vec.begin(), vec.end(), std::back_inserter(*sonames)); } + // If this is for preloading libs, don't remove the libs from APEXes. + if (for_preload) { + return android::base::Join(*sonames, ':'); + } + // Remove the public libs in the runtime namespace. // These libs are listed in public.android.txt, but we don't want the rest of android // in default namespace to dlopen the libs. |