mirror of
https://gitee.com/openharmony/bundlemanager_bundle_framework
synced 2025-02-17 06:28:19 +00:00
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:
parent
37541bea5a
commit
ac056a1d83
1
BUILD.gn
1
BUILD.gn
@ -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" ]
|
||||
|
37
services/bundlemgr/etc/BUILD.gn
Normal file
37
services/bundlemgr/etc/BUILD.gn
Normal 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"
|
||||
}
|
14
services/bundlemgr/etc/bms.para
Normal file
14
services/bundlemgr/etc/bms.para
Normal 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
|
14
services/bundlemgr/etc/bms.para.dac
Normal file
14
services/bundlemgr/etc/bms.para.dac
Normal 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
|
@ -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 },
|
||||
|
Loading…
x
Reference in New Issue
Block a user