diff options
| author | 2019-05-28 18:25:06 -0700 | |
|---|---|---|
| committer | 2019-05-28 18:25:06 -0700 | |
| commit | 4bccc0801c9a417a142d5af516e8b04280b0843d (patch) | |
| tree | 2ad36147e5cb066ead411d26173e415321286877 /java | |
| parent | 45cc967424b380af91b22ab7893f5dbe299647b5 (diff) | |
| parent | 9c74a1ee855b1dcf4871a4cc40f317bd765ab7fd (diff) | |
Don't build hiddenapi flags or encode dex for unbundled builds
am: 9c74a1ee85
Change-Id: I80ff83a49c809b867acdc2765376da39b1bac70e
Diffstat (limited to 'java')
| -rw-r--r-- | java/hiddenapi_singleton.go | 2 | ||||
| -rw-r--r-- | java/java.go | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/java/hiddenapi_singleton.go b/java/hiddenapi_singleton.go index 9627dc64b..b1ddab48d 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 44830839d..8dbdfb6a7 100644 --- a/java/java.go +++ b/java/java.go @@ -1301,9 +1301,11 @@ func (j *Module) compile(ctx android.ModuleContext, aaptSrcJar 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 { |