r_dir_file(hal_audio_default, sysfs_soc) hal_client_domain(hal_audio_default, hal_power) userdebug_or_eng(` allow hal_audio diag_device:chr_file rw_file_perms; ') # read-only permission to obtain the calibration data r_dir_file(hal_audio_default, persist_audio_file); allow hal_audio_default mnt_vendor_file:dir search; allow hal_audio_default persist_file:dir search; allow hal_audio_default audio_vendor_data_file:dir rw_dir_perms; allow hal_audio_default audio_vendor_data_file:file create_file_perms; allow hal_audio_default debugfs_ipc:dir search; # For interfacing with PowerHAL hal_client_domain(hal_audio_default, hal_power) # Allow hal to take wakelock wakelock_use(hal_audio_default) # read-only permission to obtain the soc data get_prop(hal_audio_default, vendor_bluetooth_prop)