1# nfc subsystem 2typeattribute nfc coredomain; 3app_domain(nfc) 4net_domain(nfc) 5 6binder_service(nfc) 7add_service(nfc, nfc_service) 8 9hal_client_domain(nfc, hal_nfc) 10 11# Data file accesses. 12allow nfc nfc_data_file:dir create_dir_perms; 13allow nfc nfc_data_file:notdevfile_class_set create_file_perms; 14 15# SoundPool loading and playback 16allow nfc audioserver_service:service_manager find; 17allow nfc drmserver_service:service_manager find; 18allow nfc mediacodec_service:service_manager find; 19allow nfc mediametrics_service:service_manager find; 20allow nfc mediaextractor_service:service_manager find; 21allow nfc mediaserver_service:service_manager find; 22 23allow nfc radio_service:service_manager find; 24allow nfc app_api_service:service_manager find; 25allow nfc system_api_service:service_manager find; 26allow nfc vr_manager_service:service_manager find; 27allow nfc secure_element_service:service_manager find; 28 29set_prop(nfc, nfc_prop); 30 31# already open bugreport file descriptors may be shared with 32# the nfc process, from a file in 33# /data/data/com.android.shell/files/bugreports/bugreport-*. 34allow nfc shell_data_file:file read; 35