aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recovery.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/recovery.cpp b/recovery.cpp
index 72f000b8..aeb7bdef 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -950,6 +950,11 @@ Device::BuiltinAction start_recovery(Device* device, const std::vector<std::stri
"Version " + android::base::GetProperty("ro.lineage.build.version", "(unknown)") +
" (" + ver_date + ")",
};
+ 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);
+ title_lines.push_back("Active slot: " + slot);
+ }
ui->SetTitle(title_lines);
ui->ResetKeyInterruptStatus();