aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTianjie Xu2016-04-30 13:49:59 -0500
committerTianjie Xu2016-05-20 15:56:53 -0500
commit162558382b768a4120b3e41090a4c7b53f11469a (patch)
tree7e0d268233fc6bea07a361cf6913fc3a5e524063 /install.h
parentdd874b1c87eb04f28db0db2629df0adde568a74c (diff)
downloadplatform-bootable-recovery-162558382b768a4120b3e41090a4c7b53f11469a.tar.gz
platform-bootable-recovery-162558382b768a4120b3e41090a4c7b53f11469a.tar.xz
platform-bootable-recovery-162558382b768a4120b3e41090a4c7b53f11469a.zip
Allow recovery to return error codes
Write error code, cause code, and retry count into last_install. So we can have more information about the reason of a failed OTA. Example of new last_install: @/cache/recovery/block.map package name 0 install result retry: 1 retry count (new) error: 30 error code (new) cause: 12 error cause (new) Details in: go/android-ota-errorcode Bug: 28471955 Change-Id: I00e7153c821e7355c1be81a86c7f228108f3dc37
Diffstat (limited to 'install.h')
-rw-r--r--install.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/install.h b/install.h
index fd08e3c4..66764f54 100644
--- a/install.h
+++ b/install.h
@@ -28,8 +28,8 @@ enum { INSTALL_SUCCESS, INSTALL_ERROR, INSTALL_CORRUPT, INSTALL_NONE, INSTALL_SK
28// Install the package specified by root_path. If INSTALL_SUCCESS is 28// Install the package specified by root_path. If INSTALL_SUCCESS is
29// 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
30// cache partition. 30// cache partition.
31int install_package(const char* root_path, bool* wipe_cache, 31int install_package(const char* root_path, bool* wipe_cache, const char* install_file,
32 const char* install_file, bool needs_mount); 32 bool needs_mount, int retry_count);
33 33
34#ifdef __cplusplus 34#ifdef __cplusplus
35} 35}