aboutsummaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-04-10 10:01:53 -0700
committerElliott Hughes <enh@google.com>2015-04-10 10:01:53 -0700
commitec28340cf3af1029a00db1c83d78d14e8798e245 (patch)
tree9cd50e1cce726c3a32b440012f09d63825cfcbee /recovery.cpp
parent18eaa0cfe7aa775546369de829a1ff3049cf82a5 (diff)
downloadbootable_recovery-ec28340cf3af1029a00db1c83d78d14e8798e245.zip
bootable_recovery-ec28340cf3af1029a00db1c83d78d14e8798e245.tar.gz
bootable_recovery-ec28340cf3af1029a00db1c83d78d14e8798e245.tar.bz2
Move "Mount /system" to the main menu.
Everyone's adding secret key combinations for this anyway, and it's very useful when debugging. Change-Id: Iad549452b872a7af963dd649f283ebcd3ea24234
Diffstat (limited to 'recovery.cpp')
-rw-r--r--recovery.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/recovery.cpp b/recovery.cpp
index bbfeda4..cdbb598 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -840,7 +840,7 @@ prompt_and_wait(Device* device, int status) {
break;
case Device::APPLY_ADB_SIDELOAD:
- case Device::APPLY_EXT:
+ case Device::APPLY_SDCARD:
{
bool adb = (chosen_action == Device::APPLY_ADB_SIDELOAD);
if (adb) {
@@ -867,12 +867,14 @@ prompt_and_wait(Device* device, int status) {
}
break;
- case Device::APPLY_CACHE:
- ui->Print("\nAPPLY_CACHE is deprecated.\n");
+ case Device::VIEW_RECOVERY_LOGS:
+ choose_recovery_file(device);
break;
- case Device::READ_RECOVERY_LASTLOG:
- choose_recovery_file(device);
+ case Device::MOUNT_SYSTEM:
+ if (ensure_path_mounted("/system") != -1) {
+ ui->Print("Mounted /system.");
+ }
break;
}
}