From df5441508e3927f8628ae7f17018c55781c94645 Mon Sep 17 00:00:00 2001 From: Remi NGUYEN VAN Date: Fri, 28 Feb 2025 10:22:54 +0900 Subject: [PATCH] Remove -stubs-including-flagged These were added to allow tests to build against flagged off APIs, in legacy downstream branches that did not support the flagging infrastructure and stripped out flagged off APIs from the stubs. Flagged off APIs are part of the regular stubs in branches used today, so this is not needed anymore. Bug: 399365344 Test: atest Change-Id: Ica7df0c5c9be39d9dca49e0114711a7c43125c3d --- framework/Android.bp | 31 ------------------------------- thread/tests/cts/Android.bp | 1 - 2 files changed, 32 deletions(-) diff --git a/framework/Android.bp b/framework/Android.bp index f66bc60d71..ab3af9a6be 100644 --- a/framework/Android.bp +++ b/framework/Android.bp @@ -295,7 +295,6 @@ java_genrule { ":framework-connectivity-t-pre-jarjar{.jar}", ":framework-connectivity.stubs.module_lib{.jar}", ":framework-connectivity-t.stubs.module_lib{.jar}", - ":framework-connectivity-module-api-stubs-including-flagged{.jar}", "jarjar-excludes.txt", ], tools: [ @@ -308,7 +307,6 @@ java_genrule { "--prefix android.net.connectivity " + "--apistubs $(location :framework-connectivity.stubs.module_lib{.jar}) " + "--apistubs $(location :framework-connectivity-t.stubs.module_lib{.jar}) " + - "--apistubs $(location :framework-connectivity-module-api-stubs-including-flagged{.jar}) " + // Make a ":"-separated list. There will be an extra ":" but empty items are ignored. "--unsupportedapi $$(printf ':%s' $(locations :connectivity-hiddenapi-files)) " + "--excludes $(location jarjar-excludes.txt) " + @@ -320,35 +318,6 @@ java_genrule { ], } -droidstubs { - name: "framework-connectivity-module-api-stubs-including-flagged-droidstubs", - srcs: [ - ":framework-connectivity-sources", - ":framework-connectivity-tiramisu-updatable-sources", - ":framework-networksecurity-sources", - ":framework-nearby-java-sources", - ":framework-thread-sources", - ], - flags: [ - "--show-for-stub-purposes-annotation android.annotation.SystemApi" + - "\\(client=android.annotation.SystemApi.Client.PRIVILEGED_APPS\\)", - "--show-for-stub-purposes-annotation android.annotation.SystemApi" + - "\\(client=android.annotation.SystemApi.Client.MODULE_LIBRARIES\\)", - ], - aidl: { - include_dirs: [ - "packages/modules/Connectivity/framework/aidl-export", - "packages/modules/Connectivity/Tethering/common/TetheringLib/src", - "frameworks/native/aidl/binder", // For PersistableBundle.aidl - ], - }, -} - -java_library { - name: "framework-connectivity-module-api-stubs-including-flagged", - srcs: [":framework-connectivity-module-api-stubs-including-flagged-droidstubs"], -} - // Library providing limited APIs within the connectivity module, so that R+ components like // Tethering have a controlled way to depend on newer components like framework-connectivity that // are not loaded on R. diff --git a/thread/tests/cts/Android.bp b/thread/tests/cts/Android.bp index 2630d21c94..901dee731b 100644 --- a/thread/tests/cts/Android.bp +++ b/thread/tests/cts/Android.bp @@ -51,7 +51,6 @@ android_test { libs: [ "android.test.base.stubs", "android.test.runner.stubs", - "framework-connectivity-module-api-stubs-including-flagged", ], // Test coverage system runs on different devices. Need to // compile for all architectures.