rename some menus. wipe more locations for dalvik cache.

This commit is contained in:
Koushik Dutta 2010-08-07 12:17:13 -07:00
parent 4e625e8cd2
commit 6c7745d928
2 changed files with 9 additions and 3 deletions

View File

@ -27,8 +27,8 @@ char* MENU_ITEMS[] = { "reboot system now",
"wipe data/factory reset",
"wipe cache partition",
"install zip from sdcard",
"nandroid",
"partitions menu",
"backup and restore",
"mounts and storage",
"advanced",
NULL };

View File

@ -813,9 +813,15 @@ void show_advanced_menu()
{
if (0 != ensure_root_path_mounted("DATA:"))
break;
if (confirm_selection( "Confirm wipe?", "Yes - Wipe Dalvik Cache"))
ensure_root_path_mounted("SDEXT:");
ensure_root_path_mounted("CACHE:");
if (confirm_selection( "Confirm wipe?", "Yes - Wipe Dalvik Cache")) {
__system("rm -r /data/dalvik-cache");
__system("rm -r /cache/dalvik-cache");
__system("rm -r /sd-ext/dalvik-cache");
}
ensure_root_path_unmounted("DATA:");
ui_print("Dalvik Cache wiped.\n");
break;
}
case 2: