diff --git a/services/backup_sa/src/module_ipc/service.cpp b/services/backup_sa/src/module_ipc/service.cpp index d74c93b7dd11142ad802588240b7f76a2e691872..881e6849c9d735e9e464ca90874910bd8ad6798c 100644 --- a/services/backup_sa/src/module_ipc/service.cpp +++ b/services/backup_sa/src/module_ipc/service.cpp @@ -125,7 +125,7 @@ void Service::OnStart() .userId = GetUserIdDefault(), }, isOccupyingSession_.load()); - HILOGI("SA OnStart, cleaning up backup data"); + HILOGE("SA OnStart, cleaning up backup data"); } bool res = SystemAbility::Publish(sptr(this)); if (sched_ != nullptr) { @@ -1612,7 +1612,8 @@ ErrCode Service::AppendBundlesClearSession(const std::vector &bundle auto backupInfos = BundleMgrAdapter::GetBundleInfos(bundleNames, session_->GetSessionUserId()); session_->AppendBundles(bundleNames); for (auto info : backupInfos) { - session_->SetBackupExtName(info.name, info.extensionName); + std::string bundleNameIndexInfo = BJsonUtil::BuildBundleNameIndexInfo(info.name, info.appIndex); + session_->SetBackupExtName(bundleNameIndexInfo, info.extensionName); } OnStartSched(); session_->DecreaseSessionCnt(__PRETTY_FUNCTION__);