fastboot: implement fastbootd in twrp
fastbootd is a userspace daemon that runs in the recovery
ramdisk. It allows writing single partitions to the super
partition via fastboot CLI. When TWRP sees the fastboot option
in the misc partition during startup, it will start with
the fastbootd page and fastbootd running. Otherwise it will
run recovery normally.
Change-Id: Id7b12d29ef21dbd5950dc884dd1cd788f25357f0
diff --git a/data.cpp b/data.cpp
index a13fbe7..571def6 100755
--- a/data.cpp
+++ b/data.cpp
@@ -717,6 +717,10 @@
printf("TW_HAS_EDL_MODE := true\n");
mConst.SetValue(TW_EDL_MODE, "1");
#endif
+#ifdef PRODUCT_USE_DYNAMIC_PARTITIONS
+ printf("PRODUCT_USE_DYNAMIC_PARTITIONS := true\n");
+ mConst.SetValue(TW_FASTBOOT_MODE, "1");
+#endif
#ifdef TW_INCLUDE_CRYPTO
mConst.SetValue(TW_HAS_CRYPTO, "1");
printf("TW_INCLUDE_CRYPTO := true\n");
@@ -792,6 +796,7 @@
mData.SetValue("tw_encrypt_backup", "0");
mData.SetValue("tw_sleep_total", "5");
mData.SetValue("tw_sleep", "5");
+ mData.SetValue("tw_enable_fastboot", "0");
// Brightness handling
string findbright;