Dist android-info.txt in soong-only builds
Fixes: 395159795
Test: m dist && ls out/dist/android-info.txt
Change-Id: If12e600e44884ea3fa28e52c5c6f7b8d3ad9064f
diff --git a/filesystem/android_device.go b/filesystem/android_device.go
index 005dc34..a039160 100644
--- a/filesystem/android_device.go
+++ b/filesystem/android_device.go
@@ -333,6 +333,10 @@
ctx.DistForGoalWithFilename("droidcore-unbundled", a.proguardDictZip, namePrefix+insertBeforeExtension(a.proguardDictZip.Base(), "-FILE_NAME_TAG_PLACEHOLDER"))
ctx.DistForGoalWithFilename("droidcore-unbundled", a.proguardDictMapping, namePrefix+insertBeforeExtension(a.proguardDictMapping.Base(), "-FILE_NAME_TAG_PLACEHOLDER"))
ctx.DistForGoalWithFilename("droidcore-unbundled", a.proguardUsageZip, namePrefix+insertBeforeExtension(a.proguardUsageZip.Base(), "-FILE_NAME_TAG_PLACEHOLDER"))
+
+ if a.deviceProps.Android_info != nil {
+ ctx.DistForGoal("droidcore-unbundled", android.PathForModuleSrc(ctx, *a.deviceProps.Android_info))
+ }
}
}