diff options
author | Hridya Valsaraju <hridya@google.com> | 2018-09-19 06:53:27 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-09-19 06:53:27 +0200 |
commit | 6fcfbb46f8e32385ef156e84543912ed0fa758b8 (patch) | |
tree | 89f50f4dddb92d8aa8a7151e6febed97d80ef0bf | |
parent | Merge "Trigger the logging when prompting for wipe." am: 49dc0fed26 am: cda59a70f2 (diff) | |
parent | Merge "Show 'Enter Fastboot' menu item only if device supports fastbootd" am: 9c675b0964 (diff) | |
download | android_bootable_recovery-6fcfbb46f8e32385ef156e84543912ed0fa758b8.tar android_bootable_recovery-6fcfbb46f8e32385ef156e84543912ed0fa758b8.tar.gz android_bootable_recovery-6fcfbb46f8e32385ef156e84543912ed0fa758b8.tar.bz2 android_bootable_recovery-6fcfbb46f8e32385ef156e84543912ed0fa758b8.tar.lz android_bootable_recovery-6fcfbb46f8e32385ef156e84543912ed0fa758b8.tar.xz android_bootable_recovery-6fcfbb46f8e32385ef156e84543912ed0fa758b8.tar.zst android_bootable_recovery-6fcfbb46f8e32385ef156e84543912ed0fa758b8.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); |