Include nano in TWRP by default
Use 'TW_EXCLUDE_NANO := true' to exclude from build
Will be excluded by default if 'TW_OEM_BUILD := true' is set
Change-Id: I812399ef9f3f5d3c7d4baf981924d49255c16e5a
diff --git a/Android.mk b/Android.mk
index f5821cc..1cc73eb 100755
--- a/Android.mk
+++ b/Android.mk
@@ -177,6 +177,7 @@
TW_USE_TOOLBOX := true
TW_EXCLUDE_MTP := true
TW_EXCLUDE_TZDATA := true
+ TW_EXCLUDE_NANO := true
endif
ifeq ($(TARGET_USERIMAGES_USE_EXT4), true)
@@ -529,6 +530,11 @@
ifneq ($(TW_EXCLUDE_TZDATA), true)
TWRP_REQUIRED_MODULES += tzdata_twrp
endif
+ifneq ($(TW_EXCLUDE_NANO), true)
+ TWRP_REQUIRED_MODULES += \
+ nano_twrp \
+ init.recovery.nano.rc
+endif
# Allow devices to specify device-specific recovery dependencies
ifneq ($(TARGET_RECOVERY_DEVICE_MODULES),)
TWRP_REQUIRED_MODULES += $(TARGET_RECOVERY_DEVICE_MODULES)