1*e4a36f41SAndroid Build Coastguard Worker# HwBinder IPC client/server 2*e4a36f41SAndroid Build Coastguard Workerbinder_call(hal_vibrator_client, hal_vibrator_server) 3*e4a36f41SAndroid Build Coastguard Workerbinder_call(hal_vibrator_server, hal_vibrator_client); 4*e4a36f41SAndroid Build Coastguard Worker 5*e4a36f41SAndroid Build Coastguard Workerhal_attribute_hwservice(hal_vibrator, hal_vibrator_hwservice) 6*e4a36f41SAndroid Build Coastguard Workerhal_attribute_service(hal_vibrator, hal_vibrator_service) 7*e4a36f41SAndroid Build Coastguard Worker 8*e4a36f41SAndroid Build Coastguard Workerbinder_call(hal_vibrator_server, servicemanager) 9*e4a36f41SAndroid Build Coastguard Worker 10*e4a36f41SAndroid Build Coastguard Workerallow hal_vibrator_server dumpstate:fifo_file write; 11*e4a36f41SAndroid Build Coastguard Worker 12*e4a36f41SAndroid Build Coastguard Worker# vibrator sysfs rw access 13*e4a36f41SAndroid Build Coastguard Workerallow hal_vibrator sysfs_vibrator:file rw_file_perms; 14*e4a36f41SAndroid Build Coastguard Workerallow hal_vibrator sysfs_vibrator:dir search; 15*e4a36f41SAndroid Build Coastguard Worker 16*e4a36f41SAndroid Build Coastguard Worker# Allow HAL vibrator to control some parameters of a vibration, such as scaling. 17*e4a36f41SAndroid Build Coastguard Workerallow hal_vibrator fwk_vibrator_control_service:service_manager find; 18