hal_audiocontrol: use hal_attribute_service
This macro creates the necessary neverallow to assert the hal_audiocontrol_{client,server} attribute has exclusive ownership of the service. Bug: 176180039 Test: build/TH Change-Id: I2046e31f5cf04b560b842a03eafbec597443f15f
This commit is contained in:
parent
831fddd794
commit
42a02d77ed
1 changed files with 1 additions and 3 deletions
|
@ -3,8 +3,6 @@ binder_call(hal_audiocontrol_client, hal_audiocontrol_server)
|
|||
binder_call(hal_audiocontrol_server, hal_audiocontrol_client)
|
||||
|
||||
hal_attribute_hwservice(hal_audiocontrol, hal_audiocontrol_hwservice)
|
||||
hal_attribute_service(hal_audiocontrol, hal_audiocontrol_service)
|
||||
|
||||
add_service(hal_audiocontrol_server, hal_audiocontrol_service)
|
||||
binder_call(hal_audiocontrol_server, servicemanager)
|
||||
|
||||
allow hal_audiocontrol_client hal_audiocontrol_service:service_manager find;
|
||||
|
|
Loading…
Reference in a new issue