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

Commit f1ddba9d authored by Daniel Zheng's avatar Daniel Zheng
Browse files

Updating FlashTask to require img-name

Test: tested flash {partition} on pixel
Bug: 194686221
Change-Id: I8018e48f68606ec9c559d06973154d79e7c0634a
parent 980985af
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -20,11 +20,6 @@
#include "super_flash_helper.h"

using namespace std::string_literals;

FlashTask::FlashTask(const std::string& slot, const std::string& pname, const bool apply_vbmeta)
    : pname_(pname), fname_(find_item(pname)), slot_(slot), apply_vbmeta_(apply_vbmeta) {
    if (fname_.empty()) die("cannot determine image filename for '%s'", pname_.c_str());
}
FlashTask::FlashTask(const std::string& _slot, const std::string& _pname, const std::string& _fname,
                     const bool apply_vbmeta)
    : pname_(_pname), fname_(_fname), slot_(_slot), apply_vbmeta_(apply_vbmeta) {}
+0 −1
Original line number Diff line number Diff line
@@ -32,7 +32,6 @@ class Task {

class FlashTask : public Task {
  public:
    FlashTask(const std::string& slot, const std::string& pname, const bool apply_vbmeta);
    FlashTask(const std::string& slot, const std::string& pname, const std::string& fname,
              const bool apply_vbmeta);