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