Loading default_recovery_ui.c +2 −1 Original line number Diff line number Diff line Loading @@ -23,7 +23,8 @@ char* MENU_HEADERS[] = { NULL }; char* MENU_ITEMS[] = { "reboot system now", "install zip", "install zip from sdcard", "install zip from sideload", "wipe data/factory reset", "wipe cache partition", "backup and restore", Loading extendedcommands.c +3 −9 Original line number Diff line number Diff line Loading @@ -41,7 +41,6 @@ #include "bmlutils/bmlutils.h" #include "cutils/android_reboot.h" #include "adb_install.h" int signature_check_enabled = 1; int script_assert_enabled = 1; Loading Loading @@ -112,20 +111,18 @@ int install_zip(const char* packagefilepath) #define ITEM_CHOOSE_ZIP 0 #define ITEM_APPLY_SDCARD 1 #define ITEM_APPLY_SIDELOAD 2 #define ITEM_SIG_CHECK 3 #define ITEM_CHOOSE_ZIP_INT 4 #define ITEM_SIG_CHECK 2 #define ITEM_CHOOSE_ZIP_INT 3 void show_install_update_menu() { static char* headers[] = { "Apply update from .zip file", static char* headers[] = { "Apply update from .zip file on SD card", "", NULL }; char* install_menu_items[] = { "choose zip from sdcard", "apply /sdcard/update.zip", "install zip from sideload", "toggle signature verification", NULL, NULL }; Loading Loading @@ -157,9 +154,6 @@ void show_install_update_menu() case ITEM_CHOOSE_ZIP: show_choose_zip_menu("/sdcard/"); break; case ITEM_APPLY_SIDELOAD: apply_from_adb(); break; case ITEM_CHOOSE_ZIP_INT: if (other_sd != NULL) show_choose_zip_menu(other_sd); Loading recovery.c +5 −0 Original line number Diff line number Diff line Loading @@ -41,6 +41,7 @@ #include "roots.h" #include "recovery_ui.h" #include "adb_install.h" #include "minadbd/adb.h" #include "extendedcommands.h" Loading Loading @@ -722,6 +723,10 @@ prompt_and_wait() { show_install_update_menu(); break; case ITEM_APPLY_SIDELOAD: apply_from_adb(); break; case ITEM_NANDROID: show_nandroid_menu(); break; Loading recovery_ui.h +7 −6 Original line number Diff line number Diff line Loading @@ -75,14 +75,15 @@ int device_wipe_data(); #define ITEM_REBOOT 0 #define ITEM_APPLY_EXT 1 #define ITEM_APPLY_SDCARD 1 // historical synonym for ITEM_APPLY_EXT #define ITEM_WIPE_DATA 2 #define ITEM_WIPE_CACHE 3 #define ITEM_APPLY_SIDELOAD 2 #define ITEM_WIPE_DATA 3 #define ITEM_WIPE_CACHE 4 // unused in cwr #define ITEM_APPLY_CACHE 4 #define ITEM_NANDROID 4 #define ITEM_PARTITION 5 #define ITEM_ADVANCED 6 #define ITEM_POWEROFF 7 #define ITEM_NANDROID 5 #define ITEM_PARTITION 6 #define ITEM_ADVANCED 7 #define ITEM_POWEROFF 8 // Header text to display above the main menu. extern char* MENU_HEADERS[]; Loading Loading
default_recovery_ui.c +2 −1 Original line number Diff line number Diff line Loading @@ -23,7 +23,8 @@ char* MENU_HEADERS[] = { NULL }; char* MENU_ITEMS[] = { "reboot system now", "install zip", "install zip from sdcard", "install zip from sideload", "wipe data/factory reset", "wipe cache partition", "backup and restore", Loading
extendedcommands.c +3 −9 Original line number Diff line number Diff line Loading @@ -41,7 +41,6 @@ #include "bmlutils/bmlutils.h" #include "cutils/android_reboot.h" #include "adb_install.h" int signature_check_enabled = 1; int script_assert_enabled = 1; Loading Loading @@ -112,20 +111,18 @@ int install_zip(const char* packagefilepath) #define ITEM_CHOOSE_ZIP 0 #define ITEM_APPLY_SDCARD 1 #define ITEM_APPLY_SIDELOAD 2 #define ITEM_SIG_CHECK 3 #define ITEM_CHOOSE_ZIP_INT 4 #define ITEM_SIG_CHECK 2 #define ITEM_CHOOSE_ZIP_INT 3 void show_install_update_menu() { static char* headers[] = { "Apply update from .zip file", static char* headers[] = { "Apply update from .zip file on SD card", "", NULL }; char* install_menu_items[] = { "choose zip from sdcard", "apply /sdcard/update.zip", "install zip from sideload", "toggle signature verification", NULL, NULL }; Loading Loading @@ -157,9 +154,6 @@ void show_install_update_menu() case ITEM_CHOOSE_ZIP: show_choose_zip_menu("/sdcard/"); break; case ITEM_APPLY_SIDELOAD: apply_from_adb(); break; case ITEM_CHOOSE_ZIP_INT: if (other_sd != NULL) show_choose_zip_menu(other_sd); Loading
recovery.c +5 −0 Original line number Diff line number Diff line Loading @@ -41,6 +41,7 @@ #include "roots.h" #include "recovery_ui.h" #include "adb_install.h" #include "minadbd/adb.h" #include "extendedcommands.h" Loading Loading @@ -722,6 +723,10 @@ prompt_and_wait() { show_install_update_menu(); break; case ITEM_APPLY_SIDELOAD: apply_from_adb(); break; case ITEM_NANDROID: show_nandroid_menu(); break; Loading
recovery_ui.h +7 −6 Original line number Diff line number Diff line Loading @@ -75,14 +75,15 @@ int device_wipe_data(); #define ITEM_REBOOT 0 #define ITEM_APPLY_EXT 1 #define ITEM_APPLY_SDCARD 1 // historical synonym for ITEM_APPLY_EXT #define ITEM_WIPE_DATA 2 #define ITEM_WIPE_CACHE 3 #define ITEM_APPLY_SIDELOAD 2 #define ITEM_WIPE_DATA 3 #define ITEM_WIPE_CACHE 4 // unused in cwr #define ITEM_APPLY_CACHE 4 #define ITEM_NANDROID 4 #define ITEM_PARTITION 5 #define ITEM_ADVANCED 6 #define ITEM_POWEROFF 7 #define ITEM_NANDROID 5 #define ITEM_PARTITION 6 #define ITEM_ADVANCED 7 #define ITEM_POWEROFF 8 // Header text to display above the main menu. extern char* MENU_HEADERS[]; Loading