From c29fdd6245bed6da6b845e6c3ca6dba589b8c5c2 Mon Sep 17 00:00:00 2001 From: lin-yuqiang666 Date: Mon, 22 May 2023 09:18:24 +0000 Subject: [PATCH 1/2] =?UTF-8?q?xml=E6=94=B9=E6=88=90json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lin-yuqiang666 Change-Id: I948ec3fbbd28190ad5ea15da1c41fd1ac64ff6b9 --- sa_profile/BUILD.gn | 2 +- sa_profile/pulseaudio.json | 12 ++++++++++++ services/audio_service/etc/pulseaudio.cfg | 2 +- services/audio_service/etc/pulseaudio.rc | 2 +- 4 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 sa_profile/pulseaudio.json diff --git a/sa_profile/BUILD.gn b/sa_profile/BUILD.gn index 0b60e7fea0..c0d50dc02c 100644 --- a/sa_profile/BUILD.gn +++ b/sa_profile/BUILD.gn @@ -14,7 +14,7 @@ import("//build/ohos/sa_profile/sa_profile.gni") ohos_sa_profile("audio_service_sa_profile") { - sources = [ "3001.xml" ] + sources = [ "3001.json" ] part_name = "audio_framework" } diff --git a/sa_profile/pulseaudio.json b/sa_profile/pulseaudio.json new file mode 100644 index 0000000000..1176588a6c --- /dev/null +++ b/sa_profile/pulseaudio.json @@ -0,0 +1,12 @@ +{ + "process": "pulseaudio", + "systemability": [ + { + "name": 3001, + "libpath": "libaudio_service.z.so", + "run-on-create": true, + "distributed": false, + "dump_level": 1 + } + ] +} \ No newline at end of file diff --git a/services/audio_service/etc/pulseaudio.cfg b/services/audio_service/etc/pulseaudio.cfg index 001113e89a..8bf851210d 100644 --- a/services/audio_service/etc/pulseaudio.cfg +++ b/services/audio_service/etc/pulseaudio.cfg @@ -26,7 +26,7 @@ ], "services" : [{ "name" : "pulseaudio", - "path" : ["/system/bin/sa_main", "/system/profile/pulseaudio.xml"], + "path" : ["/system/bin/sa_main", "/system/profile/pulseaudio.json"], "uid" : "audio", "gid" : ["system", "audio"], "disabled" : 1, diff --git a/services/audio_service/etc/pulseaudio.rc b/services/audio_service/etc/pulseaudio.rc index 8a9c14df3f..4acedc94c7 100644 --- a/services/audio_service/etc/pulseaudio.rc +++ b/services/audio_service/etc/pulseaudio.rc @@ -11,7 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -service pulseaudio /system/bin/sa_main /system/profile/pulseaudio.xml +service pulseaudio /system/bin/sa_main /system/profile/pulseaudio.json class z_core seclabel u:r:audiodistributedservice:s0 user system -- Gitee From d4acec7f56f59c1626035c64f2327fc9cdf676d4 Mon Sep 17 00:00:00 2001 From: lin-yuqiang666 Date: Mon, 22 May 2023 13:05:36 +0000 Subject: [PATCH 2/2] =?UTF-8?q?xml=E6=94=B9=E6=88=90json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lin-yuqiang666 Change-Id: Icab8e5bb815197d33ebbc6e68b83fd209acd2eda --- sa_profile/BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sa_profile/BUILD.gn b/sa_profile/BUILD.gn index c0d50dc02c..ccb8aced70 100644 --- a/sa_profile/BUILD.gn +++ b/sa_profile/BUILD.gn @@ -14,7 +14,7 @@ import("//build/ohos/sa_profile/sa_profile.gni") ohos_sa_profile("audio_service_sa_profile") { - sources = [ "3001.json" ] + sources = [ "pulseaudio.json" ] part_name = "audio_framework" } -- Gitee