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
This commit is contained in:
committed by
Jean Graff
parent
42e6a9e1f8
commit
20bb266be8
7
sepolicy/vendor/hal_audio_default.te
vendored
7
sepolicy/vendor/hal_audio_default.te
vendored
@@ -2,3 +2,10 @@ 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)
|
||||
|
||||
3
sepolicy/vendor/system_server.te
vendored
3
sepolicy/vendor/system_server.te
vendored
@@ -6,3 +6,6 @@ allow system_server vendor_keylayout_file:dir r_dir_perms;
|
||||
allow system_server vendor_keylayout_file:file r_file_perms;
|
||||
allow system_server vendor_idc_file:dir r_dir_perms;
|
||||
allow system_server vendor_idc_file:file r_file_perms;
|
||||
|
||||
# MotSpeakerHelperProximity
|
||||
binder_call(system_server, hal_audio_default)
|
||||
|
||||
Reference in New Issue
Block a user