From c35eef72b57b37975a29eedba92798313c01b444 Mon Sep 17 00:00:00 2001 From: Becky Siegel Date: Fri, 23 Feb 2024 20:04:52 +0000 Subject: 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 --- libnativeloader/library_namespaces.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'libnativeloader/library_namespaces.cpp') 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; } -- cgit v1.2.3-59-g8ed1b