1*e4a36f41SAndroid Build Coastguard Worker# nfc subsystem 2*e4a36f41SAndroid Build Coastguard Workertypeattribute nfc coredomain, mlstrustedsubject; 3*e4a36f41SAndroid Build Coastguard Workerapp_domain(nfc) 4*e4a36f41SAndroid Build Coastguard Workernet_domain(nfc) 5*e4a36f41SAndroid Build Coastguard Worker 6*e4a36f41SAndroid Build Coastguard Workerbinder_service(nfc) 7*e4a36f41SAndroid Build Coastguard Workeradd_service(nfc, nfc_service) 8*e4a36f41SAndroid Build Coastguard Worker 9*e4a36f41SAndroid Build Coastguard Workerhal_client_domain(nfc, hal_nfc) 10*e4a36f41SAndroid Build Coastguard Worker 11*e4a36f41SAndroid Build Coastguard Worker# Data file accesses. 12*e4a36f41SAndroid Build Coastguard Workerallow nfc nfc_data_file:dir create_dir_perms; 13*e4a36f41SAndroid Build Coastguard Workerallow nfc nfc_data_file:notdevfile_class_set create_file_perms; 14*e4a36f41SAndroid Build Coastguard Workerallow nfc nfc_logs_data_file:dir rw_dir_perms; 15*e4a36f41SAndroid Build Coastguard Workerallow nfc nfc_logs_data_file:file create_file_perms; 16*e4a36f41SAndroid Build Coastguard Worker 17*e4a36f41SAndroid Build Coastguard Worker# SoundPool loading and playback 18*e4a36f41SAndroid Build Coastguard Workerallow nfc audioserver_service:service_manager find; 19*e4a36f41SAndroid Build Coastguard Workerallow nfc drmserver_service:service_manager find; 20*e4a36f41SAndroid Build Coastguard Workerallow nfc mediametrics_service:service_manager find; 21*e4a36f41SAndroid Build Coastguard Workerallow nfc mediaextractor_service:service_manager find; 22*e4a36f41SAndroid Build Coastguard Workerallow nfc mediaserver_service:service_manager find; 23*e4a36f41SAndroid Build Coastguard Worker 24*e4a36f41SAndroid Build Coastguard Workerallow nfc radio_service:service_manager find; 25*e4a36f41SAndroid Build Coastguard Workerallow nfc app_api_service:service_manager find; 26*e4a36f41SAndroid Build Coastguard Workerallow nfc system_api_service:service_manager find; 27*e4a36f41SAndroid Build Coastguard Workerallow nfc vr_manager_service:service_manager find; 28*e4a36f41SAndroid Build Coastguard Workerallow nfc secure_element_service:service_manager find; 29*e4a36f41SAndroid Build Coastguard Worker 30*e4a36f41SAndroid Build Coastguard Workerset_prop(nfc, nfc_prop); 31*e4a36f41SAndroid Build Coastguard Worker 32*e4a36f41SAndroid Build Coastguard Worker# already open bugreport file descriptors may be shared with 33*e4a36f41SAndroid Build Coastguard Worker# the nfc process, from a file in 34*e4a36f41SAndroid Build Coastguard Worker# /data/data/com.android.shell/files/bugreports/bugreport-*. 35*e4a36f41SAndroid Build Coastguard Workerallow nfc shell_data_file:file read; 36