2019-10-06 19:01:34 -07:00
|
|
|
# HwBinder IPC client/server
|
2017-04-13 19:05:27 -07:00
|
|
|
binder_call(hal_vibrator_client, hal_vibrator_server)
|
2019-10-06 19:01:34 -07:00
|
|
|
binder_call(hal_vibrator_server, hal_vibrator_client);
|
2017-04-13 19:05:27 -07:00
|
|
|
|
2018-06-06 09:30:18 -07:00
|
|
|
hal_attribute_hwservice(hal_vibrator, hal_vibrator_hwservice)
|
2017-04-13 19:05:27 -07:00
|
|
|
|
2019-10-25 15:04:45 -07:00
|
|
|
add_service(hal_vibrator_server, hal_vibrator_service)
|
|
|
|
binder_call(hal_vibrator_server, servicemanager)
|
|
|
|
|
|
|
|
allow hal_vibrator_client hal_vibrator_service:service_manager find;
|
|
|
|
|
2019-12-09 11:17:55 -08:00
|
|
|
allow hal_vibrator_server dumpstate:fifo_file write;
|
|
|
|
|
2016-10-25 12:42:39 -07:00
|
|
|
# vibrator sysfs rw access
|
|
|
|
allow hal_vibrator sysfs_vibrator:file rw_file_perms;
|
2018-03-01 06:30:52 -08:00
|
|
|
allow hal_vibrator sysfs_vibrator:dir search;
|