-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
patches_treble/device_phh_treble/0010-Fix-Mediatek-Audio-HAL.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |