summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2018-09-19 06:26:31 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-09-19 06:26:31 +0200
commit9c675b096492ec9b5cca4bf98138629aeb5e120f (patch)
tree89f50f4dddb92d8aa8a7151e6febed97d80ef0bf
parentMerge "Trigger the logging when prompting for wipe." (diff)
parentShow 'Enter Fastboot' menu item only if device supports fastbootd (diff)
downloadandroid_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.cpp4
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);