Allow NNAPI HAL services access model files provided by privapp.

Bug: 131169221
Test: mm
Change-Id: I1004821bd30e2a0586b14178e352e885cabfc002
(cherry picked from commit aa568e1c79)
This commit is contained in:
Miao Wang 2019-04-24 16:44:41 -07:00
parent 75b25384bb
commit 8c2f4babee

View File

@ -8,6 +8,7 @@ allow hal_neuralnetworks hal_allocator:fd use;
# 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 hal_neuralnetworks_server privapp_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 };