(SHIFT) Branding: replace version

Change-Id: Id480fe6cafe90b2fceedff312a575b7fc7d77836
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
diff --git a/recovery.cpp b/recovery.cpp
index eba367b..ee03218 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -831,6 +831,7 @@
     ui->SetStage(st_cur, st_max);
   }
 
+#if 0
   // Extract the YYYYMMDD / YYYYMMDD_HHMMSS timestamp from the full version string.
   // Assume the first instance of "-[0-9]{8}-", or "-[0-9]{8}_[0-9]{6}-" in case
   // LINEAGE_VERSION_APPEND_TIME_OF_DAY is set to true has the desired date.
@@ -843,7 +844,15 @@
     "Version " + android::base::GetProperty("ro.lineage.build.version", "(unknown)") +
         " (" + ver_date + ")",
   };
+#else
+  std::string ver_date = android::base::GetProperty("ro.shift.version.date", "");
+  std::vector<std::string> title_lines = {
+    "Version " + android::base::GetProperty("ro.shift.version.base", "(unknown)") +
+        " (" + ver_date + ")",
+  };
+#endif
   title_lines.push_back("Product name - " + android::base::GetProperty("ro.product.device", ""));
+
   if (android::base::GetBoolProperty("ro.build.ab_update", false)) {
     std::string slot = android::base::GetProperty("ro.boot.slot_suffix", "");
     if (android::base::StartsWith(slot, "_")) slot.erase(0, 1);