Updating FlashTask to require img-name

Test: tested flash {partition} on pixel
Bug: 194686221
Change-Id: I8018e48f68606ec9c559d06973154d79e7c0634a
This commit is contained in:
Daniel Zheng 2023-03-20 20:20:43 +00:00
parent 980985af6e
commit f1ddba9dfd
2 changed files with 0 additions and 6 deletions

View file

@ -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) {}

View file

@ -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);