• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1allow hal_power_stats_default sysfs_msm_wlan:dir search; # Needed to traverse to wlan stats file
2get_prop(hal_power_stats_default, exported_wifi_prop) # Needed to detect wifi on/off
3r_dir_file(hal_power_stats_default, sysfs_iio_devices) # Needed to traverse odpm files
4r_dir_file(hal_power_stats_default, sysfs_power_stats) # Needed to traverse platform low power stats
5r_dir_file(hal_power_stats_default, sysfs_msm_subsys) # Needed to traverse subsystem low power stats
6r_dir_file(hal_power_stats_default, sysfs_leds) # Needed to track display stats
7
8# The following folders are incidentally accessed by hal_power_stats_default and are not needed.
9dontaudit hal_power_stats_default sysfs_power_stats_ignore:dir r_dir_perms;
10dontaudit hal_power_stats_default sysfs_power_stats_ignore:file r_file_perms;
11dontaudit hal_power_stats_default debugfs_wlan:dir search;
12dontaudit hal_power_stats_default sysfs:file read;
13
14vndbinder_use(hal_power_stats)
15add_service(hal_power_stats_server, power_stats_service)
16
17binder_call(hal_power_stats, citadeld)
18