1# Rules for audio service.
2type hiavplayer, domain;
3type hiavplayer_exec, exec_type, vendor_file_type, file_type;
4
5init_daemon_domain(hiavplayer)
6
7vndbinder_use(hiavplayer)
8binder_call(hiavplayer, vndservicemanager)
9
10allow hiavplayer hiavplayer_service:service_manager { add };
11allow hiavplayer hal_audio_default:binder { transfer call };
12allow hiavplayer hal_audio_default:fd { use };
13allow hiavplayer hi_sys_device:chr_file { read write open ioctl };
14allow hiavplayer hi_vfmw_device:chr_file { open read write ioctl getattr};
15allow hiavplayer hi_userproc_device:chr_file { read write open ioctl };
16allow hiavplayer hi_log_device:chr_file { read write open getattr ioctl };
17allow hiavplayer hi_mem_device:chr_file { read write open ioctl };
18allow hiavplayer hi_module_device:chr_file { read write open ioctl };
19allow hiavplayer hi_stat_device:chr_file { read write open ioctl };
20allow hiavplayer hi_userproc_device:chr_file { read write open ioctl };
21allow hiavplayer hi_vdec_device:chr_file { read write open ioctl };
22allow hiavplayer hi_sync_device:chr_file { read write open ioctl };
23allow hiavplayer hi_ao_device:chr_file { read write open ioctl };
24allow hiavplayer hi_vo_device:chr_file { read write open ioctl };
25allow hiavplayer mmz_userdev_device:chr_file { read write open ioctl };
26allow hiavplayer hi_adec_device:chr_file { read write open ioctl };
27allow hiavplayer mediacodec:binder { call };
28
29# neverallow
30# binder_in_vendor_violators, vendor_executes_system_violators;
31