summaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2016-03-08 08:47:05 +0100
committerandroid-build-merger <android-build-merger@google.com>2016-03-08 08:47:05 +0100
commit6289e79532b6b03c39b0980eeb7a6892371ca328 (patch)
treee9e4968b3c585846d32157cf3dcdbdb866037497 /updater
parentMerge "Restore labels on /postinstall during recovery." into nyc-dev am: 1731f2980b (diff)
parentMerge "Reboot and retry on I/O errors" am: 94dc34148c (diff)
downloadandroid_bootable_recovery-6289e79532b6b03c39b0980eeb7a6892371ca328.tar
android_bootable_recovery-6289e79532b6b03c39b0980eeb7a6892371ca328.tar.gz
android_bootable_recovery-6289e79532b6b03c39b0980eeb7a6892371ca328.tar.bz2
android_bootable_recovery-6289e79532b6b03c39b0980eeb7a6892371ca328.tar.lz
android_bootable_recovery-6289e79532b6b03c39b0980eeb7a6892371ca328.tar.xz
android_bootable_recovery-6289e79532b6b03c39b0980eeb7a6892371ca328.tar.zst
android_bootable_recovery-6289e79532b6b03c39b0980eeb7a6892371ca328.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 0d58f6486..d2a7ac97a 100644
--- a/updater/updater.cpp
+++ b/updater/updater.cpp
@@ -38,6 +38,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) {
@@ -142,6 +144,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");