summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-04-30 00:37:05 +0200
committerTao Bao <tbao@google.com>2016-04-30 00:41:25 +0200
commit568700189528c69a6cdd7a246127ce01463e033d (patch)
tree231b692efe6b179f765df0db82b65ec0920cf30b /recovery.cpp
parentMerge "Improve the layout-related comments." into nyc-dev (diff)
downloadandroid_bootable_recovery-568700189528c69a6cdd7a246127ce01463e033d.tar
android_bootable_recovery-568700189528c69a6cdd7a246127ce01463e033d.tar.gz
android_bootable_recovery-568700189528c69a6cdd7a246127ce01463e033d.tar.bz2
android_bootable_recovery-568700189528c69a6cdd7a246127ce01463e033d.tar.lz
android_bootable_recovery-568700189528c69a6cdd7a246127ce01463e033d.tar.xz
android_bootable_recovery-568700189528c69a6cdd7a246127ce01463e033d.tar.zst
android_bootable_recovery-568700189528c69a6cdd7a246127ce01463e033d.zip
Diffstat (limited to 'recovery.cpp')
-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);