diff options
author | Tao Bao <tbao@google.com> | 2019-04-19 00:05:29 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-04-19 00:05:29 +0200 |
commit | bca2ceb7a70d238549b7687a39f9584fb02b4b85 (patch) | |
tree | 1050e5551c48dc054152393b4c501fd094899ae8 /recovery_main.cpp | |
parent | Merge "Move load & restore logs to logging.cpp" (diff) | |
parent | Merge "Allow entering rescue mode via recovery UI." (diff) | |
download | android_bootable_recovery-bca2ceb7a70d238549b7687a39f9584fb02b4b85.tar android_bootable_recovery-bca2ceb7a70d238549b7687a39f9584fb02b4b85.tar.gz android_bootable_recovery-bca2ceb7a70d238549b7687a39f9584fb02b4b85.tar.bz2 android_bootable_recovery-bca2ceb7a70d238549b7687a39f9584fb02b4b85.tar.lz android_bootable_recovery-bca2ceb7a70d238549b7687a39f9584fb02b4b85.tar.xz android_bootable_recovery-bca2ceb7a70d238549b7687a39f9584fb02b4b85.tar.zst android_bootable_recovery-bca2ceb7a70d238549b7687a39f9584fb02b4b85.zip |
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 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); |