From afafafd8a4003b00e60debc7d17e25e58ca10f26 Mon Sep 17 00:00:00 2001 From: Alan Date: Fri, 10 Mar 2023 23:55:54 +0800 Subject: [PATCH] Add permissions to connect radioext to twoshay. Connection through grilantennatuningservice binder call. Test: manual Bug: 258970389 Change-Id: I419b40042cce363428f72fa723adf89bcf269ef4 --- radio/hal_radioext_default.te | 6 ++++++ vendor/twoshay.te | 2 ++ 2 files changed, 8 insertions(+) diff --git a/radio/hal_radioext_default.te b/radio/hal_radioext_default.te index 521c0950..5a6a6e92 100644 --- a/radio/hal_radioext_default.te +++ b/radio/hal_radioext_default.te @@ -18,3 +18,9 @@ allow hal_radioext_default radio_vendor_data_file:file create_file_perms; # Bluetooth allow hal_radioext_default hal_bluetooth_coexistence_hwservice:hwservice_manager find; + +# Twoshay +binder_use(hal_radioext_default) +allow hal_radioext_default gril_antenna_tuning_service:service_manager find; +binder_call(hal_radioext_default, gril_antenna_tuning_service) +binder_call(hal_radioext_default, twoshay) diff --git a/vendor/twoshay.te b/vendor/twoshay.te index 09cc98e1..219619ac 100644 --- a/vendor/twoshay.te +++ b/vendor/twoshay.te @@ -1,2 +1,4 @@ # Allow ITouchContextService callback binder_call(twoshay, systemui_app) + +binder_call(twoshay, hal_radioext_default)