2017-03-14 21:26:17 +01:00
|
|
|
type vr_hwc, domain;
|
2018-09-27 19:21:37 +02:00
|
|
|
type vr_hwc_exec, system_file_type, exec_type, file_type;
|
2017-03-14 21:26:17 +01:00
|
|
|
|
|
|
|
# Get buffer metadata.
|
|
|
|
hal_client_domain(vr_hwc, hal_graphics_allocator)
|
|
|
|
|
|
|
|
binder_use(vr_hwc)
|
|
|
|
binder_service(vr_hwc)
|
|
|
|
|
|
|
|
binder_call(vr_hwc, surfaceflinger)
|
2017-04-20 23:34:52 +02:00
|
|
|
# Needed to check for app permissions.
|
|
|
|
binder_call(vr_hwc, system_server)
|
2017-03-14 21:26:17 +01:00
|
|
|
|
|
|
|
add_service(vr_hwc, vr_hwc_service)
|
|
|
|
|
|
|
|
# Hosts the VR HWC implementation and provides a simple Binder interface for VR
|
|
|
|
# Window Manager to receive the layers/buffers.
|
|
|
|
hwbinder_use(vr_hwc)
|
|
|
|
|
|
|
|
# Load vendor libraries.
|
|
|
|
allow vr_hwc system_file:dir r_dir_perms;
|
|
|
|
|
|
|
|
allow vr_hwc ion_device:chr_file r_file_perms;
|
|
|
|
|
|
|
|
# Allow connection to VR DisplayClient to get the primary display metadata
|
|
|
|
# (ie: size).
|
2017-05-01 22:01:44 +02:00
|
|
|
pdx_client(vr_hwc, display_client)
|
2017-04-20 23:34:52 +02:00
|
|
|
|
|
|
|
# Requires access to the permission service to validate that clients have the
|
|
|
|
# appropriate VR permissions.
|
|
|
|
allow vr_hwc permission_service:service_manager find;
|
2018-07-14 02:17:01 +02:00
|
|
|
|
|
|
|
allow vr_hwc vrflinger_vsync_service:service_manager find;
|