This repository has been archived on 2025-09-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
device_motorola_msm8953-common/sepolicy/vendor/hal_audio_default.te
Joshua Blanchard 3746c2f486 msm8953-common: sepolicy: Add missing rules for persist_audio_file
* Rules for persist_audio_file have been removed for legacy devices.

* Instead of labeling "/mnt/vendor/persist/audio", which is the default
  path for audio calibration, label "/mnt/vendor/persist/factory/audio"
  as this is where Moto devices store these calibration files anyway.

Change-Id: Ic27eb7f713e145a795cfec9de3c684fe9e2fc985
2021-03-05 15:28:17 +00:00

15 lines
577 B
Plaintext

unix_socket_connect(hal_audio_default, perfd, perfd)
allow hal_audio_default persist_audio_file:dir rw_dir_perms;
allow hal_audio_default persist_audio_file:file create_file_perms;
allow hal_audio_default sysfs:dir { open read };
allow hal_audio_default hal_dms_default:binder { transfer call };
allow hal_audio_default hal_dms_hwservice:hwservice_manager find;
# MotSpeakerHelperProximity
allow hal_audio_default fwk_sensor_hwservice:hwservice_manager find;
binder_call(hal_audio_default, system_server)
# Speaker Calibration
r_dir_file(hal_audio_default, mnt_vendor_file)