Add vintf info and userdata size to Soong's misc_info.txt

- vintf info will be read from the global productVariables struct. This
  will likely need to be revisited when we have multiple
android_device's in the tree
- userdata has been special-cased to create a `userdata_size` entry in
  addition to $(filesystem)_partition_size entry. This special case
matches the make misc_info.txt implementation.

Bug: 398036609
Test: Built Soong's misc_info.txt locally
Change-Id: I9f312c8022c5faf84442cb51f1e13043768aed53
diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go
index 3d8477d..af14e81 100644
--- a/filesystem/filesystem.go
+++ b/filesystem/filesystem.go
@@ -1175,6 +1175,10 @@
 	// effect as <partition name>_disable_sparse.
 	if f.properties.Partition_size == nil {
 		addStr(f.partitionName()+"_disable_sparse", "true")
+	} else if f.partitionName() == "userdata" {
+		// Add userdata's partition size to misc_info.txt.
+		// userdata has been special-cased to make the make packaging misc_info.txt implementation
+		addStr("userdata_size", strconv.FormatInt(*f.properties.Partition_size, 10))
 	}
 
 	fst := f.fsType(ctx)