diff options
-rw-r--r-- | Android.mk | 4 | ||||
-rw-r--r-- | device.cpp | 4 |
2 files changed, 8 insertions, 0 deletions
@@ -140,6 +140,10 @@ ifneq ($(BOARD_RECOVERY_BLDRMSG_OFFSET),) LOCAL_CFLAGS += -DBOARD_RECOVERY_BLDRMSG_OFFSET=$(BOARD_RECOVERY_BLDRMSG_OFFSET) endif +ifeq ($(TARGET_BUILD_VARIANT),user) + LOCAL_CFLAGS += -DRELEASE_BUILD +endif + LOCAL_CFLAGS += -DUSE_EXT4 -DMINIVOLD LOCAL_C_INCLUDES += system/extras/ext4_utils system/core/fs_mgr/include external/fsck_msdos LOCAL_C_INCLUDES += system/vold @@ -39,13 +39,17 @@ struct menu_entry { }; static const char* WIPE_MENU_NAMES[] = { +#ifndef RELEASE_BUILD "System reset (keep media)", +#endif "Full factory reset", "Wipe cache partition", nullptr }; static const menu_entry WIPE_MENU_ENTRIES[] = { +#ifndef RELEASE_BUILD { ACTION_INVOKE, { .action = Device::WIPE_DATA } }, +#endif { ACTION_INVOKE, { .action = Device::WIPE_FULL } }, { ACTION_INVOKE, { .action = Device::WIPE_CACHE } }, { ACTION_NONE, { .action = Device::NO_ACTION } } |