From 983e2d571814ffaf9a88bc6cbc976ff3445d4aae Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 2 Jan 2019 11:35:38 -0800 Subject: Add a logo to the fastbootd screen. fastbootd looks too much like recovery, even if you're carefully reading the menu. It's not obvious the device is in a flashing mode, and it's too tempting to reboot or unplug the device in this state. As a first step, this patch adds a big red "fastbootd" logo so it's less obviously in recovery mode. Bug: 120429730 Test: manual test Change-Id: I73359f1fdfdc0b1694993f760fe7f35c5713b24e --- ui.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ui.h') diff --git a/ui.h b/ui.h index 4924fec52..b387ae3c9 100644 --- a/ui.h +++ b/ui.h @@ -168,7 +168,6 @@ class RecoveryUI { virtual size_t ShowPromptWipeDataMenu(const std::vector& backup_headers, const std::vector& backup_items, const std::function& key_handler) = 0; - // Displays the localized wipe data confirmation menu with pre-generated images. Falls back to // the text strings upon failures. The initial selection is the 0th item, which returns to the // upper level menu. @@ -176,6 +175,11 @@ class RecoveryUI { const std::vector& backup_headers, const std::vector& backup_items, const std::function& key_handler) = 0; + // Set whether or not the fastbootd logo is displayed. + void SetEnableFastbootdLogo(bool enable) { + fastbootd_logo_enabled_ = enable; + } + // Resets the key interrupt status. void ResetKeyInterruptStatus() { key_interrupted_ = false; @@ -200,6 +204,8 @@ class RecoveryUI { // Whether we should listen for touch inputs (default: false). bool touch_screen_allowed_; + bool fastbootd_logo_enabled_; + private: enum class ScreensaverState { DISABLED, -- cgit v1.2.3