Skip to content
Browse files

added confirm on selecting backup; added reboot options

  • Loading branch information...
1 parent 1ffc6e7 commit 509671a6cd45d3b21150209dc7bae2f42d2621b1 @DooMLoRD committed Nov 11, 2011
View
5 bootable/recovery/extendedcommands.c
@@ -861,7 +861,9 @@ void show_nandroid_menu()
{
case 0:
{
- char backup_path[PATH_MAX];
+ if (confirm_selection("Confirm BACKUP?", "Yes - Start Backup NOW!"))
+ {
+ char backup_path[PATH_MAX];
time_t t = time(NULL);
struct tm *tmp = localtime(&t);
if (tmp == NULL)
@@ -875,6 +877,7 @@ void show_nandroid_menu()
strftime(backup_path, sizeof(backup_path), "/sdcard/clockworkmod/backup/%F.%H.%M.%S", tmp);
}
nandroid_backup(backup_path);
+ }
}
break;
case 1:
View
37 bootable/recovery/recovery.c
@@ -705,9 +705,40 @@ prompt_and_wait() {
switch (chosen_item) {
case ITEM_REBOOT:
- poweroff=0;
- return;
-
+ {
+
+ static char* headers[] = { "Reboot Options",
+ "",
+ NULL
+ };
+
+ static char* list[] = { "reboot system now",
+ "reboot recovery",
+ "reboot into fastboot mode",
+ NULL
+ };
+
+ int chosen_item = get_menu_selection(headers, list, 0, 0);
+ switch (chosen_item)
+ {
+ case 0:
+ {
+ poweroff=0;
+ return;
+ }
+ case 1:
+ {
+ __system("reboot recovery");
+ break;
+ }
+ case 2:
+ {
+ __system("reboot bootloader");
+ break;
+ }
+ }
+ break;
+ }
case ITEM_WIPE_DATA:
wipe_data(ui_text_visible());
if (!ui_text_visible()) return;
View
4 device/semc/msm7x30-common/recovery-anzu/recovery_ui.c
@@ -21,11 +21,11 @@
#include "extendedcommands.h"
//char* MENU_HEADERS[] = { NULL };
-char* MENU_HEADERS[] = { "Xperia Arc [v02]",
+char* MENU_HEADERS[] = { "Xperia Arc [v03]",
"",
NULL };
-char* MENU_ITEMS[] = { "reboot system now",
+char* MENU_ITEMS[] = { "reboot options",
"install zip from sdcard",
"apply /sdcard/update.zip",
"factory reset",
View
4 device/semc/msm7x30-common/recovery-zeus/recovery_ui.c
@@ -21,11 +21,11 @@
#include "extendedcommands.h"
//char* MENU_HEADERS[] = { NULL };
-char* MENU_HEADERS[] = { "Xperia Play [v02]",
+char* MENU_HEADERS[] = { "Xperia Play [v03]",
"",
NULL };
-char* MENU_ITEMS[] = { "reboot system now",
+char* MENU_ITEMS[] = { "reboot options",
"install zip from sdcard",
"apply /sdcard/update.zip",
"factory reset",

0 comments on commit 509671a

Please sign in to comment.
Something went wrong with that request. Please try again.