[ALPS04085738] audio: add audio_ipi permission
Add audio_ipi permission for factory mode and meta.
Change-Id: I01e5ea1c018cb9617d2bb2e619f0b662b6494fc4
Signed-off-by: Eason Yen <eason.yen@mediatek.com>
CR-Id: ALPS04085738
Feature: Factory Mode
diff --git a/non_plat/factory.te b/non_plat/factory.te
index f713b46..1e81333 100644
--- a/non_plat/factory.te
+++ b/non_plat/factory.te
@@ -203,6 +203,7 @@
allow factory audio_device:chr_file rw_file_perms;
allow factory audio_device:dir w_dir_perms;
allow factory audiohal_prop:property_service set;
+allow factory audio_ipi_device:file { read open };
#Purpose: For key and touch event
allow factory input_device:chr_file r_file_perms;
diff --git a/non_plat/meta_tst.te b/non_plat/meta_tst.te
index 6878076..cdce5b0 100644
--- a/non_plat/meta_tst.te
+++ b/non_plat/meta_tst.te
@@ -68,6 +68,7 @@
# Purpose : for meta mode audio
allow meta_tst audio_device:chr_file rw_file_perms;
allow meta_tst audio_device:dir r_dir_perms;
+allow meta_tst audio_ipi_device:chr_file rw_file_perms;
set_prop(meta_tst, audiohal_prop);
# Date: WK16.12