From 0e577ee424acf7a5e6600560d702ab3c8020a29f Mon Sep 17 00:00:00 2001 From: Jerry Zhang Date: Mon, 7 May 2018 11:21:10 -0700 Subject: recovery: Add ability to set title lines Add the ability to change the contents of the title lines, displayed at the top of the screen. Once set, the same lines are displayed for all menus until changed again. Test: Recovery works Bug: 78793464 Change-Id: I7ef5594b0d76dbbd2e01ad7508863af1270b2a2a --- recovery.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'recovery.cpp') diff --git a/recovery.cpp b/recovery.cpp index 21f633011..56b2567d1 100644 --- a/recovery.cpp +++ b/recovery.cpp @@ -1063,6 +1063,11 @@ Device::BuiltinAction start_recovery(Device* device, const std::vectorSetStage(st_cur, st_max); } + std::vector title_lines = + android::base::Split(android::base::GetProperty("ro.bootimage.build.fingerprint", ""), ":"); + title_lines.insert(std::begin(title_lines), "Android Recovery"); + ui->SetTitle(title_lines); + device->StartRecovery(); printf("Command:"); -- cgit v1.2.3