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 20bb266be8 msm8953-common: Give audio hal access to prox and spkr calibration data
* Speaker (and receiver) calibration files are located on persist
  partition. Grant audio permission to find and read these files.

* Moto's libspeakerbundle needs access to the proximity sensor,
  so allow it to find sensorservice so MotSpeakerHelperProximity
  can instantiate SensorManager.

Change-Id: I888a424fc1c42dea0f130adfc74e02e47927e2b8
2021-01-03 21:39:10 -03:00

12 lines
448 B
Plaintext

unix_socket_connect(hal_audio_default, perfd, perfd)
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)