summaryrefslogtreecommitdiffstats
path: root/gui/gui-functions.h
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-09-06 02:47:21 +0200
committerDees_Troy <dees_troy@teamw.in>2012-09-06 02:47:21 +0200
commit7d15c25b3aee38a84987513daf79055bd511d9d0 (patch)
treee736f89ca2161ffbef750e238193d83f637b97b8 /gui/gui-functions.h
parentTWRP-ify AOSP code (diff)
downloadandroid_bootable_recovery-7d15c25b3aee38a84987513daf79055bd511d9d0.tar
android_bootable_recovery-7d15c25b3aee38a84987513daf79055bd511d9d0.tar.gz
android_bootable_recovery-7d15c25b3aee38a84987513daf79055bd511d9d0.tar.bz2
android_bootable_recovery-7d15c25b3aee38a84987513daf79055bd511d9d0.tar.lz
android_bootable_recovery-7d15c25b3aee38a84987513daf79055bd511d9d0.tar.xz
android_bootable_recovery-7d15c25b3aee38a84987513daf79055bd511d9d0.tar.zst
android_bootable_recovery-7d15c25b3aee38a84987513daf79055bd511d9d0.zip
Diffstat (limited to '')
-rw-r--r--gui/gui-functions.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/gui/gui-functions.h b/gui/gui-functions.h
new file mode 100644
index 000000000..6bbf5ac4d
--- /dev/null
+++ b/gui/gui-functions.h
@@ -0,0 +1,36 @@
+#ifndef _EXTRAFUNCTIONS_HEADER
+#define _EXTRAFUNCTIONS_HEADER
+
+int __system(const char *command);
+FILE * __popen(const char *program, const char *type);
+int __pclose(FILE *iop);
+
+// Device ID variable / function
+//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();
+void wipe_rotate_data();
+
+static long tmplog_offset = 0;
+
+// Battery level
+char* print_batt_cap();
+
+void update_tz_environment_variables();
+
+void fix_perms();
+
+void run_script(const char *str1, const char *str2, const char *str3, const char *str4, const char *str5, const char *str6, const char *str7, int request_confirm);
+
+void install_htc_dumlock(void);
+void htc_dumlock_restore_original_boot(void);
+void htc_dumlock_reflash_recovery_to_boot(void);
+
+void check_and_run_script(const char* script_file, const char* display_name);
+int check_backup_name(int show_error);
+
+#endif // _EXTRAFUNCTIONS_HEADER