Skip to content

Commit

Permalink
Add MTK Audio HAL patch
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyVR1 committed Aug 28, 2024
1 parent 74d46c3 commit 267b1b3
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions patches_treble/device_phh_treble/0010-Fix-Mediatek-Audio-HAL.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
From 520cdf4d471004d90f858af54c6642ea21a81e3f Mon Sep 17 00:00:00 2001
From: Jonathon Fitch <[email protected]>
Date: Mon, 26 Jun 2023 19:54:34 +0100
Subject: [PATCH] Fix Mediatek Audio HAL

Change-Id: Ic722f4ad6bfbd72b088570d62f239a052e383d5c
---
sepolicy/mediatek.te | 2 ++
1 file changed, 2 insertions(+)
mode change 100644 => 100755 sepolicy/mediatek.te

diff --git a/sepolicy/mediatek.te b/sepolicy/mediatek.te
old mode 100644
new mode 100755
index 24efe33..6b6dc99
--- a/sepolicy/mediatek.te
+++ b/sepolicy/mediatek.te
@@ -6,6 +6,8 @@ allow init mnt_product_file:dir mounton;

type mtk_hal_audio, domain;
typeattribute mtk_hal_audio hal_broadcastradio_client;
+allow mtk_hal_audio audioserver:fifo_file write;
+allow mtk_hal_audio untrusted_app:fifo_file write;

type mtk_hal_power, domain;
allow mtk_hal_power system_data_root_file:file create_file_perms;
--
2.39.2

0 comments on commit 267b1b3

Please sign in to comment.