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
+2
View File
@@ -46,6 +46,7 @@ static std::string get_misc_blk_device(std::string* err) {
}
Fstab fstab;
if (!ReadDefaultFstab(&fstab)) {
printf("failed to read default fstab\n");
*err = "failed to read default fstab";
return "";
}
@@ -56,6 +57,7 @@ static std::string get_misc_blk_device(std::string* err) {
}
*err = "failed to find /misc partition";
printf("failed to find misc partition\n");
return "";
}