Modify namings of disted installed files
To match the names to those in soong+make build.
Test: m droid dist --soong-only && ls -l out/dist
Bug: 395162005
Change-Id: I196fa46de628a3dded9ba9f804337c19ddea119b
diff --git a/filesystem/android_device.go b/filesystem/android_device.go
index 17209ed..86771d1 100644
--- a/filesystem/android_device.go
+++ b/filesystem/android_device.go
@@ -323,6 +323,10 @@
if !ctx.Config().KatiEnabled() && proptools.Bool(a.deviceProps.Main_device) {
fsInfoMap := a.getFsInfos(ctx)
for _, partition := range android.SortedKeys(fsInfoMap) {
+ // installed-files-*{.txt | .json} is not disted for userdata partition
+ if partition == "userdata" {
+ continue
+ }
fsInfo := fsInfoMap[partition]
if fsInfo.InstalledFiles.Json != nil {
ctx.DistForGoal("droidcore-unbundled", fsInfo.InstalledFiles.Json)