aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2019-05-30 03:08:32 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-05-30 03:08:32 +0000
commit722f1c5e8f933202626e4bac7e87d2836dce5e77 (patch)
tree2c680e8e77686f73d76b1f27a687a6d82f2fe9c5
parent3f0de6d00ec375e7050280b21594d8b1f6b665ef (diff)
parent7b8a567f44b3fdb30eac8211e8ed8e27fb162797 (diff)
downloadbuild_soong-722f1c5e8f933202626e4bac7e87d2836dce5e77.tar.gz
build_soong-722f1c5e8f933202626e4bac7e87d2836dce5e77.tar.bz2
build_soong-722f1c5e8f933202626e4bac7e87d2836dce5e77.zip
Snap for 5616629 from 7b8a567f44b3fdb30eac8211e8ed8e27fb162797 to qt-release
Change-Id: I737bb8777869aab016645ecb2c2751ce72de6f63
-rw-r--r--java/hiddenapi_singleton.go2
-rw-r--r--java/java.go8
2 files changed, 6 insertions, 4 deletions
diff --git a/java/hiddenapi_singleton.go b/java/hiddenapi_singleton.go
index 9627dc64..b1ddab48 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) {
+ if ctx.Config().FrameworksBaseDirExists(ctx) && !ctx.Config().UnbundledBuild() {
h.flags = flagsRule(ctx)
h.metadata = metadataRule(ctx)
} else {
diff --git a/java/java.go b/java/java.go
index bf738c4d..ff6bbacc 100644
--- a/java/java.go
+++ b/java/java.go
@@ -1270,9 +1270,11 @@ func (j *Module) compile(ctx android.ModuleContext, extraSrcJars ...android.Path
return
}
- // Hidden API CSV generation and dex encoding
- dexOutputFile = j.hiddenAPI.hiddenAPI(ctx, dexOutputFile, j.implementationJarFile,
- j.deviceProperties.UncompressDex)
+ if !ctx.Config().UnbundledBuild() {
+ // Hidden API CSV generation and dex encoding
+ dexOutputFile = j.hiddenAPI.hiddenAPI(ctx, dexOutputFile, j.implementationJarFile,
+ j.deviceProperties.UncompressDex)
+ }
// merge dex jar with resources if necessary
if j.resourceJar != nil {