Merge "Show 'Enter Fastboot' menu item only if device supports fastbootd" am: 9c675b0964 am: 1c0e985407
am: 144ea11b93
Change-Id: I1970602c8351013b72bb514df5f08a236419786f
diff --git a/recovery_main.cpp b/recovery_main.cpp
index c3168fc..29a5865 100644
--- a/recovery_main.cpp
+++ b/recovery_main.cpp
@@ -425,6 +425,10 @@
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);