Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 1 | #ifndef _EXTRAFUNCTIONS_HEADER |
| 2 | #define _EXTRAFUNCTIONS_HEADER |
| 3 | |
| 4 | int __system(const char *command); |
| 5 | FILE * __popen(const char *program, const char *type); |
| 6 | int __pclose(FILE *iop); |
| 7 | |
| 8 | // Device ID variable / function |
| 9 | char device_id[64]; |
| 10 | void get_device_id(); |
| 11 | static char* copy_sideloaded_package(const char* original_path); |
| 12 | int install_zip_package(const char* zip_path_filename); |
| 13 | |
| 14 | void wipe_dalvik_cache(); |
| 15 | void wipe_battery_stats(); |
| 16 | void wipe_rotate_data(); |
| 17 | |
| 18 | static long tmplog_offset = 0; |
| 19 | |
| 20 | // Battery level |
| 21 | char* print_batt_cap(); |
| 22 | |
| 23 | void update_tz_environment_variables(); |
| 24 | |
| 25 | void fix_perms(); |
| 26 | |
| 27 | 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); |
| 28 | |
| 29 | void install_htc_dumlock(void); |
| 30 | void htc_dumlock_restore_original_boot(void); |
| 31 | void htc_dumlock_reflash_recovery_to_boot(void); |
| 32 | |
| 33 | void check_and_run_script(const char* script_file, const char* display_name); |
| 34 | int check_backup_name(int show_error); |
Dees_Troy | 7d15c25 | 2012-09-05 20:47:21 -0400 | [diff] [blame^] | 35 | void twfinish_recovery(const char *send_intent); |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 36 | |
Dees_Troy | 7d15c25 | 2012-09-05 20:47:21 -0400 | [diff] [blame^] | 37 | #endif // _EXTRAFUNCTIONS_HEADER |