* 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
12 lines
448 B
Plaintext
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)
|