summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2018-09-18 05:04:41 +0200
committerandroid-build-team Robot <android-build-team-robot@google.com>2018-09-18 05:04:41 +0200
commite0541c20df3f392ab36fa8f46be427aaf76a957c (patch)
tree0b8ed0d96b48be0b53e2c6ae150b95d3f9f0f7cb
parentSnap for 5007879 from 3d82f2ee239db7344335a6ab980f25050724e672 to qt-release (diff)
parentMerge "Trigger the logging when prompting for wipe." am: 49dc0fed26 am: cda59a70f2 (diff)
downloadandroid_bootable_recovery-e0541c20df3f392ab36fa8f46be427aaf76a957c.tar
android_bootable_recovery-e0541c20df3f392ab36fa8f46be427aaf76a957c.tar.gz
android_bootable_recovery-e0541c20df3f392ab36fa8f46be427aaf76a957c.tar.bz2
android_bootable_recovery-e0541c20df3f392ab36fa8f46be427aaf76a957c.tar.lz
android_bootable_recovery-e0541c20df3f392ab36fa8f46be427aaf76a957c.tar.xz
android_bootable_recovery-e0541c20df3f392ab36fa8f46be427aaf76a957c.tar.zst
android_bootable_recovery-e0541c20df3f392ab36fa8f46be427aaf76a957c.zip
-rw-r--r--recovery.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/recovery.cpp b/recovery.cpp
index 6248cf70f..7cc344bce 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -1196,6 +1196,9 @@ Device::BuiltinAction start_recovery(Device* device, const std::vector<std::stri
status = INSTALL_ERROR;
}
} else if (should_prompt_and_wipe_data) {
+ // Trigger the logging to capture the cause, even if user chooses to not wipe data.
+ modified_flash = true;
+
ui->ShowText(true);
ui->SetBackground(RecoveryUI::ERROR);
status = prompt_and_wipe_data(device);