Skip to content

Commit 6d33b62

Browse files
luk1337ersascape
authored andcommitted
fastboot: Fallback to "raw" partition type if fastboot hal isn't present
Fastboot format fails to wipe any partition that doesn't at least return "raw" partition type. Also both android.hardware.fastboot@1.0-impl.pixel and android.hardware.fastboot@1.1-impl-mock return FileSystemType::RAW so I assume this is fine. Change-Id: I5707bddb1ba32edb6359858853d7b1afbf138b9f
1 parent 92875ac commit 6d33b62

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fastboot/device/variables.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,8 @@ bool GetPartitionType(FastbootDevice* device, const std::vector<std::string>& ar
339339

340340
auto fastboot_hal = device->fastboot_hal();
341341
if (!fastboot_hal) {
342-
*message = "Fastboot HAL not found";
343-
return false;
342+
*message = "raw";
343+
return true;
344344
}
345345

346346
FileSystemType type;

0 commit comments

Comments
 (0)