summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2018-09-20 05:12:02 +0200
committerandroid-build-team Robot <android-build-team-robot@google.com>2018-09-20 05:12:02 +0200
commitdfc9160470759c99f0d92383a4530781df36cab4 (patch)
tree89f50f4dddb92d8aa8a7151e6febed97d80ef0bf
parentSnap for 5015065 from d48a4c128aae7be77ff4d1bd8d6271105155960e to qt-release (diff)
parentMerge "Show 'Enter Fastboot' menu item only if device supports fastbootd" am: 9c675b0964 am: 1c0e985407 (diff)
downloadandroid_bootable_recovery-dfc9160470759c99f0d92383a4530781df36cab4.tar
android_bootable_recovery-dfc9160470759c99f0d92383a4530781df36cab4.tar.gz
android_bootable_recovery-dfc9160470759c99f0d92383a4530781df36cab4.tar.bz2
android_bootable_recovery-dfc9160470759c99f0d92383a4530781df36cab4.tar.lz
android_bootable_recovery-dfc9160470759c99f0d92383a4530781df36cab4.tar.xz
android_bootable_recovery-dfc9160470759c99f0d92383a4530781df36cab4.tar.zst
android_bootable_recovery-dfc9160470759c99f0d92383a4530781df36cab4.zip
-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);