diff --git a/recipes-openharmony/openharmony/openharmony-standard-3.0/InnerBundleInfo-initialize-installationFree.patch b/recipes-openharmony/openharmony/openharmony-standard-3.0/InnerBundleInfo-initialize-installationFree.patch new file mode 100644 index 0000000000000000000000000000000000000000..3cc2a89b9628dbe9dc50c35207fd200bca697880 --- /dev/null +++ b/recipes-openharmony/openharmony/openharmony-standard-3.0/InnerBundleInfo-initialize-installationFree.patch @@ -0,0 +1,30 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# +# SPDX-License-Identifier: Apache-2.0 + +InnerModuleInfo: initialize installationFree to false + +uninitialized installationFree property of InnerModuleInfo causes +ActsBmsModuleUsageRecordTest to sometimes fail on +`expect(data.installationFreeSupported).assertEqual(false);` +Initializing installationFree property to false. + +Apply to foundation/appexecfwk/standard + +Upstream-Status: Pending + +Signed-off-by: Francesco Pham <francesco.pham@huawei.com> + +diff --git a/services/bundlemgr/include/inner_bundle_info.h b/services/bundlemgr/include/inner_bundle_info.h +index de34790d..c7e586f2 100644 +--- a/services/bundlemgr/include/inner_bundle_info.h ++++ b/services/bundlemgr/include/inner_bundle_info.h +@@ -73,7 +73,7 @@ struct InnerModuleInfo { + int32_t descriptionId = 0; + std::string mainAbility; + bool isEntry; +- bool installationFree; ++ bool installationFree=false; + MetaData metaData; + ModuleColorMode colorMode = ModuleColorMode::AUTO; + Distro distro; diff --git a/recipes-openharmony/openharmony/openharmony-standard_3.0.bb b/recipes-openharmony/openharmony/openharmony-standard_3.0.bb index 53537f6c7bdf686824bf4c1ae1e789883956dd60..129d7711e0bc150a4afb3b7742f25cea30347b5e 100644 --- a/recipes-openharmony/openharmony/openharmony-standard_3.0.bb +++ b/recipes-openharmony/openharmony/openharmony-standard_3.0.bb @@ -95,6 +95,7 @@ SRC_URI += "file://hisysevent-socket-path.patch;patchdir=${S}/base/hiviewdfx/his SRC_URI += "file://foundation_distributedschedule_safwk-slash-system-symlink.patch;patchdir=${S}/foundation/distributedschedule/safwk" SRC_URI += "file://appdatamgr-IsColumnNull-initialize-result.patch;patchdir=${S}/foundation/distributeddatamgr/appdatamgr" +SRC_URI += "file://InnerBundleInfo-initialize-installationFree.patch;patchdir=${S}/foundation/appexecfwk/standard" SRC_URI += "file://test-xts-acts-fix-Defpermission-typo.patch;patchdir=${S}/test/xts/acts" SRC_URI += "file://test-xts-acts-fix-faultloggertest.patch;patchdir=${S}/test/xts/acts"