mirror of
https://github.com/openharmony/distributedhardware_distributed_input.git
synced 2026-07-18 16:04:40 -04:00
修改xml为json文件
Signed-off-by: wangdantong <wangdantong@huawei.com> Change-Id: Id9c5c1fd588613af76a95767be9caa3ada883f88
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"process": "dinput",
|
||||
"systemability": [
|
||||
{
|
||||
"name": 4809,
|
||||
"libpath": "libdinput_source.z.so",
|
||||
"run-on-create": false,
|
||||
"distributed": true,
|
||||
"dump_level": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
* Copyright (c) 2021-2022 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>dinput</process>
|
||||
<systemability> <!-- Declare a sytem ability and its profile -->
|
||||
<name>4809</name> <!-- Declare the name of system ability -->
|
||||
<libpath>libdinput_source.z.so</libpath> <!-- Declare the path of .so file which includes the system ability; Note: 1 .so file can have 1 to N system abilities. -->
|
||||
<!--<depend></depend> --> <!-- Declare the name of system abilities which the system ability depends on, using ";" as separator among names. If there are dependencies, it needs to check if all those dependencies are avliable in service manager before starting the system ability. -->
|
||||
<!--<depend-time-out></depend-time-out> --> <!-- Check all dependencies are avaliable before the timeout period ended. The MAX_DEPENDENCY_TIMEOUT is 60s. -->
|
||||
<run-on-create>false</run-on-create> <!-- "true" means the system ability would start imediately, "false" means the system ability would start on demand. -->
|
||||
<distributed>true</distributed> <!-- "true" means the system ability supports distributed scheduling while "false" is not. -->
|
||||
<dump-level>1</dump-level> <!-- Declare the dump level. 1-high; 2-media; 3-low -->
|
||||
</systemability>
|
||||
</info>
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"process": "dinput",
|
||||
"systemability": [
|
||||
{
|
||||
"name": 4810,
|
||||
"libpath": "libdinput_sink.z.so",
|
||||
"run-on-create": false,
|
||||
"distributed": true,
|
||||
"dump_level": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
* Copyright (c) 2021-2022 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>dinput</process>
|
||||
<systemability> <!-- Declare a sytem ability and its profile -->
|
||||
<name>4810</name> <!-- Declare the name of system ability -->
|
||||
<libpath>libdinput_sink.z.so</libpath> <!-- Declare the path of .so file which includes the system ability; Note: 1 .so file can have 1 to N system abilities. -->
|
||||
<!--<depend></depend> --> <!-- Declare the name of system abilities which the system ability depends on, using ";" as separator among names. If there are dependencies, it needs to check if all those dependencies are avliable in service manager before starting the system ability. -->
|
||||
<!--<depend-time-out></depend-time-out> --> <!-- Check all dependencies are avaliable before the timeout period ended. The MAX_DEPENDENCY_TIMEOUT is 60s. -->
|
||||
<run-on-create>false</run-on-create> <!-- "true" means the system ability would start imediately, "false" means the system ability would start on demand. -->
|
||||
<distributed>true</distributed> <!-- "true" means the system ability supports distributed scheduling while "false" is not. -->
|
||||
<dump-level>1</dump-level> <!-- Declare the dump level. 1-high; 2-media; 3-low -->
|
||||
</systemability>
|
||||
</info>
|
||||
+2
-2
@@ -16,13 +16,13 @@ import("//build/ohos/sa_profile/sa_profile.gni")
|
||||
import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni")
|
||||
|
||||
ohos_sa_profile("distributed_input_source_sa_profile") {
|
||||
sources = [ "4809.xml" ]
|
||||
sources = [ "4809.json" ]
|
||||
|
||||
part_name = "distributed_input"
|
||||
}
|
||||
|
||||
ohos_sa_profile("distributed_input_sink_sa_profile") {
|
||||
sources = [ "4810.xml" ]
|
||||
sources = [ "4810.json" ]
|
||||
|
||||
part_name = "distributed_input"
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"services" : [{
|
||||
"name" : "dinput",
|
||||
"path" : ["/system/bin/sa_main", "/system/profile/dinput.xml"],
|
||||
"path" : ["/system/bin/sa_main", "/system/profile/dinput.json"],
|
||||
"uid" : "dinput",
|
||||
"gid" : ["dinput", "uhid", "input"],
|
||||
"ondemand" : true,
|
||||
|
||||
Reference in New Issue
Block a user