From cafafc593434e8f3e7d61bb6a2d280557da03ef4 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Fri, 17 Aug 2018 23:43:53 +0200 Subject: [PATCH] Fix QtiAudio --- sepolicy/qualcomm.te | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sepolicy/qualcomm.te b/sepolicy/qualcomm.te index 8395342..9774d76 100644 --- a/sepolicy/qualcomm.te +++ b/sepolicy/qualcomm.te @@ -1,6 +1,9 @@ +attribute rild_26_0; +attribute rild_27_0; + #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 }; +allow { rild_26_0 rild_27_0 system_app } { rild_26_0 rild_27_0 system_app }:binder { call transfer }; #Pixel 1 type vnd_qcril_audio_hwservice, hwservice_manager_type; @@ -10,6 +13,9 @@ allow system_app vnd_qcril_audio_hwservice:hwservice_manager { find }; type vnd_qcrilhook_hwservice, hwservice_manager_type; allow system_app vnd_qcrilhook_hwservice:hwservice_manager { find }; +#OP6 +allow system_app hal_telephony_hwservice:hwservice_manager { find }; + # cf https://github.com/phhusson/treble_experimentations/issues/131 # SELinux : avc: denied { add } for interface=android.hardware.tetheroffload.control::IOffloadControl pid=15220 scontext=u:r:ipacm:s0 tcontext=u:object_r:hal_tetheroffload_hwservice:s0 tclass=hwservice_manager permissive=0 type ipacm, hwservice_manager_type;