From a6fec7be6cde3e7401ef8ebb7ec0040ccd6253f7 Mon Sep 17 00:00:00 2001 From: Pavel Maltsev Date: Wed, 4 Apr 2018 10:14:55 -0700 Subject: [PATCH] Allow OEMs to restrict access to secondary display This is crucial for automotive use-cases when OEMs want to restrict access to instrument cluster display by third-party apps Bug: 28864915 Bug: 70840956 Test: manually verify that secondary display with private flag is not accessible by third-party apps and accessible to apps with system uid Change-Id: I39e36c2ea73d879a4c7b01220ae852298d868fd5 --- core/res/res/values/config.xml | 4 ++++ core/res/res/values/symbols.xml | 1 + .../java/com/android/server/display/LocalDisplayAdapter.java | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 3cd80f2677e09..12e5dfef9e358 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -2249,6 +2249,10 @@ mirror the content of the default display. --> true + + false +