Skip to content
Snippets Groups Projects
Commit 794542ba authored by Chenyang Zhong's avatar Chenyang Zhong Committed by Arian
Browse files

sm8350-common: sepolicy: Set sensor HAL as a client of audio HAL


Elliptic ultrasonic proximity sensor's libnotifyaudiohal looks for
the audio HAL during elliptic's activate().

avc:  denied  { find } for interface=android.hardware.audio::IDevicesFactory sid=u:r:hal_sensors_default:s0 pid=970 scontext=u:r:hal_sensors_default:s0 tcontext=u:object_r:hal_audio_hwservice:s0 tclass=hwservice_manager permissive=0

Change-Id: Ibcd6693acb49c810e8ce1f0ea86cf2238ad10a70
Signed-off-by: default avatarChenyang Zhong <zhongcy95@gmail.com>
parent 564e70fb
No related branches found
No related tags found
No related merge requests found
......@@ -7,3 +7,6 @@ allow hal_sensors_default hal_audio_default:unix_stream_socket connectto;
allow hal_sensors_default iio_device:chr_file r_file_perms;
allow hal_sensors_default vendor_sysfs_iio:dir r_dir_perms;
allow hal_sensors_default vendor_sysfs_iio:file rw_file_perms;
hal_client_domain(hal_sensors_default, hal_audio)
allow hal_sensors_default hal_audio_hwservice:hwservice_manager find;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment