5131ff6544
This prebuilt is based on the AOSP policy, but slightly manipulated so that the set of types and attributes are identical with R policy. Following types are removed. boot_status_prop dalvik_config_prop gnss_device surfaceflinger_color_prop surfaceflinger_prop systemsound_config_prop vold_config_prop vold_status_prop Following type is renamed. wificond_service -> wifinl80211_service Bug: 153661471 Test: N/A Change-Id: I018d5e43f53c2bf721db1d13f5f4be42b9782b29
33 lines
958 B
Text
33 lines
958 B
Text
type vr_hwc, domain;
|
|
type vr_hwc_exec, system_file_type, exec_type, file_type;
|
|
|
|
# Get buffer metadata.
|
|
hal_client_domain(vr_hwc, hal_graphics_allocator)
|
|
|
|
binder_use(vr_hwc)
|
|
binder_service(vr_hwc)
|
|
|
|
binder_call(vr_hwc, surfaceflinger)
|
|
# Needed to check for app permissions.
|
|
binder_call(vr_hwc, system_server)
|
|
|
|
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).
|
|
pdx_client(vr_hwc, display_client)
|
|
|
|
# Requires access to the permission service to validate that clients have the
|
|
# appropriate VR permissions.
|
|
allow vr_hwc permission_service:service_manager find;
|
|
|
|
allow vr_hwc vrflinger_vsync_service:service_manager find;
|