From daa301e3bd0a91d7761309048e857571075860de Mon Sep 17 00:00:00 2001 From: Hridya Valsaraju Date: Tue, 18 Sep 2018 14:48:01 -0700 Subject: Show 'Enter Fastboot' menu item only if device supports fastbootd Bug: 112664456 Test: Manual, 'Enter Fastboot' option not visible. Change-Id: I2642391a69a11cd0496c1287130b3b0291c93232 --- recovery_main.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.3