2017-03-23 00:08:41 +01:00
|
|
|
# HwBinder IPC from client to server, and callbacks
|
|
|
|
binder_call(hal_nfc_client, hal_nfc_server)
|
|
|
|
binder_call(hal_nfc_server, hal_nfc_client)
|
2016-10-25 21:42:39 +02:00
|
|
|
|
2017-04-14 04:05:27 +02:00
|
|
|
add_hwservice(hal_nfc_server, hal_nfc_hwservice)
|
|
|
|
allow hal_nfc_client hal_nfc_hwservice:hwservice_manager find;
|
|
|
|
|
2016-10-25 21:42:39 +02:00
|
|
|
# Set NFC properties (used by bcm2079x HAL).
|
|
|
|
set_prop(hal_nfc, nfc_prop)
|
|
|
|
|
|
|
|
# NFC device access.
|
|
|
|
allow hal_nfc nfc_device:chr_file rw_file_perms;
|
|
|
|
|
|
|
|
# Data file accesses.
|
|
|
|
allow hal_nfc nfc_data_file:dir create_dir_perms;
|
2017-04-25 23:57:33 +02:00
|
|
|
allow hal_nfc nfc_data_file:{ file lnk_file fifo_file } create_file_perms;
|