From b6f53c064e66f1f7ded2121f9d592463d02e0bdd Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Fri, 14 May 2021 07:52:42 +0100 Subject: Refactor special handling of hidden API encoding for master-art Instead of encoding the hidden API with an empty set of flags when the monolithic flags are not available this simply disables encoding altogether which should have the same behavior at runtime. This change also removes the unused flags field in hiddenAPISingleton which was set but never read. Bug: 179354495 Test: m nothing Change-Id: I32d5825e5271829993dd4e5be4d4ee1b22fa7b22 --- java/hiddenapi_singleton_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'java/hiddenapi_singleton_test.go') diff --git a/java/hiddenapi_singleton_test.go b/java/hiddenapi_singleton_test.go index 3ab22772a..e6b45ac20 100644 --- a/java/hiddenapi_singleton_test.go +++ b/java/hiddenapi_singleton_test.go @@ -60,10 +60,7 @@ func TestHiddenAPISingleton(t *testing.T) { } func TestHiddenAPISingletonWithSourceAndPrebuiltPreferredButNoDex(t *testing.T) { - expectedErrorMessage := - "hiddenapi has determined that the source module \"foo\" should be ignored as it has been" + - " replaced by the prebuilt module \"prebuilt_foo\" but unfortunately it does not provide a" + - " suitable boot dex jar" + expectedErrorMessage := "module prebuilt_foo{os:android,arch:common} does not provide a dex jar" android.GroupFixturePreparers( hiddenApiFixtureFactory, -- cgit v1.2.3-59-g8ed1b