1 type vr_hwc, domain; 2 type vr_hwc_exec, exec_type, file_type; 3 4 # Get buffer metadata. 5 hal_client_domain(vr_hwc, hal_graphics_allocator) 6 7 binder_use(vr_hwc) 8 binder_service(vr_hwc) 9 10 binder_call(vr_hwc, surfaceflinger) 11 # Needed to check for app permissions. 12 binder_call(vr_hwc, system_server) 13 14 add_service(vr_hwc, vr_hwc_service) 15 16 # Hosts the VR HWC implementation and provides a simple Binder interface for VR 17 # Window Manager to receive the layers/buffers. 18 hwbinder_use(vr_hwc) 19 20 # Load vendor libraries. 21 allow vr_hwc system_file:dir r_dir_perms; 22 23 allow vr_hwc ion_device:chr_file r_file_perms; 24 25 # Allow connection to VR DisplayClient to get the primary display metadata 26 # (ie: size). 27 pdx_client(vr_hwc, display_client) 28 29 # Requires access to the permission service to validate that clients have the 30 # appropriate VR permissions. 31 allow vr_hwc permission_service:service_manager find; 32