aboutsummaryrefslogtreecommitdiffstats
path: root/java/hiddenapi_singleton.go
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2019-07-17 03:11:37 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-07-17 03:11:37 +0000
commit8fa121dc8905d109dc9461c7810c8d70449132f8 (patch)
tree1425a089580634b8285954733e7ea2bca06e3f4a /java/hiddenapi_singleton.go
parent4358b7cc045b62ca28015a88506469f571d92d52 (diff)
parent9863d53618714a36c3f254d949497a7eb2d11863 (diff)
downloadbuild_soong-android-10.0.0_r6.tar.gz
build_soong-android-10.0.0_r6.tar.bz2
build_soong-android-10.0.0_r6.zip
Change-Id: I4173c76b7399b84f27ab3c513f11b82a78320e77
Diffstat (limited to 'java/hiddenapi_singleton.go')
-rw-r--r--java/hiddenapi_singleton.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/hiddenapi_singleton.go b/java/hiddenapi_singleton.go
index b1ddab48..09936ea7 100644
--- a/java/hiddenapi_singleton.go
+++ b/java/hiddenapi_singleton.go
@@ -61,7 +61,7 @@ func (h *hiddenAPISingleton) GenerateBuildActions(ctx android.SingletonContext)
stubFlagsRule(ctx)
// These rules depend on files located in frameworks/base, skip them if running in a tree that doesn't have them.
- if ctx.Config().FrameworksBaseDirExists(ctx) && !ctx.Config().UnbundledBuild() {
+ if ctx.Config().FrameworksBaseDirExists(ctx) {
h.flags = flagsRule(ctx)
h.metadata = metadataRule(ctx)
} else {
@@ -94,7 +94,7 @@ func stubFlagsRule(ctx android.SingletonContext) {
// 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 inList("android.test.base", ctx.Config().BootJars()) && !ctx.Config().UnbundledBuildUsePrebuiltSdks() {
publicStubModules = append(publicStubModules, "android.test.base.stubs")
}