summaryrefslogtreecommitdiffstats
path: root/extra-functions.h
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-09-11 02:32:10 +0200
committerDees_Troy <dees_troy@teamw.in>2012-09-11 02:32:20 +0200
commit657c30948694632e937da9a4e61219c5e4bf95a0 (patch)
tree169514d80d22ba9bb4ac4378de140a9a9e56620b /extra-functions.h
parentMore Partition Manager functionality (diff)
downloadandroid_bootable_recovery-657c30948694632e937da9a4e61219c5e4bf95a0.tar
android_bootable_recovery-657c30948694632e937da9a4e61219c5e4bf95a0.tar.gz
android_bootable_recovery-657c30948694632e937da9a4e61219c5e4bf95a0.tar.bz2
android_bootable_recovery-657c30948694632e937da9a4e61219c5e4bf95a0.tar.lz
android_bootable_recovery-657c30948694632e937da9a4e61219c5e4bf95a0.tar.xz
android_bootable_recovery-657c30948694632e937da9a4e61219c5e4bf95a0.tar.zst
android_bootable_recovery-657c30948694632e937da9a4e61219c5e4bf95a0.zip
Diffstat (limited to 'extra-functions.h')
-rw-r--r--extra-functions.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/extra-functions.h b/extra-functions.h
index 6d2a085fc..0c702b7da 100644
--- a/extra-functions.h
+++ b/extra-functions.h
@@ -1,15 +1,22 @@
#ifndef _EXTRAFUNCTIONS_HEADER
#define _EXTRAFUNCTIONS_HEADER
+#include "mincrypt/rsa.h"
+#include "minzip/Zip.h"
+
int __system(const char *command);
FILE * __popen(const char *program, const char *type);
int __pclose(FILE *iop);
+// Install Zip functions
+int TWtry_update_binary(const char *path, ZipArchive *zip, int* wipe_cache);
+static RSAPublicKey* TWload_keys(const char* filename, int* numKeys);
+int TWverify_file(const char* path, const RSAPublicKey *pKeys, unsigned int numKeys);
+int TWinstall_zip(const char* path, int* wipe_cache);
+
// Device ID variable / function
extern char device_id[64];
void get_device_id();
-static char* copy_sideloaded_package(const char* original_path);
-int install_zip_package(const char* zip_path_filename);
void wipe_dalvik_cache();
void wipe_battery_stats();