diff options
author | Paul Duffin <paulduffin@google.com> | 2021-04-07 12:27:16 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2021-04-07 12:27:16 +0000 |
commit | 4896da1444fac8f4663cc7ffadd2d9dd17c6f2ba (patch) | |
tree | e39e0c30ae35dc9b20c25a206d192a2842811f73 /java/hiddenapi_singleton.go | |
parent | 1be2290fddb9ad26cba62c9a4a760a0096db75b7 (diff) | |
parent | b5933f64e4e5fb1b5ab9c671f66184c2f62f572b (diff) |
Merge "Remove hidden API special handling of android.test.base"
Diffstat (limited to 'java/hiddenapi_singleton.go')
-rw-r--r-- | java/hiddenapi_singleton.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/java/hiddenapi_singleton.go b/java/hiddenapi_singleton.go index 6ad4ff322..0e9b6c528 100644 --- a/java/hiddenapi_singleton.go +++ b/java/hiddenapi_singleton.go @@ -186,17 +186,6 @@ func stubFlagsRule(ctx android.SingletonContext) { // We do not have prebuilts of the core platform api yet corePlatformStubModules = append(corePlatformStubModules, "legacy.core.platform.api.stubs") - // Add the android.test.base to the set of stubs only if the android.test.base module is on - // the boot jars list as the runtime will only enforce hiddenapi access against modules on - // that list. - if inList("android.test.base", ctx.Config().BootJars()) { - if ctx.Config().AlwaysUsePrebuiltSdks() { - publicStubModules = append(publicStubModules, "sdk_public_current_android.test.base") - } else { - publicStubModules = append(publicStubModules, "android.test.base.stubs") - } - } - // Allow products to define their own stubs for custom product jars that apps can use. publicStubModules = append(publicStubModules, ctx.Config().ProductHiddenAPIStubs()...) systemStubModules = append(systemStubModules, ctx.Config().ProductHiddenAPIStubsSystem()...) |