Merge "Avoid permitted_packages related build failures in unbundled builds" am: 393bffee78

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1768416

Change-Id: I7d982db3d688644efe6e4bd96bcfe5ccb24c0fe2
This commit is contained in:
Paul Duffin
2021-07-16 19:21:08 +00:00
committed by Automerger Merge Worker

View File

@@ -423,8 +423,13 @@ func (b *platformBootclasspathModule) generateBootImageBuildActions(ctx android.
// Generate the framework profile rule
bootFrameworkProfileRule(ctx, imageConfig)
// Generate the updatable bootclasspath packages rule.
generateUpdatableBcpPackagesRule(ctx, imageConfig, updatableModules)
// If always using prebuilt sdks then do not generate the updatable-bcp-packages.txt file as it
// will break because the prebuilts do not yet specify a permitted_packages property.
// TODO(b/193889859): Remove when the prebuilts have been updated.
if !ctx.Config().AlwaysUsePrebuiltSdks() {
// Generate the updatable bootclasspath packages rule.
generateUpdatableBcpPackagesRule(ctx, imageConfig, updatableModules)
}
// Copy non-updatable module dex jars to their predefined locations.
nonUpdatableBootDexJarsByModule := extractEncodedDexJarsFromModules(ctx, nonUpdatableModules)