1 type hal_wlc, domain; 2 type hal_wlc_exec, exec_type, vendor_file_type, file_type; 3 4 hwbinder_use(hal_wlc) 5 add_hwservice(hal_wlc, hal_wlc_hwservice) 6 get_prop(hal_wlc, hwservicemanager_prop) 7 8 init_daemon_domain(hal_wlc) 9 10 # Allow access to /sys/class/power_supply/wireless 11 r_dir_file(hal_wlc, sysfs_batteryinfo) 12 13 # Allow access to /sys/devices/platform/soc/a88000.i2c/i2c-0/0-0061 14 r_dir_file(hal_wlc, sysfs_wlc) 15 allow hal_wlc sysfs_wlc:file rw_file_perms; 16