summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-05-02 18:41:15 +0200
committerandroid-build-merger <android-build-merger@google.com>2016-05-02 18:41:15 +0200
commit1ed3a13e7970e3c25a0ed7d31e70138b508ee0a2 (patch)
treeb63f69256e3d430afa1f1451f5c82eb871fe8b33
parentMerge "Fix google-explicit-constructor warnings." am: fafa6a6531 am: 77d7cb1d0a am: 8d3b85a320 (diff)
parentrecovery: Always log the update attempt. am: 5687001895 (diff)
downloadandroid_bootable_recovery-1ed3a13e7970e3c25a0ed7d31e70138b508ee0a2.tar
android_bootable_recovery-1ed3a13e7970e3c25a0ed7d31e70138b508ee0a2.tar.gz
android_bootable_recovery-1ed3a13e7970e3c25a0ed7d31e70138b508ee0a2.tar.bz2
android_bootable_recovery-1ed3a13e7970e3c25a0ed7d31e70138b508ee0a2.tar.lz
android_bootable_recovery-1ed3a13e7970e3c25a0ed7d31e70138b508ee0a2.tar.xz
android_bootable_recovery-1ed3a13e7970e3c25a0ed7d31e70138b508ee0a2.tar.zst
android_bootable_recovery-1ed3a13e7970e3c25a0ed7d31e70138b508ee0a2.zip
-rw-r--r--recovery.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/recovery.cpp b/recovery.cpp
index f913dc5b4..cf368e4e9 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -1425,6 +1425,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);