Enable reboot to fastbootd if TW_INCLUDE_FASTBOOTD is set
Change-Id: I599841d7dab28c51700e9c5f445654263edf3336
(cherry picked from commit 97be4321d42d1efa01a981e25c686c19f037fb5a)
diff --git a/Android.mk b/Android.mk
index 0d2708d..a060351 100755
--- a/Android.mk
+++ b/Android.mk
@@ -411,6 +411,9 @@
ifneq ($(TW_BACKUP_EXCLUSIONS),)
LOCAL_CFLAGS += -DTW_BACKUP_EXCLUSIONS='"$(TW_BACKUP_EXCLUSIONS)"'
endif
+ifeq ($(TW_INCLUDE_FASTBOOTD), true)
+ LOCAL_CFLAGS += -DTW_INCLUDE_FASTBOOTD
+endif
LOCAL_C_INCLUDES += system/vold \
diff --git a/data.cpp b/data.cpp
index 7661d69..4e32dc4 100755
--- a/data.cpp
+++ b/data.cpp
@@ -719,6 +719,10 @@
printf("TW_HAS_EDL_MODE := true\n");
mConst.SetValue(TW_EDL_MODE, "1");
#endif
+#ifdef TW_INCLUDE_FASTBOOTD
+ printf("TW_INCLUDE_FASTBOOTD := true\n");
+ mConst.SetValue(TW_FASTBOOT_MODE, "1");
+#endif
#ifdef PRODUCT_USE_DYNAMIC_PARTITIONS
printf("PRODUCT_USE_DYNAMIC_PARTITIONS := true\n");
mConst.SetValue(TW_FASTBOOT_MODE, "1");