Add sepolicy for Twoshay Notification Service

Test: The notification service is successfully running.
Flag: com.google.android.input.twoshay.flags.enable_notification_service
Bug: 385001604

Change-Id: I8bb8a894ecc88d588e867022a0c61d8d8a5560ca
Signed-off-by: Hyungwoo Yang <hyungwooyang@google.com>
This commit is contained in:
Hyungwoo Yang 2024-12-20 07:49:29 +00:00
parent cc790dd80c
commit f720f9e87e
6 changed files with 26 additions and 6 deletions

View file

@ -1,4 +1,5 @@
allow platform_app gril_antenna_tuning_service:service_manager find;
allow platform_app screen_protector_detector_service:service_manager find;
allow platform_app touch_context_service:service_manager find;
allow platform_app twoshay_notification_service:service_manager find;
binder_call(platform_app, twoshay)

View file

@ -1,3 +1,4 @@
type gril_antenna_tuning_service, service_manager_type, hal_service_type;
type screen_protector_detector_service, service_manager_type, hal_service_type;
type touch_context_service, service_manager_type, hal_service_type;
type twoshay_notification_service, service_manager_type, hal_service_type;

View file

@ -1,3 +1,4 @@
com.google.input.ITouchContextService/default u:object_r:touch_context_service:s0
com.google.input.ITwoshayNotificationService/default u:object_r:twoshay_notification_service:s0
com.google.input.algos.gril.IGrilAntennaTuningService/default u:object_r:gril_antenna_tuning_service:s0
com.google.input.algos.spd.IScreenProtectorDetectorService/default u:object_r:screen_protector_detector_service:s0

View file

@ -10,6 +10,7 @@ binder_use(twoshay)
add_service(twoshay, gril_antenna_tuning_service)
add_service(twoshay, screen_protector_detector_service)
add_service(twoshay, touch_context_service)
add_service(twoshay, twoshay_notification_service)
binder_call(twoshay, platform_app)