recovery: Enable the menu for User builds

Upstream recovery doesn't provide a menu for non ENG/UserDebug
builds.

OPO-321

Change-Id: I01b285a40287be4147d15a70b91ad17a3c93da68
This commit is contained in:
Pat Erley 2016-01-05 16:50:02 -08:00 committed by zlewchan
parent 8d038450d7
commit 08fbf88ab6

View file

@ -847,12 +847,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);
}