summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-05-11 19:57:40 +0200
committerandroid-build-merger <android-build-merger@google.com>2018-05-11 19:57:40 +0200
commit20976a0913783e0766b9982aaeb64ebe44f640d5 (patch)
tree7f32a324c4e04b05c1adb0610e24c37fa184d8d3 /recovery.cpp
parentMerge "updater_sample: add HAL compatibility check" am: 563d34f712 (diff)
parentMerge "recovery: Configure device menu based on runtime info." (diff)
downloadandroid_bootable_recovery-20976a0913783e0766b9982aaeb64ebe44f640d5.tar
android_bootable_recovery-20976a0913783e0766b9982aaeb64ebe44f640d5.tar.gz
android_bootable_recovery-20976a0913783e0766b9982aaeb64ebe44f640d5.tar.bz2
android_bootable_recovery-20976a0913783e0766b9982aaeb64ebe44f640d5.tar.lz
android_bootable_recovery-20976a0913783e0766b9982aaeb64ebe44f640d5.tar.xz
android_bootable_recovery-20976a0913783e0766b9982aaeb64ebe44f640d5.tar.zst
android_bootable_recovery-20976a0913783e0766b9982aaeb64ebe44f640d5.zip
Diffstat (limited to 'recovery.cpp')
-rw-r--r--recovery.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/recovery.cpp b/recovery.cpp
index 38784b0b3..f03cec3fe 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -1202,6 +1202,10 @@ int start_recovery(int argc, char** argv) {
}
ui = device->GetUI();
+ if (!has_cache) {
+ device->RemoveMenuItemForAction(Device::WIPE_CACHE);
+ }
+
// Set background string to "installing security update" for security update,
// otherwise set it to "installing system update".
ui->SetSystemUpdateText(security_update);