From e2e7c86ed7ca776b08dfaa9eda1a79e38edaf23c Mon Sep 17 00:00:00 2001 From: Francesco Pham <francesco.pham@huawei.com> Date: Sun, 26 Mar 2023 18:30:45 +0200 Subject: [PATCH] openharmony-standard: InnerBundleInfo-initialize-installationFree.patch add InnerBundleInfo-initialize-installationFree.patch apply to foundation/appexecfwk/standard ``` 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. ``` Signed-off-by: Francesco Pham <francesco.pham@huawei.com> --- ...ndleInfo-initialize-installationFree.patch | 30 +++++++++++++++++++ .../openharmony/openharmony-standard_3.0.bb | 1 + 2 files changed, 31 insertions(+) create mode 100644 recipes-openharmony/openharmony/openharmony-standard-3.0/InnerBundleInfo-initialize-installationFree.patch 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 00000000..3cc2a89b --- /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 53537f6c..129d7711 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" -- GitLab