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

Commit 437fb0c6 authored by Daniel Zheng's avatar Daniel Zheng Committed by Gerrit Code Review
Browse files

Merge "Removing should_flash_in_userspace check"

parents 0cea31e5 2775df61
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -214,14 +214,12 @@ std::unique_ptr<FlashSuperLayoutTask> FlashSuperLayoutTask::InitializeFromTasks(

    for (const auto& task : tasks) {
        if (auto flash_task = task->AsFlashTask()) {
            if (should_flash_in_userspace(flash_task->GetPartitionAndSlot())) {
            auto partition = flash_task->GetPartitionAndSlot();
            if (!helper->AddPartition(partition, flash_task->GetImageName(), false)) {
                return nullptr;
            }
        }
    }
    }

    auto s = helper->GetSparseLayout();
    if (!s) return nullptr;