diff --git a/non_plat/device.te b/non_plat/device.te index 28fb117..73edc27 100644 --- a/non_plat/device.te +++ b/non_plat/device.te @@ -161,6 +161,7 @@ type mdlog_device, dev_type; type md32_device, dev_type; type scp_device, dev_type; type adsp_device, dev_type; +type audio_scp_device, dev_type; type sspm_device, dev_type; type etb_device, dev_type; type MT_pmic_adc_cali_device, dev_type; diff --git a/non_plat/file_contexts b/non_plat/file_contexts index 78bc86f..5820956 100644 --- a/non_plat/file_contexts +++ b/non_plat/file_contexts @@ -328,6 +328,7 @@ /dev/ancservice(/.*)? u:object_r:ancservice_device:s0 /dev/offloadservice(/.*)? u:object_r:offloadservice_device:s0 /dev/audio_ipi(/.*)? u:object_r:audio_ipi_device:s0 +/dev/audio_scp(/.*)? u:object_r:audio_scp_device:s0 /dev/irtx u:object_r:irtx_device:s0 /dev/spm(/.*)? u:object_r:spm_device:s0 /dev/xt_qtaguid(/.*)? u:object_r:xt_qtaguid_device:s0 diff --git a/non_plat/mtk_hal_audio.te b/non_plat/mtk_hal_audio.te index 8e6ab9c..5e81407 100644 --- a/non_plat/mtk_hal_audio.te +++ b/non_plat/mtk_hal_audio.te @@ -218,6 +218,7 @@ binder_call(mtk_hal_audio, mtk_hal_power) binder_call(mtk_hal_audio, merged_hal_service) # cm4 smartpa allow mtk_hal_audio audio_ipi_device:chr_file { read write ioctl open }; +allow mtk_hal_audio audio_scp_device:chr_file r_file_perms; # Date : WK18.21 # Operation: P migration