From 8e11ba900d21a248b2388afe1b47ce4b5a8a247d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=99=9F=E9=92=B0?= Date: Thu, 12 Sep 2024 18:06:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=98=AFsa=E5=8C=85=E5=90=8D?= =?UTF-8?q?=E6=97=B6=E4=BC=9A=E6=8A=9B=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 张晟钰 --- services/backup_sa/src/module_external/bms_adapter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/backup_sa/src/module_external/bms_adapter.cpp b/services/backup_sa/src/module_external/bms_adapter.cpp index f128023a1..657eda3b5 100644 --- a/services/backup_sa/src/module_external/bms_adapter.cpp +++ b/services/backup_sa/src/module_external/bms_adapter.cpp @@ -507,7 +507,8 @@ bool BundleMgrAdapter::IsUser0BundleName(std::string bundleName, int32_t userId) auto bms = GetBundleManager(); AppExecFwk::BundleInfo installedBundle; if (!bms->GetBundleInfo(bundleName, AppExecFwk::GET_BUNDLE_WITH_EXTENSION_INFO, installedBundle, userId)) { - throw BError(BError::Codes::SA_BROKEN_IPC, "Failed to get bundle infos"); + HILOGI("GetBundleInfo failed, bundleName:%{public}s", bundleName.c_str()); + return false; } if (installedBundle.applicationInfo.singleton == true) { HILOGI("bundleName:%{public}s is zero user bundle", bundleName.c_str()); -- Gitee