1# allow HWC to access power hal 2hal_client_domain(hal_graphics_composer_default, hal_power) 3 4hal_client_domain(hal_graphics_composer_default, hal_graphics_allocator) 5 6# access sysfs R/W 7allow hal_graphics_composer_default sysfs_display:dir search; 8allow hal_graphics_composer_default sysfs_display:file rw_file_perms; 9 10# allow HWC to r/w backlight 11allow hal_graphics_composer_default sysfs_leds:dir r_dir_perms; 12allow hal_graphics_composer_default sysfs_leds:file rw_file_perms; 13 14# socket / vnd service 15allow hal_graphics_composer_default self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl; 16vndbinder_use(hal_graphics_composer_default) 17 18# boot stauts prop 19get_prop(hal_graphics_composer_default, boot_status_prop); 20 21# allow HWC to get device_config_surface_flinger_native_boot_prop for adpf flags 22get_prop(hal_graphics_composer_default, device_config_surface_flinger_native_boot_prop) 23 24add_service(hal_graphics_composer_default, hal_pixel_display_service) 25 26# allow HWC/libdisplaycolor to read calibration data 27allow hal_graphics_composer_default mnt_vendor_file:dir search; 28allow hal_graphics_composer_default persist_file:dir search; 29allow hal_graphics_composer_default persist_display_file:file r_file_perms; 30allow hal_graphics_composer_default persist_display_file:dir search; 31 32# allow HWC to get/set vendor_display_prop 33set_prop(hal_graphics_composer_default, vendor_display_prop) 34 35# allow HWC to access vendor_displaycolor_service 36add_service(hal_graphics_composer_default, vendor_displaycolor_service) 37 38add_service(hal_graphics_composer_default, vendor_surfaceflinger_vndservice) 39 40# allow HWC to read/write/search hwc_log_file 41allow hal_graphics_composer_default vendor_hwc_log_file:dir rw_dir_perms; 42allow hal_graphics_composer_default vendor_hwc_log_file:file create_file_perms; 43allow hal_graphics_composer_default vendor_log_file:dir search; 44 45# allow HWC to access powerstats 46allow hal_graphics_composer_default hal_power_stats_vendor_service:service_manager find; 47binder_call(hal_graphics_composer_default, hal_power_stats_default) 48 49# allow HWC to access IStats AIDL 50allow hal_graphics_composer_default fwk_stats_service:service_manager find; 51binder_call(hal_graphics_composer_default, system_server); 52