diff --git a/services/bundlemgr/src/bundle_data_mgr.cpp b/services/bundlemgr/src/bundle_data_mgr.cpp index b49171fdd84fae95d8d0216f58c50c2fabb65607..fa113a823e7db79ee79e07cd2c2d4d8e9cd7ff98 100644 --- a/services/bundlemgr/src/bundle_data_mgr.cpp +++ b/services/bundlemgr/src/bundle_data_mgr.cpp @@ -3908,8 +3908,9 @@ std::shared_ptr BundleDataMgr::GetResourceMan APP_LOGE("can not find bundle %{public}s", bundleName.c_str()); return nullptr; } + int32_t responseUserId = innerBundleInfo.GetResponseUserId(userId); BundleInfo bundleInfo; - innerBundleInfo.GetBundleInfo(BundleFlag::GET_BUNDLE_DEFAULT, bundleInfo, userId); + innerBundleInfo.GetBundleInfo(BundleFlag::GET_BUNDLE_DEFAULT, bundleInfo, responseUserId); std::shared_ptr resourceManager(Global::Resource::CreateResourceManager()); for (auto hapModuleInfo : bundleInfo.hapModuleInfos) { std::string moduleResPath;