From 7d4ebce2d8e15260ecdbfc6b3c67df3b5a7a09b4 Mon Sep 17 00:00:00 2001 From: Martin Stjernholm Date: Tue, 18 Jun 2024 12:32:03 +0100 Subject: Recognise system/system_ext as a system image partition path. Also move the regex used for that next to the other partition regex'es for visibility, and add some unit tests. Test: atest libnativeloader_tests libnativeloader_e2e_tests on mokey_go32 Bug: 346515837 Change-Id: I30a85678e0d3c45645d6f089f5f1d92e1360e8bf --- libnativeloader/library_namespaces.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libnativeloader/library_namespaces.h') diff --git a/libnativeloader/library_namespaces.h b/libnativeloader/library_namespaces.h index b932a557e0..c9adee314c 100644 --- a/libnativeloader/library_namespaces.h +++ b/libnativeloader/library_namespaces.h @@ -58,6 +58,7 @@ using ApiDomain = enum { ApiDomain GetApiDomainFromPath(const std::string_view path); Result GetApiDomainFromPathList(const std::string& path_list); +bool IsPartitionNativeLibPath(const std::string& path); // LibraryNamespaces is a singleton object that manages NativeLoaderNamespace // objects for an app process. Its main job is to create (and configure) a new -- cgit v1.2.3-59-g8ed1b