Change-Id: I8d83e12fa1c511d0061a279235ca80a5a6b83751
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
Step::Status StepSwitchReadonlyMode::process() {
bool is_readonly_package = context_->is_readonly_package.get();
context_->is_readonly_package.set(!is_readonly_package);
+ std::string root_app_path = GetRootAppPath(
+ context_->is_readonly_package.get(), context_->uid.get());
+ context_->root_application_path.set(root_app_path);
return Status::OK;
}
}
Step::Status StepRemoveFiles::process() {
- bf::path pkg_path(context_->pkg_path.get());
+ // Use RootAppPath + Pkgid because of ReadonlyUpdateUninstall
+ bf::path pkg_path =
+ context_->root_application_path.get() / context_->pkgid.get();
// We need to unmount external storage before removing package directory
// because mount point is inside