Reland: Add ApexInfo field to update_metadata.proto

ApexInfo defination has been duplicated from ota_metadata.proto

Bug: 172911822
Test: m
Test: atest update_engine_unittests:PayloadPropertiesTest
Change-Id: I25b11fdeff4a9ad927f5bcb866660f4b66e563fe
diff --git a/update_metadata.proto b/update_metadata.proto
index c57e4c1..ffc78b6 100644
--- a/update_metadata.proto
+++ b/update_metadata.proto
@@ -356,6 +356,15 @@
   optional bool vabc_enabled = 3;
 }
 
+// Definition has been duplicated from
+// $ANDROID_BUILD_TOP/build/tools/releasetools/ota_metadata.proto. Keep in sync.
+message ApexInfo {
+  optional string package_name = 1;
+  optional int64 version = 2;
+  optional bool is_compressed = 3;
+  optional int64 decompressed_size = 4;
+}
+
 message DeltaArchiveManifest {
   // Only present in major version = 1. List of install operations for the
   // kernel and rootfs partitions. For major version = 2 see the |partitions|
@@ -407,4 +416,8 @@
 
   // If the payload only updates a subset of partitions on the device.
   optional bool partial_update = 16;
+
+  // Information on compressed APEX to figure out how much space is required for
+  // their decompression
+  repeated ApexInfo apex_info = 17;
 }