From fa762cc616bf2e296c8d01bf131094bfe59d85ee Mon Sep 17 00:00:00 2001 From: amao Date: Wed, 2 Apr 2025 16:00:08 +0800 Subject: [PATCH] sync5.0.2sandbox Signed-off-by: amao Change-Id: I51e5aba4bf17666fd1b9c362ca1fe59c1c0b859f --- .../include/sandbox_app/bundle_sandbox_installer.h | 2 +- .../bundlemgr/src/sandbox_app/bundle_sandbox_installer.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/services/bundlemgr/include/sandbox_app/bundle_sandbox_installer.h b/services/bundlemgr/include/sandbox_app/bundle_sandbox_installer.h index 74b186f00c..cfd470e707 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 GetInnerBundleInfo(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 2021302c3b..1201fb543b 100644 --- a/services/bundlemgr/src/sandbox_app/bundle_sandbox_installer.cpp +++ b/services/bundlemgr/src/sandbox_app/bundle_sandbox_installer.cpp @@ -59,7 +59,7 @@ ErrCode BundleSandboxInstaller::InstallSandboxApp(const std::string &bundleName, // 1. check whether original application installed or not InnerBundleInfo info; bool isExist = false; - if (!GetInnerBundleInfo(info, isExist) || !isExist) { + if (!FetchInnerBundleInfo(info, isExist) || !isExist) { APP_LOGE("the bundle is not installed"); return ERR_APPEXECFWK_SANDBOX_INSTALL_APP_NOT_EXISTED; } @@ -338,13 +338,13 @@ ErrCode BundleSandboxInstaller::UninstallAllSandboxApps(const std::string &bundl return ERR_OK; } -bool BundleSandboxInstaller::GetInnerBundleInfo(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_->GetInnerBundleInfo(bundleName_, info); + isAppExist = dataMgr_->FetchInnerBundleInfo(bundleName_, info); return true; } -- Gitee