diff options
author | Tao Bao <tbao@google.com> | 2016-05-02 18:37:01 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-05-02 18:37:01 +0200 |
commit | 41584111b56bab9c8503db56d9acc6f9b198f50c (patch) | |
tree | 5ba5eaba201388d083ba09015c592fcf25a1b6a9 | |
parent | Merge "Fix google-explicit-constructor warnings." am: fafa6a6531 am: 77d7cb1d0a (diff) | |
parent | recovery: Always log the update attempt. (diff) | |
download | android_bootable_recovery-41584111b56bab9c8503db56d9acc6f9b198f50c.tar android_bootable_recovery-41584111b56bab9c8503db56d9acc6f9b198f50c.tar.gz android_bootable_recovery-41584111b56bab9c8503db56d9acc6f9b198f50c.tar.bz2 android_bootable_recovery-41584111b56bab9c8503db56d9acc6f9b198f50c.tar.lz android_bootable_recovery-41584111b56bab9c8503db56d9acc6f9b198f50c.tar.xz android_bootable_recovery-41584111b56bab9c8503db56d9acc6f9b198f50c.tar.zst android_bootable_recovery-41584111b56bab9c8503db56d9acc6f9b198f50c.zip |
-rw-r--r-- | recovery.cpp | 4 |
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); |