summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2016-05-03 07:40:23 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-05-03 07:40:23 +0200
commitecd6e2af5060ba3f7d5c978be6d617d1242f231c (patch)
treeccaaa366f6b536cb7cbf287f1b1392114c3d0b0f
parentMerge "Fix google-explicit-constructor warnings." (diff)
parentrecovery: Always log the update attempt. (diff)
downloadandroid_bootable_recovery-ecd6e2af5060ba3f7d5c978be6d617d1242f231c.tar
android_bootable_recovery-ecd6e2af5060ba3f7d5c978be6d617d1242f231c.tar.gz
android_bootable_recovery-ecd6e2af5060ba3f7d5c978be6d617d1242f231c.tar.bz2
android_bootable_recovery-ecd6e2af5060ba3f7d5c978be6d617d1242f231c.tar.lz
android_bootable_recovery-ecd6e2af5060ba3f7d5c978be6d617d1242f231c.tar.xz
android_bootable_recovery-ecd6e2af5060ba3f7d5c978be6d617d1242f231c.tar.zst
android_bootable_recovery-ecd6e2af5060ba3f7d5c978be6d617d1242f231c.zip
-rw-r--r--recovery.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/recovery.cpp b/recovery.cpp
index 20c6ca111..4a3c7ef1a 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -1365,6 +1365,10 @@ int main(int argc, char **argv) {
int status = INSTALL_SUCCESS;
if (update_package != NULL) {
+ // It's not entirely true that we will modify the flash. But we want
+ // to log the update attempt since update_package is non-NULL.
+ modified_flash = true;
+
if (!is_battery_ok()) {
ui->Print("battery capacity is not enough for installing package, needed is %d%%\n",
BATTERY_OK_PERCENTAGE);