• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# nfc subsystem
2typeattribute nfc coredomain, mlstrustedsubject;
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;
14allow nfc nfc_logs_data_file:dir rw_dir_perms;
15allow nfc nfc_logs_data_file:file create_file_perms;
16
17# SoundPool loading and playback
18allow nfc audioserver_service:service_manager find;
19allow nfc drmserver_service:service_manager find;
20allow nfc mediametrics_service:service_manager find;
21allow nfc mediaextractor_service:service_manager find;
22allow nfc mediaserver_service:service_manager find;
23
24allow nfc radio_service:service_manager find;
25allow nfc app_api_service:service_manager find;
26allow nfc system_api_service:service_manager find;
27allow nfc vr_manager_service:service_manager find;
28allow nfc secure_element_service:service_manager find;
29
30set_prop(nfc, nfc_prop);
31
32# already open bugreport file descriptors may be shared with
33# the nfc process, from a file in
34# /data/data/com.android.shell/files/bugreports/bugreport-*.
35allow nfc shell_data_file:file read;
36