From f1b959a0edaf363448a5b5e0cbce2d1d1d7eb13b Mon Sep 17 00:00:00 2001 From: Frank Yu Date: Mon, 18 Mar 2024 02:21:32 +0000 Subject: [PATCH] Update SEpolicy for grilservice_app register callbacks of AntennaTuningService. Remove callbacks from radioext native service to grilservice_app. Bug: 321790599 Test: Manual test. gripservice_app receive update from callback successfully. Because moving out the callbacks from radioext to grilservice_app, we don't need antennatuningservice bind to radioext anymore. Change-Id: I6827b506b9893e43d6d9268f623b33b848863a7c --- radio/hal_radioext_default.te | 6 ------ vendor/twoshay.te | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/radio/hal_radioext_default.te b/radio/hal_radioext_default.te index 9cd2f36..c978ffe 100644 --- a/radio/hal_radioext_default.te +++ b/radio/hal_radioext_default.te @@ -22,9 +22,3 @@ allow hal_radioext_default radio_vendor_data_file:file create_file_perms; # Bluetooth allow hal_radioext_default hal_bluetooth_coexistence_hwservice:hwservice_manager find; allow hal_radioext_default hal_bluetooth_coexistence_service:service_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 48829f3..83d9e1a 100644 --- a/vendor/twoshay.te +++ b/vendor/twoshay.te @@ -1,7 +1,7 @@ # Allow ITouchContextService callback binder_call(twoshay, systemui_app) -binder_call(twoshay, hal_radioext_default) +binder_call(twoshay, grilservice_app) # b/324278826 unix_socket_connect(twoshay, chre, chre)