1# HwBinder IPC client/server 2binder_call(hal_vibrator_client, hal_vibrator_server) 3binder_call(hal_vibrator_server, hal_vibrator_client); 4 5hal_attribute_hwservice(hal_vibrator, hal_vibrator_hwservice) 6 7add_service(hal_vibrator_server, hal_vibrator_service) 8binder_call(hal_vibrator_server, servicemanager) 9 10allow hal_vibrator_client hal_vibrator_service:service_manager find; 11 12allow hal_vibrator_server dumpstate:fifo_file write; 13 14# vibrator sysfs rw access 15allow hal_vibrator sysfs_vibrator:file rw_file_perms; 16allow hal_vibrator sysfs_vibrator:dir search; 17