summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPat Erley <perley@cyngn.com>2016-01-05 16:50:02 -0800
committeralk3pInjection <webmaster@raspii.tech>2022-01-29 00:06:32 +0800
commita7ac948c06fdcef23924c20d0bbfb2a6c61c3e99 (patch)
tree0711ccfc2f6bc168b94644d8d74cc36fdf7e6f14
parent07f3841a58e699cc0613763201ae8b5fef34ed13 (diff)
recovery: Enable the menu for user builds
Upstream recovery doesn't provide a menu for non ENG/UserDebug builds. OPO-321 Change-Id: I01b285a40287be4147d15a70b91ad17a3c93da68
-rw-r--r--recovery.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/recovery.cpp b/recovery.cpp
index 41585d04..afeee7ce 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -933,12 +933,10 @@ Device::BuiltinAction start_recovery(Device* device, const std::vector<std::stri
status = ApplyFromAdb(device, true /* rescue_mode */, &next_action);
ui->Print("\nInstall from ADB complete (status: %d).\n", status);
} else if (!just_exit) {
- // If this is an eng or userdebug build, automatically turn on the text display if no command
- // is specified. Note that this should be called before setting the background to avoid
+ // Always show menu if no command is specified.
+ // Note that this should be called before setting the background to avoid
// flickering the background image.
- if (IsRoDebuggable()) {
- ui->ShowText(true);
- }
+ ui->ShowText(true);
status = INSTALL_NONE; // No command specified
ui->SetBackground(RecoveryUI::NO_COMMAND);
}