Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9dd073eb authored by LuK1337's avatar LuK1337
Browse files

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
parent 1e80f2d4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;