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
This commit is contained in:
LuK1337 2022-03-02 14:18:27 +01:00
parent 1e80f2d47d
commit 9dd073ebfa
1 changed files with 2 additions and 2 deletions

View File

@ -332,8 +332,8 @@ bool GetPartitionType(FastbootDevice* device, const std::vector<std::string>& ar
auto fastboot_hal = device->fastboot_hal();
if (!fastboot_hal) {
*message = "Fastboot HAL not found";
return false;
*message = "raw";
return true;
}
FileSystemType type;