Skip to content

Commit

Permalink
recovery: User recovery shouldn't allow mounting system
Browse files Browse the repository at this point in the history
OPO-489

Change-Id: I157116fdc7c85a42ce3c978b52f949e3cbc25b31
  • Loading branch information
Pat Erley authored and Steve Kondik committed Sep 4, 2016
1 parent fe9873f commit 22ed705
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ static const char* ADVANCED_MENU_NAMES[] = {
#else
"Reboot to bootloader",
#endif
#ifndef RELEASE_BUILD
"Mount /system",
#endif
"View recovery logs",
"Run graphics test",
"Power off",
Expand All @@ -79,7 +81,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::RUN_GRAPHICS_TEST } },
{ ACTION_INVOKE, { .action = Device::SHUTDOWN } },
Expand Down

0 comments on commit 22ed705

Please sign in to comment.