mirror of
https://gitee.com/openharmony/bundlemanager_bundle_framework
synced 2025-02-17 06:28:19 +00:00
!7496 【5.0.1】【bug】应用安装完成,主动设置应用状态为enable
Merge pull request !7496 from wangtiantian/cherry-pick-1731921191
This commit is contained in:
commit
d773fd53f7
@ -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());
|
||||
|
@ -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;
|
||||
|
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user