1# 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 5hal_attribute_hwservice(hal_light, hal_light_hwservice) 6 7# client finds and uses server via service_manager 8allow hal_light_client hal_light_service:service_manager find; 9binder_use(hal_light_client) 10 11# server adds itself via service_manager 12add_service(hal_light_server, hal_light_service) 13binder_call(hal_light_server, servicemanager) 14 15allow hal_light_server dumpstate:fifo_file write; 16 17allow 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; 20