Allowed EdgeTPU compilation services (tflite and nnapi) to access
overcommit_memory info. This is required as part of the compilation process, likely part of the jemalloc which was added recently. Bug: 190790251 Test: verified on local P21 device. Change-Id: I4d90ea92afd7beaa4c4efa6ed509d703764932a1
This commit is contained in:
parent
11ebd6122e
commit
643e5a7123
2 changed files with 6 additions and 0 deletions
|
@ -26,3 +26,6 @@ allow edgetpu_vendor_server hal_camera_default:fd use;
|
|||
# Allow EdgeTPU vendor service to read the kernel version.
|
||||
# This is done inside the InitGoogle.
|
||||
allow edgetpu_vendor_server proc_version:file r_file_perms;
|
||||
|
||||
# Allow EdgeTPU vendor service to read the overcommit_memory info.
|
||||
allow edgetpu_vendor_server proc_overcommit_memory:file r_file_perms;
|
||||
|
|
|
@ -33,3 +33,6 @@ binder_use(hal_neuralnetworks_darwinn)
|
|||
|
||||
# TPU NNAPI to register the service to service_manager.
|
||||
add_service(hal_neuralnetworks_darwinn, edgetpu_nnapi_service);
|
||||
|
||||
# Allow TPU NNAPI HAL to read the overcommit_memory info.
|
||||
allow hal_neuralnetworks_darwinn proc_overcommit_memory:file r_file_perms;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue