From 8701bf5f321ccad60ee948833fc3208ae6ea51df Mon Sep 17 00:00:00 2001 From: Martin Stjernholm Date: Tue, 13 Feb 2024 16:38:49 +0000 Subject: Separate handling of a single path and a list of paths when determining API domains. Becomes necessary in a later CL where it gets used on more or less arbitrary paths where we shouldn't treat colons specially. The old code crashed with a fatal if a list of paths had both vendor and product directories in it. This changes that to a more appropriate error that gets propagated to the java level and becomes an exception where the classloader is created. Test: atest libnativeloader_test Bug: 237577392 Change-Id: I783af87a03de18c65fadcd1fd5a71423ec0c786b --- libnativeloader/Android.bp | 1 + 1 file changed, 1 insertion(+) (limited to 'libnativeloader/Android.bp') diff --git a/libnativeloader/Android.bp b/libnativeloader/Android.bp index 16449ac745..e9c26c592c 100644 --- a/libnativeloader/Android.bp +++ b/libnativeloader/Android.bp @@ -158,6 +158,7 @@ art_cc_test { "native_loader_test.cpp", ], srcs: [ + "library_namespaces_test.cpp", "native_loader_api_test.c", "native_loader_test.cpp", "open_system_library.cpp", -- cgit v1.2.3-59-g8ed1b