From 79c86953ca36f17772b3124b2bc4e90946acf1f3 Mon Sep 17 00:00:00 2001 From: Avinash Malipatil Date: Fri, 20 Oct 2023 08:45:29 +0000 Subject: [PATCH] SEPolicy change to allow ImsMedia to set priority of audio threads. Setting real-time thread priority for audio threads is a must to handle voice stream during vowifi calls. AVC Error: auditd : avc: denied { find } for pid=9346 uid=1001 name=scheduling_policy scontext=u:r:radio:s0 tcontext=u:object_r:scheduling_policy_service:s0 tclass=service_manager permissive=0 Bug: 306298801 Test: adb shell 'ps -Tl -p ' Change-Id: I69742ae8c5f1017fc45e24c417fc6e1875fe3e14 --- akita-sepolicy.mk | 2 +- radio/radio.te | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 radio/radio.te diff --git a/akita-sepolicy.mk b/akita-sepolicy.mk index 8e7f157..6ae79df 100644 --- a/akita-sepolicy.mk +++ b/akita-sepolicy.mk @@ -1,4 +1,4 @@ # sepolicy exclusively for akita. BOARD_SEPOLICY_DIRS += device/google/akita-sepolicy/vendor BOARD_SEPOLICY_DIRS += device/google/akita-sepolicy/tracking_denials - +BOARD_SEPOLICY_DIRS += device/google/akita-sepolicy/radio diff --git a/radio/radio.te b/radio/radio.te new file mode 100644 index 0000000..a2c40a1 --- /dev/null +++ b/radio/radio.te @@ -0,0 +1 @@ +allow radio scheduling_policy_service:service_manager find;