93 lines
2.3 KiB
C
93 lines
2.3 KiB
C
#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
|
|
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);
|
|
|
|
// Menus
|
|
void install_zip_menu(int pIdx);
|
|
void advanced_menu();
|
|
|
|
void show_fake_main_menu();
|
|
|
|
void usb_storage_toggle();
|
|
void wipe_dalvik_cache();
|
|
void wipe_battery_stats();
|
|
void wipe_rotate_data();
|
|
int format_data_media();
|
|
|
|
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();
|
|
extern char time_zone_offset_string[5];
|
|
extern char time_zone_dst_string[10];
|
|
void time_zone_dst();
|
|
void update_tz_environment_variables();
|
|
|
|
// Menu Stuff
|
|
#define GO_HOME 69
|
|
extern int go_home;
|
|
extern int go_menu;
|
|
extern int go_restart;
|
|
extern int go_reboot;
|
|
extern int menu_loc_idx;
|
|
extern 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();
|
|
extern int sysIsMounted;
|
|
extern int datIsMounted;
|
|
extern int cacIsMounted;
|
|
extern int sdcIsMounted;
|
|
extern int sdeIsMounted;
|
|
extern char multi_zip_array[10][255];
|
|
extern int multi_zip_index;
|
|
|
|
extern 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);
|
|
|
|
#endif // _EXTRAFUNCTIONS_HEADER
|