diff options
author | Hridya Valsaraju <hridya@google.com> | 2018-09-19 06:42:34 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-09-19 06:42:34 +0200 |
commit | 1c0e98540724f73a0e4c856849b3cb50f865c7ea (patch) | |
tree | 89f50f4dddb92d8aa8a7151e6febed97d80ef0bf | |
parent | Merge "Trigger the logging when prompting for wipe." (diff) | |
parent | Merge "Show 'Enter Fastboot' menu item only if device supports fastbootd" (diff) | |
download | android_bootable_recovery-1c0e98540724f73a0e4c856849b3cb50f865c7ea.tar android_bootable_recovery-1c0e98540724f73a0e4c856849b3cb50f865c7ea.tar.gz android_bootable_recovery-1c0e98540724f73a0e4c856849b3cb50f865c7ea.tar.bz2 android_bootable_recovery-1c0e98540724f73a0e4c856849b3cb50f865c7ea.tar.lz android_bootable_recovery-1c0e98540724f73a0e4c856849b3cb50f865c7ea.tar.xz android_bootable_recovery-1c0e98540724f73a0e4c856849b3cb50f865c7ea.tar.zst android_bootable_recovery-1c0e98540724f73a0e4c856849b3cb50f865c7ea.zip |
-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 c3168fc23..29a5865a2 100644 --- a/recovery_main.cpp +++ b/recovery_main.cpp @@ -425,6 +425,10 @@ int main(int argc, char** argv) { device->RemoveMenuItemForAction(Device::WIPE_CACHE); } + if (!android::base::GetBoolProperty("ro.boot.logical_partitions", false)) { + device->RemoveMenuItemForAction(Device::ENTER_FASTBOOT); + } + ui->SetBackground(RecoveryUI::NONE); if (show_text) ui->ShowText(true); |