Revert "Don't build hiddenapi flags or encode dex for unbundled builds"
am: 09cb629c15
Change-Id: I13583e6b4e6c59c2c2904349f61179a49a0a36ba
This commit is contained in:
@@ -64,7 +64,7 @@ func (h *hiddenAPISingleton) GenerateBuildActions(ctx android.SingletonContext)
|
|||||||
stubFlagsRule(ctx)
|
stubFlagsRule(ctx)
|
||||||
|
|
||||||
// These rules depend on files located in frameworks/base, skip them if running in a tree that doesn't have them.
|
// 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.flags = flagsRule(ctx)
|
||||||
h.metadata = metadataRule(ctx)
|
h.metadata = metadataRule(ctx)
|
||||||
} else {
|
} else {
|
||||||
|
@@ -1322,11 +1322,9 @@ func (j *Module) compile(ctx android.ModuleContext, aaptSrcJar android.Path) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if !ctx.Config().UnbundledBuild() {
|
|
||||||
// Hidden API CSV generation and dex encoding
|
// Hidden API CSV generation and dex encoding
|
||||||
dexOutputFile = j.hiddenAPI.hiddenAPI(ctx, dexOutputFile, j.implementationJarFile,
|
dexOutputFile = j.hiddenAPI.hiddenAPI(ctx, dexOutputFile, j.implementationJarFile,
|
||||||
j.deviceProperties.UncompressDex)
|
j.deviceProperties.UncompressDex)
|
||||||
}
|
|
||||||
|
|
||||||
// merge dex jar with resources if necessary
|
// merge dex jar with resources if necessary
|
||||||
if j.resourceJar != nil {
|
if j.resourceJar != nil {
|
||||||
|
Reference in New Issue
Block a user