diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-09-19 06:26:31 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-09-19 06:26:31 +0200 |
commit | 9c675b096492ec9b5cca4bf98138629aeb5e120f (patch) | |
tree | 89f50f4dddb92d8aa8a7151e6febed97d80ef0bf | |
parent | Merge "Trigger the logging when prompting for wipe." (diff) | |
parent | Show 'Enter Fastboot' menu item only if device supports fastbootd (diff) | |
download | android_bootable_recovery-9c675b096492ec9b5cca4bf98138629aeb5e120f.tar android_bootable_recovery-9c675b096492ec9b5cca4bf98138629aeb5e120f.tar.gz android_bootable_recovery-9c675b096492ec9b5cca4bf98138629aeb5e120f.tar.bz2 android_bootable_recovery-9c675b096492ec9b5cca4bf98138629aeb5e120f.tar.lz android_bootable_recovery-9c675b096492ec9b5cca4bf98138629aeb5e120f.tar.xz android_bootable_recovery-9c675b096492ec9b5cca4bf98138629aeb5e120f.tar.zst android_bootable_recovery-9c675b096492ec9b5cca4bf98138629aeb5e120f.zip |
Diffstat (limited to '')
-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); |