1# allowed to access dislay stats sysfs node
2allow hal_power_stats_default sysfs_display:file r_file_perms;
3
4r_dir_file(hal_power_stats_default, sysfs_aoc)
5r_dir_file(hal_power_stats_default, sysfs_aoc_dumpstate)
6r_dir_file(hal_power_stats_default, sysfs_acpm_stats)
7r_dir_file(hal_power_stats_default, sysfs_cpu)
8r_dir_file(hal_power_stats_default, sysfs_display)
9r_dir_file(hal_power_stats_default, sysfs_edgetpu)
10r_dir_file(hal_power_stats_default, sysfs_iio_devices)
11r_dir_file(hal_power_stats_default, sysfs_leds)
12r_dir_file(hal_power_stats_default, sysfs_odpm)
13r_dir_file(hal_power_stats_default, sysfs_scsi_devices_0000)
14r_dir_file(hal_power_stats_default, sysfs_wifi)
15r_dir_file(hal_power_stats_default, powerstats_vendor_data_file)
16
17# Rail selection requires read/write permissions
18allow hal_power_stats_default sysfs_odpm:dir search;
19allow hal_power_stats_default sysfs_odpm:file rw_file_perms;
20
21# getStateResidency AIDL callback for Bluetooth HAL
22binder_call(hal_power_stats_default, hal_bluetooth_btlinux)
23