Update backup and restore code, adb sideload
Fixed a problem with using make_ext4fs by making its lib
a dynamic lib.
Added ADB sideload zip install feature - no way to cancel it yet.
Improve backup and restore code.
diff --git a/adb_install.cpp b/adb_install.cpp
index a226ea5..12bce1c 100644
--- a/adb_install.cpp
+++ b/adb_install.cpp
@@ -32,6 +32,8 @@
#include "adb_install.h"
extern "C" {
#include "minadbd/adb.h"
+#include "twinstall.h"
+int TWinstall_zip(const char* path, int* wipe_cache);
}
static RecoveryUI* ui = NULL;
@@ -106,5 +108,5 @@
}
return INSTALL_ERROR;
}
- return install_package(ADB_SIDELOAD_FILENAME, wipe_cache, install_file);
+ return TWinstall_zip(ADB_SIDELOAD_FILENAME, wipe_cache);
}