diff options
author | Pat Erley <perley@cyngn.com> | 2016-01-05 16:50:02 -0800 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2023-12-25 21:42:48 +0800 |
commit | 3c0ce4beba0f79f26e57bd074c496a3a1b266a33 (patch) | |
tree | ac0dfd7e637f446c259fc56307dab9c9562e656a | |
parent | 16c61d1adcc599f78fa093c4ab37b9e7f497de43 (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.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/recovery.cpp b/recovery.cpp index 66f0a2d0..5c053d28 100644 --- a/recovery.cpp +++ b/recovery.cpp @@ -941,12 +941,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); } |