diff --git a/services/bundlemgr/include/sandbox_app/bundle_sandbox_installer.h b/services/bundlemgr/include/sandbox_app/bundle_sandbox_installer.h index b256581ca1223f3d69fc3527b39576909ad75a5d..c2f1c4d09d9427b472f6835a1ca7b843c523bc81 100644 --- a/services/bundlemgr/include/sandbox_app/bundle_sandbox_installer.h +++ b/services/bundlemgr/include/sandbox_app/bundle_sandbox_installer.h @@ -56,7 +56,7 @@ public: private: ErrCode CreateSandboxDataDir(InnerBundleInfo &info, const int32_t &uid, const int32_t &appIndex) const; void SandboxAppRollBack(InnerBundleInfo &info, const int32_t &userId); - bool GetInnerBundleInfoWithDisable(InnerBundleInfo &info, bool &isAppExist); + bool FetchInnerBundleInfo(InnerBundleInfo &info, bool &isAppExist); ErrCode GetDataMgr(); ErrCode GetSandboxDataMgr(); diff --git a/services/bundlemgr/src/sandbox_app/bundle_sandbox_installer.cpp b/services/bundlemgr/src/sandbox_app/bundle_sandbox_installer.cpp index 0a3ba94d46dc6db60ef619212dd5b65911c3ee9f..629b319d526d80e416b97e62f4ee9b8e42045d62 100644 --- a/services/bundlemgr/src/sandbox_app/bundle_sandbox_installer.cpp +++ b/services/bundlemgr/src/sandbox_app/bundle_sandbox_installer.cpp @@ -60,7 +60,7 @@ ErrCode BundleSandboxInstaller::InstallSandboxApp(const std::string &bundleName, // 1. check whether original application installed or not InnerBundleInfo info; bool isExist = false; - if (!GetInnerBundleInfoWithDisable(info, isExist) || !isExist) { + if (!FetchInnerBundleInfo(info, isExist) || !isExist) { APP_LOGE("the bundle is not installed"); return ERR_APPEXECFWK_SANDBOX_INSTALL_APP_NOT_EXISTED; } @@ -352,13 +352,13 @@ ErrCode BundleSandboxInstaller::UninstallAllSandboxApps(const std::string &bundl return ERR_OK; } -bool BundleSandboxInstaller::GetInnerBundleInfoWithDisable(InnerBundleInfo &info, bool &isAppExist) +bool BundleSandboxInstaller::FetchInnerBundleInfo(InnerBundleInfo &info, bool &isAppExist) { if (GetDataMgr() != ERR_OK) { APP_LOGE("Get dataMgr shared_ptr failed"); return false; } - isAppExist = dataMgr_->GetInnerBundleInfoWithDisable(bundleName_, info); + isAppExist = dataMgr_->FetchInnerBundleInfo(bundleName_, info); return true; }