1# Allow reading of camera persist files. 2r_dir_file(hal_sensors_default, persist_camera_file) 3 4# Allow access to the files of CDT information. 5r_dir_file(hal_sensors_default, sysfs_chosen) 6 7# Allow sensor HAL to access the thermal service HAL 8hal_client_domain(hal_sensors_default, hal_thermal); 9 10# Allow display_info_service access to the backlight driver. 11allow hal_sensors_default sysfs_write_leds:file rw_file_perms; 12 13# Allow access for dynamic sensor properties. 14get_prop(hal_sensors_default, vendor_dynamic_sensor_prop) 15 16# Allow access to raw HID devices for dynamic sensors. 17allow hal_sensors_default hidraw_device:chr_file rw_file_perms; 18 19# Allow sensor HAL to access the display service HAL 20allow hal_sensors_default hal_pixel_display_service:service_manager find; 21 22# Allow sensor HAL to access the graphics composer. 23binder_call(hal_sensors_default, hal_graphics_composer_default) 24 25# Allow access to the power supply files for MagCC. 26allow hal_sensors_default sysfs_wlc:dir r_dir_perms; 27