diff options
author | LuK1337 <priv.luk@gmail.com> | 2022-03-02 14:18:27 +0100 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2022-05-02 12:00:45 +0800 |
commit | 7139f6828f34debf7ef8a65e445c97c9e245b565 (patch) | |
tree | 8aea7bb1d44c2ddfe013eaec5aa6311bb38aa76a | |
parent | f46e9ab91251dd0922bfc60a6168bb8cfe994af3 (diff) |
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
-rw-r--r-- | fastboot/device/variables.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fastboot/device/variables.cpp b/fastboot/device/variables.cpp index ee1eed876..bb54bf2a3 100644 --- a/fastboot/device/variables.cpp +++ b/fastboot/device/variables.cpp @@ -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; |