int callback_id = static_cast<int>(args.get("callbackId").get<double>());
const std::string& packageFileURI =
convertUriToPath(args.get("packageFileURI").get<std::string>());
+ int progress_callback_id = static_cast<int>(args.get("progressCallbackId").get<double>());
+ const std::string real_path = common::FilesystemProvider::Create().GetRealPath(packageFileURI);
+
+ CHECK_STORAGE_ACCESS(real_path, &out);
+
if (!request_) {
LoggerE("package_manager_request_h is NULL");
- InvokeErrorCallbackAsync(callback_id,
+ InvokeErrorCallbackAsync(callback_id, progress_callback_id,
UnknownException("It is not allowed to install the package by "
"the platform or any other platform error occurs"));
return;