1# nfc subsystem 2type nfc, domain, domain_deprecated; 3app_domain(nfc) 4net_domain(nfc) 5binder_service(nfc) 6 7# Set NFC properties 8set_prop(nfc, nfc_prop) 9 10# NFC device access. 11allow nfc nfc_device:chr_file rw_file_perms; 12 13# Data file accesses. 14allow nfc nfc_data_file:dir create_dir_perms; 15allow nfc nfc_data_file:notdevfile_class_set create_file_perms; 16 17allow nfc sysfs_nfc_power_writable:file rw_file_perms; 18allow nfc sysfs:file write; 19 20# TODO: added to match above sysfs rule. Remove me? 21allow nfc sysfs_usb:file write; 22 23# SoundPool loading and playback 24allow nfc audioserver_service:service_manager find; 25allow nfc drmserver_service:service_manager find; 26allow nfc mediacodec_service:service_manager find; 27allow nfc mediaextractor_service:service_manager find; 28allow nfc mediaserver_service:service_manager find; 29 30allow nfc nfc_service:service_manager { add find }; 31allow nfc radio_service:service_manager find; 32allow nfc surfaceflinger_service:service_manager find; 33allow nfc app_api_service:service_manager find; 34allow nfc system_api_service:service_manager find; 35 36# already open bugreport file descriptors may be shared with 37# the nfc process, from a file in 38# /data/data/com.android.shell/files/bugreports/bugreport-*. 39allow nfc shell_data_file:file read; 40