From b614cd441b355e48e59d1f5cd61a800103404151 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Fri, 11 Oct 2024 12:52:21 -0700 Subject: Verify that libraries in apexes don't link to implementations outside the apex As part of removing some of the complexity in Soong around using stub vs. implementations for shared library dependencies a syntax will be added to Soong to allow explicitly selecting stubs vs. implementation. To avoid incorrect use, add a verification pass on apexes that ensure that all transitive implementation libraries used to link native libraries or binaries in the apex are themselves in the apex. Bug: 372543712 Test: TestApexVerifyNativeImplementationLibs Flag: EXEMPT host only Change-Id: I4aeaca00a359ce97e8f9efd2d8bffb8f9d2dc0df --- apex/classpath_element_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'apex/classpath_element_test.go') diff --git a/apex/classpath_element_test.go b/apex/classpath_element_test.go index f8e889983..f3671743a 100644 --- a/apex/classpath_element_test.go +++ b/apex/classpath_element_test.go @@ -45,10 +45,7 @@ func TestCreateClasspathElements(t *testing.T) { prepareForTestWithPlatformBootclasspath, prepareForTestWithArtApex, prepareForTestWithMyapex, - // For otherapex. - android.FixtureMergeMockFs(android.MockFS{ - "system/sepolicy/apex/otherapex-file_contexts": nil, - }), + prepareForTestWithOtherapex, java.PrepareForTestWithJavaSdkLibraryFiles, java.FixtureWithLastReleaseApis("foo", "othersdklibrary"), java.FixtureConfigureApexBootJars("myapex:bar"), -- cgit v1.2.3-59-g8ed1b