diff options
author | Tao Bao <tbao@google.com> | 2018-05-11 19:34:01 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-05-11 19:34:01 +0200 |
commit | e498ef2f034cf223b06287b904d1a7d61faba40a (patch) | |
tree | 9ddd68a37808e4a80e02fade1b24c9db1b20075d /recovery.cpp | |
parent | Merge "updater_sample: add HAL compatibility check" (diff) | |
parent | recovery: Configure device menu based on runtime info. (diff) | |
download | android_bootable_recovery-e498ef2f034cf223b06287b904d1a7d61faba40a.tar android_bootable_recovery-e498ef2f034cf223b06287b904d1a7d61faba40a.tar.gz android_bootable_recovery-e498ef2f034cf223b06287b904d1a7d61faba40a.tar.bz2 android_bootable_recovery-e498ef2f034cf223b06287b904d1a7d61faba40a.tar.lz android_bootable_recovery-e498ef2f034cf223b06287b904d1a7d61faba40a.tar.xz android_bootable_recovery-e498ef2f034cf223b06287b904d1a7d61faba40a.tar.zst android_bootable_recovery-e498ef2f034cf223b06287b904d1a7d61faba40a.zip |
Diffstat (limited to 'recovery.cpp')
-rw-r--r-- | recovery.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/recovery.cpp b/recovery.cpp index b11298fb4..e427998a8 100644 --- a/recovery.cpp +++ b/recovery.cpp @@ -1182,6 +1182,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); |