Fix up libaosprecovery
Change-Id: I5a6d0c3c5f9a3a474464c0f06d6b09045459eebb
diff --git a/adb_install.cpp b/adb_install.cpp
index e10cb4a..c731d1c 100644
--- a/adb_install.cpp
+++ b/adb_install.cpp
@@ -107,11 +107,12 @@
// appearance. (Note that inotify doesn't work with FUSE.)
int result;
int status;
+ int wipe_cache;
bool waited = false;
struct stat st;
for (int i = 0; i < ADB_INSTALL_TIMEOUT; ++i) {
if (waitpid(child, &status, WNOHANG) != 0) {
- result = INSTALL_ERROR;
+ result = -1;
waited = true;
break;
}
@@ -121,13 +122,14 @@
sleep(1);
continue;
} else {
- ui->Print("\nTimed out waiting for package.\n\n", strerror(errno));
- result = INSTALL_ERROR;
+ printf("\nTimed out waiting for package.\n\n", strerror(errno));
+ result = -1;
kill(child, SIGKILL);
break;
}
}
- result = install_package(FUSE_SIDELOAD_HOST_PATHNAME, wipe_cache, install_file, false);
+ printf("FIX ME: need to make adb sideload actually install the file!\n");
+ //result = install_package(FUSE_SIDELOAD_HOST_PATHNAME, wipe_cache, install_file, false);
break;
}