diff options
author | Tao Bao <tbao@google.com> | 2019-04-16 14:22:25 -0700 |
---|---|---|
committer | Tao Bao <tbao@google.com> | 2019-04-17 14:07:23 -0700 |
commit | c6dc325e88a25201aa3856e6532c3ed14203a376 (patch) | |
tree | a5a2cf98f7b31abbfa6116be2037634a1925b88f /recovery_main.cpp | |
parent | 3aff98aee837ac4a416498cfa26c8cc903e1226e (diff) |
Allow entering rescue mode via recovery UI.
Only enabled on debuggable builds.
Bug: 128415917
Test: Sideload package on taimen.
Test: Choose "Enter rescue" from recovery UI.
Change-Id: I913dbdbcffd3179e6fa72ca862f74ca8f1364b02
Diffstat (limited to 'recovery_main.cpp')
-rw-r--r-- | recovery_main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/recovery_main.cpp b/recovery_main.cpp index 5f3ab76d..38e1db73 100644 --- a/recovery_main.cpp +++ b/recovery_main.cpp @@ -423,6 +423,10 @@ int main(int argc, char** argv) { device->RemoveMenuItemForAction(Device::ENTER_FASTBOOT); } + if (!is_ro_debuggable()) { + device->RemoveMenuItemForAction(Device::ENTER_RESCUE); + } + ui->SetBackground(RecoveryUI::NONE); if (show_text) ui->ShowText(true); |