summaryrefslogtreecommitdiff
path: root/libnativeloader/library_namespaces.cpp
diff options
context:
space:
mode:
author Becky Siegel <beckysiegel@google.com> 2024-02-23 20:04:52 +0000
committer Priyanka Advani <padvani@google.com> 2024-02-23 20:38:51 +0000
commitc35eef72b57b37975a29eedba92798313c01b444 (patch)
tree457c50225f9645c8628315c24c3eb19d21727300 /libnativeloader/library_namespaces.cpp
parent6e52064e41e6a130f1713c2f422c5bf66a5ff3b7 (diff)
Revert "Give full access to native libs from java libs in the sa..."
Revert submission 2933611-libnativeloader-shared-syslibs Reason for revert: Fixing test breakage b/326622518, b/326631342 Reverted changes: /q/submissionid:2933611-libnativeloader-shared-syslibs Change-Id: I746478191c0e3a2d1a36d87e7a3db980de196420
Diffstat (limited to 'libnativeloader/library_namespaces.cpp')
-rw-r--r--libnativeloader/library_namespaces.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/libnativeloader/library_namespaces.cpp b/libnativeloader/library_namespaces.cpp
index bd186c122a..e2b27294f9 100644
--- a/libnativeloader/library_namespaces.cpp
+++ b/libnativeloader/library_namespaces.cpp
@@ -85,7 +85,6 @@ constexpr const char* kProductLibPath = "/product/" LIB ":/system/product/" LIB;
const std::regex kVendorPathRegex("(/system)?/vendor/.*");
const std::regex kProductPathRegex("(/system)?/product/.*");
-const std::regex kSystemPathRegex("/system(_ext)?/.*"); // MUST be tested last.
jobject GetParentClassLoader(JNIEnv* env, jobject class_loader) {
jclass class_loader_class = env->FindClass("java/lang/ClassLoader");
@@ -104,9 +103,6 @@ ApiDomain GetApiDomainFromPath(const std::string_view path) {
if (is_product_treblelized() && std::regex_match(path.begin(), path.end(), kProductPathRegex)) {
return API_DOMAIN_PRODUCT;
}
- if (std::regex_match(path.begin(), path.end(), kSystemPathRegex)) {
- return API_DOMAIN_SYSTEM;
- }
return API_DOMAIN_DEFAULT;
}