namespace configuration {
ci::Step::Status StepParsePreload::process() {
+ RequestType req_type = context_->request_type.get();
const char* readonly_val = context_->manifest_data.get()->readonly;
if (!readonly_val || (readonly_val && strlen(readonly_val) == 0)) {
if (readonly_val)
if (context_->is_readonly_package.get()) {
context_->manifest_data.get()->readonly = strdup("true");
- if (getuid() != 0) {
+ if (getuid() != 0 && req_type != RequestType::ReadonlyUpdateUninstall) {
LOG(ERROR) << "You're not authorized to install readonly app: "
<< context_->pkgid.get().c_str();
return Status::OPERATION_NOT_ALLOWED;
}
PkgQueryInterface pkg_query(context_->pkgid.get(), context_->uid.get());
- RequestType req_type = context_->request_type.get();
const char* preload_val = context_->manifest_data.get()->preload;
if (!preload_val || (preload_val && strlen(preload_val) == 0)) {
if (preload_val)