Report combined system version and product version.

The version now consists of system version (3 numbers) and product
version (1 number).

Bug: 35364984
Test: checked the omaha ping in logcat on edison

Change-Id: Id479682f84d66da7eb6d2b8ce92c44f29ac6e3da
diff --git a/image_properties_android.cc b/image_properties_android.cc
index 00822da..5ec63a5 100644
--- a/image_properties_android.cc
+++ b/image_properties_android.cc
@@ -34,6 +34,7 @@
 // Build time properties name used in Brillo.
 const char kProductId[] = "product_id";
 const char kProductVersion[] = "product_version";
+const char kSystemVersion[] = "system_version";
 
 // Prefs used to store the target channel and powerwash settings.
 const char kPrefsImgPropChannelName[] = "img-prop-channel-name";
@@ -64,7 +65,11 @@
   result.product_id = GetStringWithDefault(
       osrelease, kProductId, "developer-boards:brillo-starter-board");
   result.canary_product_id = result.product_id;
-  result.version = GetStringWithDefault(osrelease, kProductVersion, "0.0.0.0");
+  std::string system_version =
+      GetStringWithDefault(osrelease, kSystemVersion, "0.0.0");
+  std::string product_version =
+      GetStringWithDefault(osrelease, kProductVersion, "0");
+  result.version = system_version + "." + product_version;
 
   result.board = "brillo";