1# ============================================== 2# MTK Policy Rule for plat_private 3# ============================================== 4 5# Date : WK14.32 6# Operation : Migration 7# Purpose : For audio dump and log 8allow audioserver sdcard_type:dir { w_dir_perms create }; 9allow audioserver sdcard_type:file create; 10allow audioserver sdcard_type:dir remove_name; 11allow audioserver sdcard_type:file unlink; 12 13# Date : WK14.34 14# Operation : Migration 15# Purpose : Smartcard Service 16allow audioserver system_data_file:file open; 17 18# Data : WK14.38 19# Operation : Migration 20# Purpose : for boot animation. 21allow audioserver bootanim:binder { transfer call }; 22 23# Data : WK14.38 24# Operation : Migration 25# Purpose : dump for debug 26allow audioserver sdcard_type:file append; 27 28# Data : WK14.46 29# Operation : Migration 30# Purpose : for SMS app 31allow audioserver radio_data_file:dir search; 32allow audioserver radio_data_file:file open; 33 34# Data : WK14.47 35# Operation : Audio playback 36# Purpose : Music as ringtone 37allow audioserver radio:dir { search read }; 38allow audioserver radio:file r_file_perms; 39 40# Data : WK14.47 41# Operation : CTS 42# Purpose : cts search strange app 43allow audioserver untrusted_app:dir search; 44 45# Date : WK15.34 46# Operation : Migration 47# Purpose: for camera middleware dump image buffer to sdcard & audio frameworks dump 48allow audioserver system_data_file:dir write; 49allow audioserver storage_file:lnk_file {read write}; 50allow audioserver mnt_user_file:dir {write read search}; 51allow audioserver mnt_user_file:lnk_file {read write}; 52 53# Purpose: Dump debug info 54allow audioserver kmsg_device:chr_file { open write }; 55allow audioserver property_socket:sock_file write; 56allow audioserver media_rw_data_file:dir { create_dir_perms }; 57allow audioserver init:unix_stream_socket connectto; 58 59# Date : WK16.27 60# Operation : Migration 61# Purpose: tunning tool update parameters 62allow audioserver media_rw_data_file:file { create_file_perms }; 63 64# Date : WK16.28 65# Operation : Migration 66# Purpose: Write audio dump files to external SDCard. 67allow audioserver sdcard_type:file { create_file_perms }; 68allow audioserver storage_file:dir { r_dir_perms }; 69 70# Date : W18.01 71# Add for turn on SElinux in enforcing mode 72allow audioserver self:netlink_kobject_uevent_socket { read create }; 73 74# Audio Tuning Tool Android O porting 75allow audioserver audiocmdservice_atci:binder call; 76