2017-09-26 21:58:29 +02:00
|
|
|
# HwBinder IPC from client to server, and callbacks
|
|
|
|
binder_call(hal_neuralnetworks_client, hal_neuralnetworks_server)
|
|
|
|
binder_call(hal_neuralnetworks_server, hal_neuralnetworks_client)
|
|
|
|
|
2018-06-06 18:30:18 +02:00
|
|
|
hal_attribute_hwservice(hal_neuralnetworks, hal_neuralnetworks_hwservice)
|
2017-09-26 21:58:29 +02:00
|
|
|
allow hal_neuralnetworks hidl_memory_hwservice:hwservice_manager find;
|
|
|
|
allow hal_neuralnetworks hal_allocator:fd use;
|
2018-12-08 02:24:24 +01:00
|
|
|
|
|
|
|
# Allow NN HAL service to use a client-provided fd residing in /data/data/.
|
|
|
|
allow hal_neuralnetworks_server app_data_file:file { read write getattr map };
|
|
|
|
|
|
|
|
# Allow NN HAL service to use a client-provided fd residing in /data/local/tmp/.
|
|
|
|
allow hal_neuralnetworks_server shell_data_file:file { read write getattr map };
|