aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTianjie Xu2016-02-05 20:25:58 -0600
committerTianjie Xu2016-03-10 13:50:28 -0600
commitfa12b9737dd4ab36c3b4abaf25eb79f692e6eba6 (patch)
treee05c8721f0961c963391ea5a0cdb56609304eb8e /install.h
parent1731f2980bfadb29105ffd566dd78885889501d8 (diff)
downloadplatform-bootable-recovery-fa12b9737dd4ab36c3b4abaf25eb79f692e6eba6.tar.gz
platform-bootable-recovery-fa12b9737dd4ab36c3b4abaf25eb79f692e6eba6.tar.xz
platform-bootable-recovery-fa12b9737dd4ab36c3b4abaf25eb79f692e6eba6.zip
Reboot and retry on I/O errors
When I/O error happens, reboot and retry installation two times before we abort this OTA update. Bug: 25633753 Change-Id: Iba6d4203a343a725aa625a41d237606980d62f69 (cherry picked from commit 3c62b67faf8a25f1dd1c44dc19759c3997fdfd36)
Diffstat (limited to 'install.h')
-rw-r--r--install.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/install.h b/install.h
index f92f061d..fd08e3c4 100644
--- a/install.h
+++ b/install.h
@@ -23,7 +23,8 @@
23extern "C" { 23extern "C" {
24#endif 24#endif
25 25
26enum { INSTALL_SUCCESS, INSTALL_ERROR, INSTALL_CORRUPT, INSTALL_NONE, INSTALL_SKIPPED }; 26enum { INSTALL_SUCCESS, INSTALL_ERROR, INSTALL_CORRUPT, INSTALL_NONE, INSTALL_SKIPPED,
27 INSTALL_RETRY };
27// Install the package specified by root_path. If INSTALL_SUCCESS is 28// Install the package specified by root_path. If INSTALL_SUCCESS is
28// returned and *wipe_cache is true on exit, caller should wipe the 29// returned and *wipe_cache is true on exit, caller should wipe the
29// cache partition. 30// cache partition.