diff --git a/frameworks/native/backup_kit_inner/src/b_session_restore_async.cpp b/frameworks/native/backup_kit_inner/src/b_session_restore_async.cpp index c3f0b8ee83e61332d088d87a8e4457d31f08e5f2..19ba21e7835e7ca9da6b3b84daa22804cba717bd 100644 --- a/frameworks/native/backup_kit_inner/src/b_session_restore_async.cpp +++ b/frameworks/native/backup_kit_inner/src/b_session_restore_async.cpp @@ -121,6 +121,7 @@ void BSessionRestoreAsync::OnBackupServiceDied() void BSessionRestoreAsync::PopBundleInfo() { + HILOGE("Start"); AppendBundleInfo info; isAppend_.store(true); { @@ -137,6 +138,7 @@ void BSessionRestoreAsync::PopBundleInfo() void BSessionRestoreAsync::AppendBundlesImpl(AppendBundleInfo info) { + HILOGD("Start"); auto proxy = ServiceProxy::GetInstance(); if (proxy == nullptr) { return OnBundleStarted(BError(BError::Codes::SDK_BROKEN_IPC, "Failed to get backup service").GetCode(), @@ -152,10 +154,13 @@ void BSessionRestoreAsync::AppendBundlesImpl(AppendBundleInfo info) .onBackupServiceDied = onBackupServiceDied}; int32_t res = proxy->InitRestoreSession(new ServiceReverse(callbacksTmp)); if (res != 0) { - HILOGE("Failed to Restore because of %{public}d", res); + HILOGE("Failed to Init Restore because of %{public}d", res); BError(BError::Codes::SDK_BROKEN_IPC, "Failed to int restore session").GetCode(); return OnBundleStarted(res, info.bundlesToRestore); } + for (auto &bundleName : info.bundlesToRestore) { + HILOGD("Append bundleName: %{public}s", bundleName.c_str()); + } res = proxy->AppendBundlesRestoreSession(move(info.remoteCap), info.bundlesToRestore, info.restoreType, info.userId); if (res != 0) { diff --git a/services/backup_sa/src/module_ipc/service.cpp b/services/backup_sa/src/module_ipc/service.cpp index 9b77fdf772a1f0a8a85156d5bb7b8f526ef58a23..0607ac933a8678118dab457f3b481babb51c9560 100644 --- a/services/backup_sa/src/module_ipc/service.cpp +++ b/services/backup_sa/src/module_ipc/service.cpp @@ -246,6 +246,7 @@ ErrCode Service::AppendBundlesRestoreSession(UniqueFd fd, } session_->AppendBundles(bundleNames); for (auto bundleName : bundleNames) { + HILOGD("bundleName: %{public}s", bundleName.c_str()); for (auto &&bundleInfo : bundleInfos) { if (bundleInfo.name != bundleName) { continue; diff --git a/services/backup_sa/src/module_ipc/svc_session_manager.cpp b/services/backup_sa/src/module_ipc/svc_session_manager.cpp index 9b5f1abf6485400fca9376fb0b226af214d16b4b..f679f14a2ad6ce7e4b6e6ceb478ccfca55b1ed01 100644 --- a/services/backup_sa/src/module_ipc/svc_session_manager.cpp +++ b/services/backup_sa/src/module_ipc/svc_session_manager.cpp @@ -388,6 +388,7 @@ void SvcSessionManager::AppendBundles(const vector &bundleNames) } for (auto &&bundleName : bundleNames) { + HILOGD("bundleName: %{public}s", bundleName.c_str()); BackupExtInfo info {}; info.backUpConnection = GetBackupExtAbility(bundleName); impl_.backupExtNameMap.insert(make_pair(bundleName, info));