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