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.
This commit is contained in:
Dees_Troy
2012-09-17 16:06:12 -04:00
parent b9d88acdc0
commit 43d8b00770
10 changed files with 773 additions and 128 deletions
+3 -1
View File
@@ -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 @@ apply_from_adb(RecoveryUI* ui_, int* wipe_cache, const char* install_file) {
}
return INSTALL_ERROR;
}
return install_package(ADB_SIDELOAD_FILENAME, wipe_cache, install_file);
return TWinstall_zip(ADB_SIDELOAD_FILENAME, wipe_cache);
}