From a212861563fbc6f4c0e5ed2891ea38508ebea528 Mon Sep 17 00:00:00 2001 From: huangxiaolinabc123 Date: Sat, 20 May 2023 08:37:39 +0000 Subject: [PATCH] modify code Signed-off-by: huangxiaolinabc123 Change-Id: I33c3bf1d37245d9f87a879e8850c1ec553fff552 --- sa_profile/4805.json | 12 ++++++++++++ sa_profile/4805.xml | 27 --------------------------- sa_profile/4806.json | 12 ++++++++++++ sa_profile/4806.xml | 27 --------------------------- sa_profile/BUILD.gn | 4 ++-- sa_profile/daudio.cfg | 2 +- 6 files changed, 27 insertions(+), 57 deletions(-) create mode 100644 sa_profile/4805.json delete mode 100644 sa_profile/4805.xml create mode 100644 sa_profile/4806.json delete mode 100644 sa_profile/4806.xml diff --git a/sa_profile/4805.json b/sa_profile/4805.json new file mode 100644 index 00000000..767e7aef --- /dev/null +++ b/sa_profile/4805.json @@ -0,0 +1,12 @@ +{ + "process": "daudio", + "systemability": [ + { + "name": 4805, + "libpath": "libdistributed_audio_source.z.so", + "run-on-create": false, + "distributed": true, + "dump_level": 1 + } + ] +} \ No newline at end of file diff --git a/sa_profile/4805.xml b/sa_profile/4805.xml deleted file mode 100644 index c77fd803..00000000 --- a/sa_profile/4805.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - daudio - - 4805 - libdistributed_audio_source.z.so - - - false - true - 1 - - \ No newline at end of file diff --git a/sa_profile/4806.json b/sa_profile/4806.json new file mode 100644 index 00000000..5bf1607a --- /dev/null +++ b/sa_profile/4806.json @@ -0,0 +1,12 @@ +{ + "process": "daudio", + "systemability": [ + { + "name": 4806, + "libpath": "libdistributed_audio_sink.z.so", + "run-on-create": false, + "distributed": true, + "dump_level": 1 + } + ] +} \ No newline at end of file diff --git a/sa_profile/4806.xml b/sa_profile/4806.xml deleted file mode 100644 index 7fc1d306..00000000 --- a/sa_profile/4806.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - daudio - - 4806 - libdistributed_audio_sink.z.so - - - false - true - 1 - - \ No newline at end of file diff --git a/sa_profile/BUILD.gn b/sa_profile/BUILD.gn index 9a01079a..ef9cf270 100644 --- a/sa_profile/BUILD.gn +++ b/sa_profile/BUILD.gn @@ -15,8 +15,8 @@ import("//build/ohos.gni") ohos_sa_profile("daudio_sa_profile") { sources = [ - "4805.xml", - "4806.xml", + "4805.json", + "4806.json", ] part_name = "distributed_audio" diff --git a/sa_profile/daudio.cfg b/sa_profile/daudio.cfg index b9fcf5e4..0c9229e5 100644 --- a/sa_profile/daudio.cfg +++ b/sa_profile/daudio.cfg @@ -1,7 +1,7 @@ { "services" : [{ "name" : "daudio", - "path" : ["/system/bin/sa_main", "/system/profile/daudio.xml"], + "path" : ["/system/bin/sa_main", "/system/profile/daudio.json"], "uid" : "daudio", "gid" : ["daudio", "system"], "apl" : "system_basic", -- Gitee