• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# read factory calibration and sensor configuration data
2allow hal_sensors_default persist_file:dir search;
3r_dir_file(hal_sensors_default, persist_sensors_file)
4
5# interact with the sensors low power island (SLPI) CPU
6allow hal_sensors_default self:socket { create ioctl read write };
7allowxperm hal_sensors_default self:socket ioctl msm_sock_ipc_ioctls;
8r_dir_file(hal_sensors_default, sysfs_msm_subsys);
9
10allow hal_sensors_default qdsp_device:chr_file r_file_perms;
11
12userdebug_or_eng(`
13  r_dir_file(hal_sensors_default, sysfs_diag)
14  allow hal_sensors_default sysfs_timestamp_switch:file r_file_perms;
15  allow hal_sensors_default diag_device:chr_file rw_file_perms;
16')
17dontaudit hal_sensors_default diag_device:chr_file rw_file_perms;
18
19# Allow communication with CHRE daemon via socket
20allow hal_sensors_default chre:unix_stream_socket connectto;
21allow hal_sensors_default chre_socket:sock_file write;
22