1# OFLBasicAgent app
2
3type ofl_app, domain;
4
5userdebug_or_eng(`
6  app_domain(ofl_app)
7  net_domain(ofl_app)
8
9  allow ofl_app app_api_service:service_manager find;
10  allow ofl_app nfc_service:service_manager find;
11  allow ofl_app radio_service:service_manager find;
12  allow ofl_app surfaceflinger_service:service_manager find;
13
14  # Access to directly update firmware on st54spi_device
15  typeattribute st54spi_device mlstrustedobject;
16  allow ofl_app st54spi_device:chr_file rw_file_perms;
17  # Access to directly update firmware on st33spi_device
18  typeattribute st33spi_device mlstrustedobject;
19  allow ofl_app st33spi_device:chr_file rw_file_perms;
20')
21