aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Veit <claymore1298@gmail.com>2020-08-24 09:31:46 +0200
committerSemavi Ulusoy <doc.divxm@gmail.com>2023-01-17 21:09:54 +0300
commit355b4e7682c4651e26ad47250c84597c72cbc9e9 (patch)
tree61ab885e5318cbd74bc45aae1f884249f9033ed7
parent741b6db55562e8b5313f9bfa1776cebbffb94a02 (diff)
recovery: AICPify Version
Change-Id: I1a33e41d4d34096d2de2f1cf756eb41dee79bd73 Signed-off-by: Semavi Ulusoy <doc.divxm@gmail.com>
-rw-r--r--recovery.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/recovery.cpp b/recovery.cpp
index bcc6fb39..edd08ac0 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -860,13 +860,13 @@ Device::BuiltinAction start_recovery(Device* device, const std::vector<std::stri
// 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.
- std::string ver = android::base::GetProperty("ro.lineage.version", "");
+ std::string ver = android::base::GetProperty("ro.aicp.display.version", "");
std::smatch ver_date_match;
std::regex_search(ver, ver_date_match, std::regex("-(\\d{8}(_\\d{6})?)-"));
std::string ver_date = ver_date_match.str(1); // Empty if no match.
std::vector<std::string> title_lines = {
- "Version " + android::base::GetProperty("ro.lineage.build.version", "(unknown)") +
+ "AICP Version " + android::base::GetProperty("ro.romstats.version", "(unknown)"),
" (" + ver_date + ")",
};
if (android::base::GetBoolProperty("ro.build.ab_update", false)) {