summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2016-06-24 02:26:51 +0200
committerandroid-build-merger <android-build-merger@google.com>2016-06-24 02:26:51 +0200
commit6074099cb91e017672bd827a9711b0bfb30ca4e1 (patch)
treeaf4cc7608306babfd7982295f77e051536d224bf
parentMerge "Verify wipe package when wiping A/B device in recovery." into nyc-mr1-dev (diff)
parentIncrease EIO retry count (diff)
downloadandroid_bootable_recovery-6074099cb91e017672bd827a9711b0bfb30ca4e1.tar
android_bootable_recovery-6074099cb91e017672bd827a9711b0bfb30ca4e1.tar.gz
android_bootable_recovery-6074099cb91e017672bd827a9711b0bfb30ca4e1.tar.bz2
android_bootable_recovery-6074099cb91e017672bd827a9711b0bfb30ca4e1.tar.lz
android_bootable_recovery-6074099cb91e017672bd827a9711b0bfb30ca4e1.tar.xz
android_bootable_recovery-6074099cb91e017672bd827a9711b0bfb30ca4e1.tar.zst
android_bootable_recovery-6074099cb91e017672bd827a9711b0bfb30ca4e1.zip
-rw-r--r--recovery.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/recovery.cpp b/recovery.cpp
index 6df9b6fae..98148af0a 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -105,7 +105,8 @@ static const char *TEMPORARY_INSTALL_FILE = "/tmp/last_install";
static const char *LAST_KMSG_FILE = "/cache/recovery/last_kmsg";
static const char *LAST_LOG_FILE = "/cache/recovery/last_log";
static const int KEEP_LOG_COUNT = 10;
-static const int EIO_RETRY_COUNT = 2;
+// We will try to apply the update package 5 times at most in case of an I/O error.
+static const int EIO_RETRY_COUNT = 4;
static const int BATTERY_READ_TIMEOUT_IN_SEC = 10;
// GmsCore enters recovery mode to install package when having enough battery
// percentage. Normally, the threshold is 40% without charger and 20% with charger.