diff options
author | Tianjie Xu <xunchang@google.com> | 2016-06-24 02:26:51 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-06-24 02:26:51 +0200 |
commit | 6074099cb91e017672bd827a9711b0bfb30ca4e1 (patch) | |
tree | af4cc7608306babfd7982295f77e051536d224bf | |
parent | Merge "Verify wipe package when wiping A/B device in recovery." into nyc-mr1-dev (diff) | |
parent | Increase EIO retry count (diff) | |
download | android_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.cpp | 3 |
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. |