summaryrefslogtreecommitdiff
path: root/sepolicy/whitechapel/vendor/google/ofl_app.te
blob: a9498165c0bca953ef4d41db84bc7fd31d49d55d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# OFLBasicAgent app

type ofl_app, domain;

userdebug_or_eng(`
  app_domain(ofl_app)
  net_domain(ofl_app)

  allow ofl_app app_api_service:service_manager find;
  allow ofl_app nfc_service:service_manager find;
  allow ofl_app radio_service:service_manager find;
  allow ofl_app surfaceflinger_service:service_manager find;

  # Access to directly update firmware on st54spi_device
  typeattribute st54spi_device mlstrustedobject;
  allow ofl_app st54spi_device:chr_file rw_file_perms;
  # Access to directly update firmware on st33spi_device
  typeattribute st33spi_device mlstrustedobject;
  allow ofl_app st33spi_device:chr_file rw_file_perms;
')