1allow hal_graphics_composer_default display_vendor_data_file:dir search; 2allow hal_graphics_composer_default fwk_sensor_hwservice:hwservice_manager find; 3binder_call(hal_graphics_composer, sensor_service_server) 4allow hal_graphics_composer_default mnt_vendor_file:dir search; 5allow hal_graphics_composer_default persist_file:dir search; 6allow hal_graphics_composer_default ion_device:chr_file rw_file_perms; 7r_dir_file(hal_graphics_composer_default, persist_display_file); 8 9allow hal_graphics_composer_default self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl; 10 11allow hal_graphics_composer_default sysfs_leds:dir search; 12allow hal_graphics_composer_default sysfs_leds:file rw_file_perms; 13 14allow hal_graphics_composer_default sysfs_display:file rw_file_perms; 15 16r_dir_file(hal_graphics_composer_default, sysfs_msm_subsys) 17 18r_dir_file(hal_graphics_composer_default, sysfs_graphics) 19 20get_prop(hal_graphics_composer_default, vendor_display_prop) 21vndbinder_use(hal_graphics_composer_default) 22 23add_service(hal_graphics_composer_default, qdisplay_service) 24add_hwservice(hal_graphics_composer_default, hal_display_config_hwservice); 25 26dontaudit hal_graphics_composer_default sysfs_graphics_unused:file r_file_perms; 27 28userdebug_or_eng(` 29 allow hal_graphics_composer_default diag_device:chr_file rw_file_perms; 30') 31 32allow hal_graphics_composer_default oemfs:dir search; 33 34allow hal_graphics_composer_default sysfs_soc:dir search; 35allow hal_graphics_composer_default sysfs_soc:file r_file_perms; 36 37hal_client_domain(hal_graphics_composer_default, hal_graphics_allocator); 38 39# Allow r/w to data partition for writeback dumps 40allow hal_graphics_composer_default display_vendor_data_file:dir create_dir_perms; 41allow hal_graphics_composer_default display_vendor_data_file:file create_file_perms; 42 43#allow composer access hal_light 44hal_client_domain(hal_graphics_composer_default, hal_light); 45 46allow hal_graphics_composer_default pps_socket:sock_file write; 47 48add_service(hal_graphics_composer_default, hal_pixel_display_service) 49