1# For interfacing with PowerHAL 2hal_client_domain(hal_audio_default, hal_power); 3 4# For interfacing with ThermalHAL 5hal_client_domain(hal_audio_default, hal_thermal); 6 7# For QCOM diag port access 8userdebug_or_eng(` 9 allow hal_audio diag_device:chr_file rw_file_perms; 10'); 11 12r_dir_file(hal_audio_default, sysfs_soc); 13 14# read-only permission to obtain the calibration data 15r_dir_file(hal_audio_default, persist_audio_file); 16allow hal_audio_default mnt_vendor_file:dir search; 17allow hal_audio_default persist_file:lnk_file read; 18allow hal_audio_default persist_file:dir search; 19 20allow hal_audio_default audio_vendor_data_file:dir rw_dir_perms; 21allow hal_audio_default audio_vendor_data_file:file create_file_perms; 22allow hal_audio_default debugfs_ipc:dir r_dir_perms; 23 24# Allow hal audio to use wakelock 25wakelock_use(hal_audio_default) 26 27#Allow hal audio to use Binder IPC 28vndbinder_use(hal_audio); 29 30# For audio properties 31get_prop(hal_audio_default, vendor_audio_prop); 32 33# For audio hal to talk with rainbow sensor 34allow hal_audio_default rls_device:chr_file rw_file_perms; 35 36# Allow audio HAL to communicate with CHRE daemon via socket 37unix_socket_connect(hal_audio_default, chre, chre); 38