Home | History | Annotate | Download | only in private
      1 # nfc subsystem
      2 typeattribute nfc coredomain;
      3 app_domain(nfc)
      4 net_domain(nfc)
      5 
      6 binder_service(nfc)
      7 add_service(nfc, nfc_service)
      8 
      9 hal_client_domain(nfc, hal_nfc)
     10 
     11 # Data file accesses.
     12 allow nfc nfc_data_file:dir create_dir_perms;
     13 allow nfc nfc_data_file:notdevfile_class_set create_file_perms;
     14 
     15 # SoundPool loading and playback
     16 allow nfc audioserver_service:service_manager find;
     17 allow nfc drmserver_service:service_manager find;
     18 allow nfc mediacodec_service:service_manager find;
     19 allow nfc mediametrics_service:service_manager find;
     20 allow nfc mediaextractor_service:service_manager find;
     21 allow nfc mediaserver_service:service_manager find;
     22 
     23 allow nfc radio_service:service_manager find;
     24 allow nfc surfaceflinger_service:service_manager find;
     25 allow nfc app_api_service:service_manager find;
     26 allow nfc system_api_service:service_manager find;
     27 allow nfc vr_manager_service:service_manager find;
     28 
     29 set_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-*.
     34 allow nfc shell_data_file:file read;
     35