From 9b1ab76f4416a0e889932867901b5cbc0b6fbf45 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Fri, 29 Jun 2018 00:31:05 +0200 Subject: [PATCH] Add SELinux policy to access qualcomm audio HAL on Pixel-s --- sepolicy/qualcomm.te | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sepolicy/qualcomm.te b/sepolicy/qualcomm.te index 5bbc2a1..edde901 100644 --- a/sepolicy/qualcomm.te +++ b/sepolicy/qualcomm.te @@ -1,3 +1,11 @@ #me.phh.treble.qti.audio is system-signed allow system_app hal_telephony_hwservice:hwservice_manager { find }; allow { rild system_app } { rild system_app }:binder { call transfer }; + +#Pixel 1 +type vnd_qcril_audio_hwservice, hwservice_manager_type; +allow system_app vnd_qcril_audio_hwservice:hwservice_manager { find }; + +#Pixel 2 +type vnd_qcrilhook_hwservice, hwservice_manager_type; +allow system_app vnd_qcrilhook_hwservice:hwservice_manager { find };