aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Ross <greg@toolstack.com>2024-01-30 15:58:27 -0500
committerGreg Ross <greg@toolstack.com>2024-01-30 15:58:27 -0500
commit01e30c8f68f68bf3eea4dc9df47a147b79c7e283 (patch)
tree59f3381bfdea37e74f8fe51d44918453eb14e1b4
parenta6aa35048cf1f96a0d4608a7dedf230e125b2ce8 (diff)
recovery: Add device codename to recovery screen
Add the device codename ot the title lines in the recovery screen the same way that fastbootd's title lines do. Change-Id: Ieb914d65119ab66beabd1d486a85f49901bb3f3d
-rw-r--r--recovery.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/recovery.cpp b/recovery.cpp
index b5714d48..6d20acdd 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -834,6 +834,7 @@ Device::BuiltinAction start_recovery(Device* device, const std::vector<std::stri
"Version " + android::base::GetProperty("ro.lineage.build.version", "(unknown)") +
" (" + ver_date + ")",
};
+ 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);