Merge "NeuralNetworks: Allow Neural networks to access perfhal."

This commit is contained in:
qctecmdr 2021-06-10 07:06:12 -07:00 committed by Gerrit - the friendly Code Review server
commit a60235d186

View file

@ -28,6 +28,7 @@
type vendor_hal_neuralnetworks_default, domain;
hal_server_domain(vendor_hal_neuralnetworks_default, hal_neuralnetworks)
hal_client_domain(vendor_hal_neuralnetworks_default, hal_graphics_allocator)
hal_client_domain(vendor_hal_neuralnetworks_default, vendor_hal_perf)
# allow access to hal_allocator
hal_client_domain(vendor_hal_neuralnetworks_default, hal_allocator)
@ -43,9 +44,6 @@ allow vendor_hal_neuralnetworks_default ion_device:chr_file r_file_perms;
# Allow access to dmabuf
allow vendor_hal_neuralnetworks_default dmabuf_system_heap_device:chr_file r_file_perms;
#Allow access to perfhal
allow vendor_hal_neuralnetworks_default vendor_hal_perf_hwservice:hwservice_manager find;
allow vendor_hal_neuralnetworks_default app_data_file:file { read getattr map };
allow vendor_hal_neuralnetworks_default shell_data_file:file { read getattr map };
allow vendor_hal_neuralnetworks_default vendor_hal_neuralnetworks_data_file:dir create_dir_perms;