Specify flags_packages property in the android_app-generated rro module
Specify the `flags_packages` property in the rro module generated in the
android_app module factory. This property passes the information about
the state of the aconfig flags to aapt2, which enables flagging the
resources in the manifest files.
Test: Patch ag/29933298 && m framework-res
Bug: 374827009
Change-Id: I383c0050efaa160a6038133422eedb70545f1271
diff --git a/java/app.go b/java/app.go
index 69fdc47..67a97ce 100644
--- a/java/app.go
+++ b/java/app.go
@@ -1340,12 +1340,14 @@
Aaptflags []string
Manifest *string
Resource_dirs []string
+ Flags_packages []string
}{
Name: proptools.StringPtr(rroPackageName),
Filter_product: proptools.StringPtr(characteristics),
Aaptflags: []string{"--auto-add-overlay"},
Manifest: proptools.StringPtr(":" + rroManifestName),
Resource_dirs: a.aaptProperties.Resource_dirs,
+ Flags_packages: a.aaptProperties.Flags_packages,
}
if !Bool(a.aaptProperties.Aapt_include_all_resources) {
for _, aaptConfig := range ctx.Config().ProductAAPTConfig() {