Support the dump of nfc service in incident reports.

Bug: 177389412
Bug: 177624172
Bug: 177780408
Bug: 178757209
Bug: 178757537
Bug: 178757649
Test: $ make selinux_policy
      Push SELinux modules

      Run the following commands and ensure incidentd denials are gone.
      $ adb shell incident 3052
      $ incident_report 3052
      $ adb bugreport bugreport.zip

Change-Id: Ida1bcee3ad075cc875b6a7e430dc392259942828
This commit is contained in:
Alex Hong 2021-03-09 18:02:33 +08:00
parent b01e0a22a5
commit 8b230727e7

View file

@ -53,6 +53,9 @@ binder_call(incidentd, statsd)
allow incidentd perfetto_traces_data_file:dir r_dir_perms;
allow incidentd perfetto_traces_data_file:file r_file_perms;
# section id 3052, allow accessing nfc_service
allow incidentd nfc_service:service_manager find;
# Create and write into /data/misc/incidents
allow incidentd incident_data_file:dir rw_dir_perms;
allow incidentd incident_data_file:file create_file_perms;