summaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2016-03-08 00:47:14 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-03-08 00:47:14 +0100
commit94dc34148c117fd3cfb442a348a69dbbb676a5c5 (patch)
treec382122e7824b324082f03b5177e2997a7e29893 /updater
parentMerge "recovery: Handle devices without /cache partition." (diff)
parentReboot and retry on I/O errors (diff)
downloadandroid_bootable_recovery-94dc34148c117fd3cfb442a348a69dbbb676a5c5.tar
android_bootable_recovery-94dc34148c117fd3cfb442a348a69dbbb676a5c5.tar.gz
android_bootable_recovery-94dc34148c117fd3cfb442a348a69dbbb676a5c5.tar.bz2
android_bootable_recovery-94dc34148c117fd3cfb442a348a69dbbb676a5c5.tar.lz
android_bootable_recovery-94dc34148c117fd3cfb442a348a69dbbb676a5c5.tar.xz
android_bootable_recovery-94dc34148c117fd3cfb442a348a69dbbb676a5c5.tar.zst
android_bootable_recovery-94dc34148c117fd3cfb442a348a69dbbb676a5c5.zip
Diffstat (limited to 'updater')
-rw-r--r--updater/updater.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/updater/updater.cpp b/updater/updater.cpp
index efb4a8cec..1693fa1db 100644
--- a/updater/updater.cpp
+++ b/updater/updater.cpp
@@ -36,6 +36,8 @@
// (Note it's "updateR-script", not the older "update-script".)
#define SCRIPT_NAME "META-INF/com/google/android/updater-script"
+extern bool have_eio_error;
+
struct selabel_handle *sehandle;
int main(int argc, char** argv) {
@@ -141,6 +143,11 @@ int main(int argc, char** argv) {
state.errmsg = NULL;
char* result = Evaluate(&state, root);
+
+ if (have_eio_error) {
+ fprintf(cmd_pipe, "retry_update\n");
+ }
+
if (result == NULL) {
if (state.errmsg == NULL) {
printf("script aborted (no error message)\n");