blob: 4aa824a6dcc87146fb356ec2b46436ec2efb8d6f [file] [log] [blame]
Alex Klyubin53656c12017-04-13 19:05:27 -07001# HwBinder IPC from client to server, and callbacks
2binder_call(hal_light_client, hal_light_server)
3binder_call(hal_light_server, hal_light_client)
4
Steven Moreland9234e002018-06-06 09:30:18 -07005hal_attribute_hwservice(hal_light, hal_light_hwservice)
Steven Moreland62aee3b2017-01-04 17:56:04 -08006
Robin Leee58b2d42020-04-02 18:38:15 +02007# server adds itself via service_manager
Ivailo Karamanolev254d7572020-01-21 16:37:44 +01008add_service(hal_light_server, hal_light_service)
9binder_call(hal_light_server, servicemanager)
10
Robin Leee58b2d42020-04-02 18:38:15 +020011# client finds and uses server via service_manager
Ivailo Karamanolev254d7572020-01-21 16:37:44 +010012allow hal_light_client hal_light_service:service_manager find;
Robin Leee58b2d42020-04-02 18:38:15 +020013binder_use(hal_light_client)
Ivailo Karamanolev254d7572020-01-21 16:37:44 +010014
15allow hal_light_server dumpstate:fifo_file write;
16
Steven Moreland62aee3b2017-01-04 17:56:04 -080017allow hal_light sysfs_leds:lnk_file read;
18allow hal_light sysfs_leds:file rw_file_perms;
19allow hal_light sysfs_leds:dir r_dir_perms;