When the package is installing as readonly or preload-rw mode,
the installer allows the package to be installed in the gadget type.
Change-Id: Ie5cfffb8b24fb779361ad79100ee0ab8b00f2c47
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
ci::Step::Status StepRpkSignature::CheckPrivilegeLevel(
ci::PrivilegeLevel level) {
+ if (context_->is_readonly_package.get() ||
+ context_->is_preload_rw_package.get())
+ return Status::OK;
+
std::string res_type = context_->manifest_data.get()->res_type;
if (res_type.rfind(kGadgetPrefix, 0))
return Status::OK;