Skip to content

Commit

Permalink
recovery: Mark as P404 Recovery.
Browse files Browse the repository at this point in the history
* So many users think they accidetally restored the stock
  Recovery right now, as we haven't brough our custom UI
  up yet. Make it easier to discern.

Change-Id: Ifce302ee77b4f97b324005d5102aa15b5589b3d3
  • Loading branch information
npjohnson authored and xenxynon committed Dec 28, 2024
1 parent 14d7ac4 commit e235f88
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fastboot/fastboot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ static const std::vector<std::pair<std::string, Device::BuiltinAction>> kFastboo
};

void FillDefaultFastbootLines(std::vector<std::string>& title_lines) {
title_lines.push_back("Android Fastboot");
title_lines.push_back("Project 404 Fastboot");
title_lines.push_back("Product name - " + android::base::GetProperty("ro.product.device", ""));
title_lines.push_back("Bootloader version - " + android::base::GetProperty("ro.bootloader", ""));
title_lines.push_back("Baseband version - " +
Expand Down
4 changes: 2 additions & 2 deletions recovery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -812,8 +812,8 @@ Device::BuiltinAction start_recovery(Device* device, const std::vector<std::stri
}

std::vector<std::string> title_lines =
android::base::Split(android::base::GetProperty("ro.build.fingerprint", ""), ":");
title_lines.insert(std::begin(title_lines), "Android Recovery");
android::base::Split(android::base::GetProperty("ro.404.display.version", ""), ":");
title_lines.insert(std::begin(title_lines), "Project 404 Recovery");
ui->SetTitle(title_lines);

ui->ResetKeyInterruptStatus();
Expand Down
2 changes: 1 addition & 1 deletion recovery_ui/include/recovery_ui/screen_ui.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class TextMenu : public Menu {
size_t MenuEnd() const;

// Menu example:
// info: Android Recovery
// info: Project 404 Recovery
// ....
// help messages: Swipe up/down to move
// Swipe left/right to select
Expand Down

0 comments on commit e235f88

Please sign in to comment.