1# HwBinder IPC from client to server 2binder_call(hal_graphics_allocator_client, hal_graphics_allocator_server) 3 4hal_attribute_hwservice(hal_graphics_allocator, hal_graphics_allocator_hwservice) 5allow hal_graphics_allocator_client hal_graphics_mapper_hwservice:hwservice_manager find; 6allow hal_graphics_allocator_client hal_graphics_mapper_service:service_manager find; 7allow hal_graphics_allocator_client same_process_hal_file:file { execute read open getattr map }; 8 9# GPU device access 10allow hal_graphics_allocator gpu_device:chr_file rw_file_perms; 11allow hal_graphics_allocator gpu_device:dir r_dir_perms; 12allow hal_graphics_allocator ion_device:chr_file r_file_perms; 13allow hal_graphics_allocator dmabuf_system_heap_device:chr_file r_file_perms; 14 15# Access the secure heap 16allow hal_graphics_allocator dmabuf_system_secure_heap_device:chr_file r_file_perms; 17 18# allow to run with real-time scheduling policy 19allow hal_graphics_allocator self:global_capability_class_set sys_nice; 20 21# IAllocator stable-aidl 22hal_attribute_service(hal_graphics_allocator, hal_graphics_allocator_service) 23binder_call(hal_graphics_allocator_server, servicemanager) 24binder_call(hal_graphics_allocator_client, servicemanager) 25