Skip to content

Commit

Permalink
Increase EIO retry count
Browse files Browse the repository at this point in the history
am: c37c5c3

Change-Id: I163541137bf8c421276383855d36ab127d2ddf95
  • Loading branch information
Tianjie Xu authored and android-build-merger committed Jun 24, 2016
2 parents ed4c49c + c37c5c3 commit 6074099
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion recovery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6074099

Please sign in to comment.