!7496 【5.0.1】【bug】应用安装完成,主动设置应用状态为enable

Merge pull request !7496 from wangtiantian/cherry-pick-1731921191
This commit is contained in:
openharmony_ci 2024-11-20 02:35:52 +00:00 committed by Gitee
commit d773fd53f7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 3 additions and 0 deletions

View File

@ -1038,6 +1038,7 @@ void AppServiceFwkInstaller::MarkInstallFinish()
APP_LOGE("mark finish failed, -n %{public}s not exist", bundleName_.c_str());
return;
}
info.SetBundleStatus(InnerBundleInfo::BundleStatus::ENABLED);
info.SetInstallMark(bundleName_, info.GetCurModuleName(), InstallExceptionStatus::INSTALL_FINISH);
if (!dataMgr_->UpdateInnerBundleInfo(info, true)) {
APP_LOGE("save mark failed, -n %{public}s", bundleName_.c_str());

View File

@ -5985,6 +5985,7 @@ void BaseBundleInstaller::MarkInstallFinish()
LOG_W(BMS_TAG_INSTALLER, "mark finish failed");
return;
}
info.SetBundleStatus(InnerBundleInfo::BundleStatus::ENABLED);
info.SetInstallMark(bundleName_, info.GetCurModuleName(), InstallExceptionStatus::INSTALL_FINISH);
if (!InitDataMgr()) {
return;

View File

@ -785,6 +785,7 @@ void InnerSharedBundleInstaller::MarkInstallFinish()
APP_LOGE("mark finish failed, -n %{public}s not exist", bundleName_.c_str());
return;
}
info.SetBundleStatus(InnerBundleInfo::BundleStatus::ENABLED);
info.SetInstallMark(bundleName_, info.GetCurModuleName(), InstallExceptionStatus::INSTALL_FINISH);
if (!dataMgr->UpdateInnerBundleInfo(info, true)) {
APP_LOGE("save mark failed, -n %{public}s", bundleName_.c_str());