1 r_dir_file(hal_audio_default, sysfs_soc) 2 3 hal_client_domain(hal_audio_default, hal_power) 4 5 userdebug_or_eng(` 6 allow hal_audio diag_device:chr_file rw_file_perms; 7 ') 8 9 # read-only permission to obtain the calibration data 10 r_dir_file(hal_audio_default, persist_audio_file); 11 allow hal_audio_default mnt_vendor_file:dir search; 12 allow hal_audio_default persist_file:dir search; 13 14 allow hal_audio_default audio_vendor_data_file:dir rw_dir_perms; 15 allow hal_audio_default audio_vendor_data_file:file create_file_perms; 16 allow hal_audio_default debugfs_ipc:dir search; 17 18 # For interfacing with PowerHAL 19 hal_client_domain(hal_audio_default, hal_power) 20 21 # Allow hal to take wakelock 22 wakelock_use(hal_audio_default) 23