diff --git a/recovery.cpp b/recovery.cpp index 2ce1b676..0544aabd 100644 --- a/recovery.cpp +++ b/recovery.cpp @@ -725,6 +725,12 @@ Device::BuiltinAction start_recovery(Device* device, const std::vector title_lines = android::base::Split(android::base::GetProperty("ro.build.fingerprint", ""), ":"); title_lines.insert(std::begin(title_lines), "tequilaOS Recovery"); + + 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();