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

Commit e154cbd5 authored by LuK1337's avatar LuK1337 Committed by Łukasz Patron
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 2655ad48
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -339,8 +339,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;