summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-05-02 18:32:41 +0200
committerandroid-build-merger <android-build-merger@google.com>2016-05-02 18:32:41 +0200
commitf13662a349cd625504bacfe82a9696a3ead726ec (patch)
treec2f7c76d98b09c593903f1d14101745471e1b6e6
parentMerge "Improve the layout-related comments." into nyc-dev (diff)
parentrecovery: Always log the update attempt. (diff)
downloadandroid_bootable_recovery-f13662a349cd625504bacfe82a9696a3ead726ec.tar
android_bootable_recovery-f13662a349cd625504bacfe82a9696a3ead726ec.tar.gz
android_bootable_recovery-f13662a349cd625504bacfe82a9696a3ead726ec.tar.bz2
android_bootable_recovery-f13662a349cd625504bacfe82a9696a3ead726ec.tar.lz
android_bootable_recovery-f13662a349cd625504bacfe82a9696a3ead726ec.tar.xz
android_bootable_recovery-f13662a349cd625504bacfe82a9696a3ead726ec.tar.zst
android_bootable_recovery-f13662a349cd625504bacfe82a9696a3ead726ec.zip
Diffstat (limited to '')
-rw-r--r--recovery.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/recovery.cpp b/recovery.cpp
index dbdc1fbd6..70986e73d 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -1442,6 +1442,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);