1# Allow the audio hal to access the EdgeTPU service and the 2# Android shared memory allocated by the EdgeTPU service for 3# on-device compilation. 4allow hal_audio_default edgetpu_device:chr_file rw_file_perms; 5allow hal_audio_default edgetpu_vendor_service:service_manager find; 6binder_call(hal_audio_default, edgetpu_vendor_server) 7 8# Allow edgetpu_app_service as well, due to the EdgeTpu metrics logging 9# library has a dependency on edgetpu_app_service, see b/275016466. 10allow hal_audio_default edgetpu_app_service:service_manager find; 11binder_call(hal_audio_default, edgetpu_app_server) 12 13# Allow audio HAL to read tflite Darwinn delegate properties 14get_prop(hal_audio_default, vendor_tflite_delegate_prop) 15 16# Allow audio HAL to read DarwiNN runtime properties 17get_prop(hal_audio_default, vendor_edgetpu_runtime_prop) 18 19# Allow audio HAL to read hetero runtime properties 20get_prop(hal_audio_default, vendor_hetero_runtime_prop) 21 22# Allow DMA Buf access. 23allow hal_audio_default dmabuf_system_heap_device:chr_file r_file_perms; 24 25# Allow audio HAL to connect to the stats service for logging EdgeTpu metrics. 26allow hal_audio_default fwk_stats_service:service_manager find; 27 28# Allow audio HAL to send EdgeTpu trace packets to Perfetto. 29# Enable for prod devices, see: go/darwinn-perfetto-critical-events 30perfetto_producer(hal_audio_default) 31