summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Nicoara <dnicoara@google.com>2017-04-28 15:21:42 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-04-28 15:21:42 +0000
commit957cfc2a4e2244a83ddfaf6ba2da74aee24f0767 (patch)
treedc0caed56e5b32d1add4b80fd3387b7ccbcc556e
parente05ba1a3ca865d61a36df57045c3154a1bd205d3 (diff)
parent3da860ba4f6c1bf228d8333ffe1a8bfbaf1db7f9 (diff)
downloaddevice_google_vrservices-957cfc2a4e2244a83ddfaf6ba2da74aee24f0767.tar.gz
device_google_vrservices-957cfc2a4e2244a83ddfaf6ba2da74aee24f0767.tar.bz2
device_google_vrservices-957cfc2a4e2244a83ddfaf6ba2da74aee24f0767.zip
Allow VrCore to access VR HWC and Virtual Touchpad servicesandroid-o-mr1-preview-2android-o-mr1-preview-1
am: 3da860ba4f Change-Id: I32f31486b81dcc5ffe15531a1cb80b3552a72e0b
-rw-r--r--vrcore/sepolicy/vr_hwc.te3
-rw-r--r--vrcore/sepolicy/vrcore_app.te2
2 files changed, 5 insertions, 0 deletions
diff --git a/vrcore/sepolicy/vr_hwc.te b/vrcore/sepolicy/vr_hwc.te
new file mode 100644
index 0000000..2b5730c
--- /dev/null
+++ b/vrcore/sepolicy/vr_hwc.te
@@ -0,0 +1,3 @@
+# VrCore registers a callback with VR HWC. The callback is then used to post new
+# frames to VrCore.
+binder_call(vr_hwc, vrcore_app)
diff --git a/vrcore/sepolicy/vrcore_app.te b/vrcore/sepolicy/vrcore_app.te
index 4515b50..71cd9a4 100644
--- a/vrcore/sepolicy/vrcore_app.te
+++ b/vrcore/sepolicy/vrcore_app.te
@@ -27,6 +27,8 @@ allow vrcore_app app_api_service:service_manager find;
# VrCore-specific services.
allow vrcore_app vr_manager_service:service_manager find;
+allow vrcore_app vr_hwc_service:service_manager find;
+allow vrcore_app virtual_touchpad_service:service_manager find;
# gdbserver for ndk-gdb ptrace attaches to app process.
allow vrcore_app self:process ptrace;