diff options
Diffstat (limited to 'recovery.cpp')
-rw-r--r-- | recovery.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/recovery.cpp b/recovery.cpp index afeee7ce..4bf5f129 100644 --- a/recovery.cpp +++ b/recovery.cpp @@ -796,6 +796,11 @@ Device::BuiltinAction start_recovery(Device* device, const std::vector<std::stri std::vector<std::string> title_lines = android::base::Split(android::base::GetProperty("ro.ice.version", ""), ":"); title_lines.insert(std::begin(title_lines), "Project ICE 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(); |