修改xml为json文件

Signed-off-by: wangdantong <wangdantong@huawei.com>
Change-Id: Ibe2cefcdbb592befb4333311543d8566cdef7054
This commit is contained in:
wangdantong 2023-05-22 08:44:33 +00:00
parent 2b084f757d
commit b8cee1694c
4 changed files with 14 additions and 28 deletions

View File

@ -30,7 +30,7 @@ ohos_prebuilt_etc("distributed_data.cfg") {
}
ohos_sa_profile("distributeddata_profile") {
sources = [ "../sa_profile/1301.xml" ]
sources = [ "../sa_profile/1301.json" ]
part_name = "datamgr_service"
}

View File

@ -15,7 +15,7 @@
],
"services":[{
"name" : "distributeddata",
"path" : ["/system/bin/sa_main","/system/profile/distributeddata.xml"],
"path" : ["/system/bin/sa_main","/system/profile/distributeddata.json"],
"uid" : "ddms",
"gid" : ["system","shell","readproc","ddms"],
"writepid":[

View File

@ -0,0 +1,12 @@
{
"process": "distributeddata",
"systemability": [
{
"name": 1301,
"libpath": "libdistributeddataservice.z.so",
"run-on-create": true,
"distributed": false,
"dump_level": 1
}
]
}

View File

@ -1,26 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) 2021 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.
-->
<info>
<process>distributeddata</process>
<systemability>
<name>1301</name><!-- Declare DistributedKvDataService SytemAbilityID-->
<libpath>libdistributeddataservice.z.so</libpath>
<run-on-create>true</run-on-create>
<distributed>false</distributed>
<dump-level>1</dump-level>
</systemability>
</info>