diff --git a/services/bundlemgr/src/bundle_data_storage_rdb.cpp b/services/bundlemgr/src/bundle_data_storage_rdb.cpp index 222a48cb40a27b0708f1005401a5041ec4a40987..2fff414228e92934eec2acb077056c9c858251df 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;