Koushik K. Dutta | 6060e5c | 2010-02-11 22:27:06 -0800 | [diff] [blame] | 1 | extern int signature_check_enabled; |
| 2 | extern int script_assert_enabled; |
| 3 | |
| 4 | void |
Koushik K. Dutta | e923487 | 2010-02-12 00:43:24 -0800 | [diff] [blame] | 5 | toggle_signature_check(); |
| 6 | |
| 7 | void |
| 8 | toggle_script_asserts(); |
| 9 | |
| 10 | void |
Koushik K. Dutta | a3c2f73 | 2010-02-19 14:17:22 -0800 | [diff] [blame] | 11 | show_choose_zip_menu(); |
| 12 | |
| 13 | int |
Koushik Dutta | 2f73e58 | 2010-04-18 16:00:21 -0700 | [diff] [blame] | 14 | do_nandroid_backup(const char* backup_name); |
Koushik K. Dutta | bcdd003 | 2010-02-21 21:10:25 -0800 | [diff] [blame] | 15 | |
Koushik K. Dutta | a948308 | 2010-03-07 21:47:41 -0800 | [diff] [blame] | 16 | int |
| 17 | do_nandroid_restore(); |
| 18 | |
Koushik K. Dutta | bcdd003 | 2010-02-21 21:10:25 -0800 | [diff] [blame] | 19 | void |
Koushik Dutta | 89ed0b7 | 2011-10-26 21:25:34 -0700 | [diff] [blame^] | 20 | show_nandroid_restore_menu(const char* path); |
| 21 | |
| 22 | void |
| 23 | show_nandroid_advanced_restore_menu(const char* path); |
Koushik K. Dutta | 0317378 | 2010-02-26 14:14:23 -0800 | [diff] [blame] | 24 | |
| 25 | void |
Koushik K. Dutta | 5899ac9 | 2010-03-19 13:34:36 -0700 | [diff] [blame] | 26 | show_nandroid_menu(); |
| 27 | |
| 28 | void |
| 29 | show_partition_menu(); |
Koushik K. Dutta | a948308 | 2010-03-07 21:47:41 -0800 | [diff] [blame] | 30 | |
| 31 | void |
| 32 | show_choose_zip_menu(); |
Koushik K. Dutta | ea46fe2 | 2010-03-08 02:58:04 -0800 | [diff] [blame] | 33 | |
| 34 | int |
| 35 | install_zip(const char* packagefilepath); |
| 36 | |
Koushik K. Dutta | ee57bbc | 2010-03-12 23:21:12 -0800 | [diff] [blame] | 37 | int |
| 38 | __system(const char *command); |
Koushik K. Dutta | a496b51 | 2010-03-19 14:51:45 -0700 | [diff] [blame] | 39 | |
| 40 | void |
| 41 | show_advanced_menu(); |
Koushik K. Dutta | 68b0190 | 2010-04-01 12:20:39 -0700 | [diff] [blame] | 42 | |
Koushik Dutta | da32b54 | 2011-01-01 17:55:22 -0800 | [diff] [blame] | 43 | int format_unknown_device(const char *device, const char* path, const char *fs_type); |
Koushik Dutta | fd1579b | 2010-05-01 12:46:55 -0700 | [diff] [blame] | 44 | |
| 45 | void |
| 46 | wipe_battery_stats(); |
| 47 | |
Koushik Dutta | 14239d2 | 2010-06-14 15:02:48 -0700 | [diff] [blame] | 48 | void create_fstab(); |
Koushik Dutta | 5460f0c | 2010-12-18 22:37:49 -0800 | [diff] [blame] | 49 | |
Koushik Dutta | 7adeadc | 2011-05-26 11:47:56 -0700 | [diff] [blame] | 50 | int has_datadata(); |
| 51 | |
| 52 | void handle_failure(int ret); |
Tanguy Pruvot | 88efbfb | 2011-05-30 13:27:05 +0200 | [diff] [blame] | 53 | |
| 54 | void process_volumes(); |
| 55 | |
| 56 | int extendedcommand_file_exists(); |
| 57 | |
| 58 | void show_install_update_menu(); |
| 59 | |
| 60 | int confirm_selection(const char* title, const char* confirm); |
| 61 | |
| 62 | int run_and_remove_extendedcommand(); |