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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user