aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPat Erley <perley@cyngn.com>2016-02-11 17:50:33 -0800
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-02-11 18:43:22 -0800
commit72319de2869e939c3ce921dcbe10b96cda58c973 (patch)
tree9774e51de6ad08dd0673177cae5d779d938eaeeb
parent44e8f6ec9004fb57ae77f9bf80f4a4db0c7b8c9e (diff)
downloadbootable_recovery-72319de2869e939c3ce921dcbe10b96cda58c973.zip
bootable_recovery-72319de2869e939c3ce921dcbe10b96cda58c973.tar.gz
bootable_recovery-72319de2869e939c3ce921dcbe10b96cda58c973.tar.bz2
recovery: User recovery shouldn't allow mounting system
OPO-489 Change-Id: I157116fdc7c85a42ce3c978b52f949e3cbc25b31
-rw-r--r--device.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/device.cpp b/device.cpp
index 011aef0..7f579cf 100644
--- a/device.cpp
+++ b/device.cpp
@@ -66,7 +66,9 @@ static const char* ADVANCED_MENU_NAMES[] = {
#else
"Reboot to bootloader",
#endif
+#ifndef RELEASE_BUILD
"Mount /system",
+#endif
"View recovery logs",
"Power off",
nullptr
@@ -78,7 +80,9 @@ static const menu_entry ADVANCED_MENU_ENTRIES[] = {
#else
{ ACTION_INVOKE, { .action = Device::REBOOT_BOOTLOADER } },
#endif
+#ifndef RELEASE_BUILD
{ ACTION_INVOKE, { .action = Device::MOUNT_SYSTEM } },
+#endif
{ ACTION_INVOKE, { .action = Device::VIEW_RECOVERY_LOGS } },
{ ACTION_INVOKE, { .action = Device::SHUTDOWN } },
{ ACTION_NONE, { .action = Device::NO_ACTION } }