forked from TeamWin/Team-Win-Recovery-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
extra-functions.h
86 lines (65 loc) · 1.97 KB
/
extra-functions.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
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);
// Menus
void install_zip_menu(int pIdx);
void advanced_menu();
void show_fake_main_menu();
void usb_storage_toggle();
void wipe_dalvik_cache();
void format_menu();
void main_wipe_menu();
// Format Menu Stuff
int erase_volume(const char *volume);
static long tmplog_offset = 0;
// Battery level
char* print_batt_cap();
void confirm_format(char* volume_name, char* volume_path);
int get_menu_selection(char** headers, char** items, int menu_only, int initial_selection);
char* zip_verify();
char* reboot_after_flash();
char* save_reboot_setting();
void all_settings_menu(int pIdx);
void time_zone_menu();
void time_zone_minus();
void time_zone_plus();
void time_zone_offset();
char time_zone_offset_string[5];
char time_zone_dst_string[10];
void time_zone_dst();
void update_tz_environment_variables();
// Menu Stuff
#define GO_HOME 69
int go_home;
int go_menu;
int go_restart;
int go_reboot;
int menu_loc_idx;
int menu_loc[255];
void inc_menu_loc(int bInt);
void dec_menu_loc();
char* isMounted(int mInt);
void mount_menu(int pIdx);
void chkMounts();
int sysIsMounted;
int datIsMounted;
int cacIsMounted;
int sdcIsMounted;
int sdeIsMounted;
char multi_zip_array[10][255];
int multi_zip_index;
int get_new_zip_dir;
char* checkTheme(int tw_theme);
void fix_perms();
char* toggle_spam();
static void show_menu_partition();
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);