From 06faf2e695cf74821e4cc51302617e475e5f580d Mon Sep 17 00:00:00 2001 From: daiyujia Date: Fri, 23 May 2025 10:02:43 +0800 Subject: [PATCH] =?UTF-8?q?IssueNo:#IC9Y58=20Description:=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E6=95=B0=E6=8D=AE=E5=BA=93=E6=97=B6=E5=B0=86=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E7=8A=B6=E6=80=81=E7=BD=AE=E4=B8=BAenable=20Sig:bundl?= =?UTF-8?q?eManager=20Feature=20or=20Bugfix:Bugfix=20Binary=20Source:No?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: daiyujia Change-Id: I650496a595afc7de0f335f810456c78d78a51885 --- services/bundlemgr/src/bundle_data_storage_rdb.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/bundlemgr/src/bundle_data_storage_rdb.cpp b/services/bundlemgr/src/bundle_data_storage_rdb.cpp index 222a48cb40..2fff414228 100644 --- a/services/bundlemgr/src/bundle_data_storage_rdb.cpp +++ b/services/bundlemgr/src/bundle_data_storage_rdb.cpp @@ -16,6 +16,7 @@ #include "bundle_data_storage_rdb.h" #include "bundle_exception_handler.h" +#include "inner_bundle_info.h" namespace OHOS { namespace AppExecFwk { @@ -94,6 +95,7 @@ void BundleDataStorageRdb::TransformStrToInfo( // reset privilege capability when load info from db ApplicationInfo applicationInfo; innerBundleInfo.UpdatePrivilegeCapability(applicationInfo); + innerBundleInfo.SetBundleStatus(InnerBundleInfo::BundleStatus::ENABLED); infos.emplace(innerBundleInfo.GetBundleName(), innerBundleInfo); // database update std::string key = data.first; -- Gitee