From 9051eaf3f172568591cffe28824636f62771272d Mon Sep 17 00:00:00 2001
From: Craig Donner <cdonner@google.com>
Date: Tue, 7 Feb 2017 15:49:48 -0800
Subject: [PATCH] Allow untrusted apps to access VrManager.

There is only a single systemapi at the moment that is callable, and it is
protected by a signature/preinstalled permission.

(cherry picked from commit I778864afc9d02f8b2bfcf6b92a9f975ee87c4724)

Bug: 35059826,33297721
Test: manually on a marlin
Change-Id: I3789ce8238f5a52ead8f466dfa3045fbcef1958e
---
 private/untrusted_app.te | 1 +
 1 file changed, 1 insertion(+)

diff --git a/private/untrusted_app.te b/private/untrusted_app.te
index b6a80da36..50d79ee8b 100644
--- a/private/untrusted_app.te
+++ b/private/untrusted_app.te
@@ -82,6 +82,7 @@ allow untrusted_app nfc_service:service_manager find;
 allow untrusted_app radio_service:service_manager find;
 allow untrusted_app surfaceflinger_service:service_manager find;
 allow untrusted_app app_api_service:service_manager find;
+allow untrusted_app vr_manager_service:service_manager find;
 
 # Allow GMS core to access perfprofd output, which is stored
 # in /data/misc/perfprofd/. GMS core will need to list all
-- 
GitLab