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:
Regular → Executable
+2
@@ -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 "";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user