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
This commit is contained in:
bigbiff
2020-10-21 17:47:27 -04:00
parent 12673e2a4c
commit df8436b51a
28 changed files with 1011 additions and 1062 deletions
+5
View File
@@ -717,6 +717,10 @@ void DataManager::SetDefaultValues()
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 @@ void DataManager::SetDefaultValues()
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;