From 05bd363466a6648e421e9d2ebebd06ed77561d54 Mon Sep 17 00:00:00 2001 From: Eason Yen Date: Sat, 18 Jan 2020 10:07:01 +0800 Subject: [PATCH] [ALPS04085738] audio: add audio_ipi permission Add audio_ipi permission for factory mode and meta. MTK-Commit-Id: 3a16bc05d2cb3107f767a9ca76720db55cfffd2d Change-Id: I01e5ea1c018cb9617d2bb2e619f0b662b6494fc4 Signed-off-by: Eason Yen CR-Id: ALPS04085738 Feature: Factory Mode --- non_plat/factory.te | 1 + non_plat/meta_tst.te | 1 + 2 files changed, 2 insertions(+) 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 fm_device:chr_file rw_file_perms; 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 @@ allow meta_tst nvdata_device:blk_file rw_file_perms; # 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