• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1type modem_diagnostic_app, domain;
2
3app_domain(modem_diagnostic_app)
4net_domain(modem_diagnostic_app)
5
6allow modem_diagnostic_app app_api_service:service_manager find;
7allow modem_diagnostic_app radio_service:service_manager find;
8
9userdebug_or_eng(`
10  hal_client_domain(modem_diagnostic_app, hal_power_stats);
11
12  binder_call(modem_diagnostic_app, dmd)
13
14  set_prop(modem_diagnostic_app, vendor_cbd_prop)
15  set_prop(modem_diagnostic_app, vendor_rild_prop)
16  set_prop(modem_diagnostic_app, vendor_modem_prop)
17
18  allow modem_diagnostic_app sysfs_chosen:dir r_dir_perms;
19  allow modem_diagnostic_app sysfs_chosen:file r_file_perms;
20
21  allow modem_diagnostic_app vendor_fw_file:file r_file_perms;
22
23  allow modem_diagnostic_app radio_vendor_data_file:dir create_dir_perms;
24  allow modem_diagnostic_app radio_vendor_data_file:file create_file_perms;
25
26  allow modem_diagnostic_app mnt_vendor_file:dir r_dir_perms;
27  allow modem_diagnostic_app mnt_vendor_file:file r_file_perms;
28
29  allow modem_diagnostic_app modem_img_file:dir r_dir_perms;
30  allow modem_diagnostic_app modem_img_file:file r_file_perms;
31  allow modem_diagnostic_app modem_img_file:lnk_file r_file_perms;
32
33  allow modem_diagnostic_app hal_vendor_oem_hwservice:hwservice_manager find;
34
35  allow modem_diagnostic_app sysfs_batteryinfo:file r_file_perms;
36  allow modem_diagnostic_app sysfs_batteryinfo:dir search;
37
38  dontaudit modem_diagnostic_app default_prop:file r_file_perms;
39')
40