IssueNo:#I72OIS

Description:add para
    Sig:bundleManager
    Feature or Bugfix:Feature
    Binary Source:No

    Signed-off-by: zhouwenzhi <zhouwenzhi@huawei.com>
This commit is contained in:
Handsome_Afraican_Man 2023-05-30 13:56:18 +08:00
parent 37541bea5a
commit ac056a1d83
5 changed files with 68 additions and 2 deletions

View File

@ -25,6 +25,7 @@ group("bms_target") {
"interfaces/kits/native/bundle:bundle_ndk",
"sa_profile:appexecfwk_sa_profile",
"services/bundlemgr:bms_target",
"services/bundlemgr/etc:bms_etc",
]
if (bundle_framework_graphics) {
deps += [ "interfaces/inner_api/bundlemgr_graphics:bundlemgr_graphics" ]

View File

@ -0,0 +1,37 @@
# Copyright (c) 2023 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//build/ohos.gni")
#################################################################################
group("bms_etc") {
deps = [
":bms.para",
":bms.para.dac",
]
}
ohos_prebuilt_etc("bms.para") {
source = "bms.para"
subsystem_name = "bundlemanager"
part_name = "bundle_framework"
relative_install_dir = "param"
}
ohos_prebuilt_etc("bms.para.dac") {
source = "bms.para.dac"
subsystem_name = "bundlemanager"
part_name = "bundle_framework"
relative_install_dir = "param"
}

View File

@ -0,0 +1,14 @@
# Copyright (c) 2023 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
persist.bms.supportIsolationMode = false

View File

@ -0,0 +1,14 @@
# Copyright (c) 2023 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
persist.bms.supportIsolationMode = bms:bms:775

View File

@ -53,14 +53,14 @@ const std::string BUNDLE_NAME_XTS_TEST = "com.acts.";
const std::string APL_NORMAL = "normal";
const std::string SLASH = "/";
const std::string DOUBLE_SLASH = "//";
const std::string SUPPORT_ISOLATION_MODE = "supportIsolationMode";
const std::string SUPPORT_ISOLATION_MODE = "persist.bms.supportIsolationMode";
const std::string VALUE_TRUE = "true";
const std::string VALUE_TRUE_BOOL = "1";
const std::string VALUE_FALSE = "false";
const std::string NONISOLATION_ONLY = "nonisolationOnly";
const std::string ISOLATION_ONLY = "isolationOnly";
const int32_t SLAH_OFFSET = 2;
const int32_t THRESHOLD_VAL_LEN = 20;
const int32_t THRESHOLD_VAL_LEN = 40;
const std::unordered_map<Security::Verify::AppDistType, std::string> APP_DISTRIBUTION_TYPE_MAPS = {
{ Security::Verify::AppDistType::NONE_TYPE, Constants::APP_DISTRIBUTION_TYPE_NONE },