blob: e74d3843a3997e64a98006dce2098a4c54709cf2 [file] [log] [blame]
allow hal_power_stats_default sysfs_msm_wlan:dir search; # Needed to traverse to wlan stats file
get_prop(hal_power_stats_default, exported_wifi_prop) # Needed to detect wifi on/off
r_dir_file(hal_power_stats_default, sysfs_iio_devices) # Needed to traverse to odpm files
r_dir_file(hal_power_stats_default, sysfs_airbrush) # Needed to access airbrush files
r_dir_file(hal_power_stats_default, sysfs_power_stats)
r_dir_file(hal_power_stats_default, sysfs_msm_subsys)
allow hal_power_stats_default pwrstats_device:chr_file rw_file_perms;
# The following folders are incidentally accessed by hal_power_stats_default and are not needed.
dontaudit hal_power_stats_default sysfs_power_stats_ignore:dir r_dir_perms;
dontaudit hal_power_stats_default sysfs_power_stats_ignore:file r_file_perms;
vndbinder_use(hal_power_stats)
add_service(hal_power_stats_server, power_stats_service)
binder_call(hal_power_stats, citadeld)