• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# HwBinder IPC from client to server, and callbacks
2binder_call(hal_graphics_composer_client, hal_graphics_composer_server)
3binder_call(hal_graphics_composer_server, hal_graphics_composer_client)
4
5add_hwservice(hal_graphics_composer_server, hal_graphics_composer_hwservice)
6allow hal_graphics_composer_client hal_graphics_composer_hwservice:hwservice_manager find;
7
8# Coordinate with hal_graphics_mapper
9allow hal_graphics_composer_server hal_graphics_mapper_hwservice:hwservice_manager find;
10
11# GPU device access
12allow hal_graphics_composer gpu_device:chr_file rw_file_perms;
13allow hal_graphics_composer ion_device:chr_file r_file_perms;
14allow hal_graphics_composer hal_graphics_allocator:fd use;
15
16# Access /dev/graphics/fb0.
17allow hal_graphics_composer graphics_device:dir search;
18allow hal_graphics_composer graphics_device:chr_file rw_file_perms;
19
20# Fences
21allow hal_graphics_composer system_server:fd use;
22allow hal_graphics_composer bootanim:fd use;
23allow hal_graphics_composer appdomain:fd use;
24
25# allow self to set SCHED_FIFO
26allow hal_graphics_composer self:capability sys_nice;
27