diff options
| author | DarkJoker360 <simoespo159@gmail.com> | 2021-09-25 09:38:29 +0200 |
|---|---|---|
| committer | Semavi Ulusoy <doc.divxm@gmail.com> | 2023-01-17 21:09:54 +0300 |
| commit | df382446773fc2de97d7c862ae376d1906d6819c (patch) | |
| tree | 714593c5a47a0157d1f2dc0ca78fd4f45803948f | |
| parent | 355b4e7682c4651e26ad47250c84597c72cbc9e9 (diff) | |
recovery: Drop useless version date
* Not needed as we are now showing up full
versioning.
Signed-off-by: DarkJoker360 <simoespo159@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: I889d56535201ff91943c7f57bf8f3ad1585cdae4
| -rw-r--r-- | recovery.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/recovery.cpp b/recovery.cpp index edd08ac0..85688f9b 100644 --- a/recovery.cpp +++ b/recovery.cpp @@ -32,7 +32,6 @@ #include <functional> #include <iterator> #include <memory> -#include <regex> #include <string> #include <vector> @@ -860,14 +859,10 @@ 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.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::string ver = android::base::GetProperty("ro.modversion", ""); std::vector<std::string> title_lines = { "AICP Version " + android::base::GetProperty("ro.romstats.version", "(unknown)"), - " (" + ver_date + ")", }; if (android::base::GetBoolProperty("ro.build.ab_update", false)) { std::string slot = android::base::GetProperty("ro.boot.slot_suffix", ""); |
