summaryrefslogtreecommitdiffstats
path: root/recovery_main.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2019-04-16 23:22:25 +0200
committerTao Bao <tbao@google.com>2019-04-26 21:20:03 +0200
commit378bfbfc5c6f268c16b7f1a254de0ed36da52012 (patch)
treef9aaf55a643d86f6aed6846fd5649c0bb7817173 /recovery_main.cpp
parentImport translations. DO NOT MERGE (diff)
downloadandroid_bootable_recovery-378bfbfc5c6f268c16b7f1a254de0ed36da52012.tar
android_bootable_recovery-378bfbfc5c6f268c16b7f1a254de0ed36da52012.tar.gz
android_bootable_recovery-378bfbfc5c6f268c16b7f1a254de0ed36da52012.tar.bz2
android_bootable_recovery-378bfbfc5c6f268c16b7f1a254de0ed36da52012.tar.lz
android_bootable_recovery-378bfbfc5c6f268c16b7f1a254de0ed36da52012.tar.xz
android_bootable_recovery-378bfbfc5c6f268c16b7f1a254de0ed36da52012.tar.zst
android_bootable_recovery-378bfbfc5c6f268c16b7f1a254de0ed36da52012.zip
Diffstat (limited to 'recovery_main.cpp')
-rw-r--r--recovery_main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/recovery_main.cpp b/recovery_main.cpp
index 5f3ab76dd..38e1db73b 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);