summaryrefslogtreecommitdiff
path: root/permissions
diff options
context:
space:
mode:
authorYegor Malyshev <emalyshev@google.com>2020-01-07 13:10:53 +0100
committerYegor Malyshev <emalyshev@google.com>2020-01-11 16:13:57 +0000
commit6f85e641e0a33941c13dbbb69431f93168710d05 (patch)
treedf9c61bca416f16581fc77e5336bf663259a5aee /permissions
parentfc4b5166096c3b41937ca5987205d76b55403883 (diff)
downloadatv-6f85e641e0a33941c13dbbb69431f93168710d05.tar.gz
Disable camera features/server on TV SDK
Making camera unavailable on TV SDK also requires disabling all camera features by android.app.cts.SystemFeaturesTest#testCameraFeatures. Bug: 146211936 Test: run cts --module CtsCameraTestCases, CtsAppTestCases android.app.cts.SystemFeaturesTest#testCameraFeatures Change-Id: I172f4c5ab309468dcc235eec55857b10c5d57144 (cherry picked from commit 5321f24ea5902ed1ead7f47bd4cdbc8858923255)
Diffstat (limited to 'permissions')
-rw-r--r--permissions/tv_sdk_excluded_core_hardware.xml28
1 files changed, 28 insertions, 0 deletions
diff --git a/permissions/tv_sdk_excluded_core_hardware.xml b/permissions/tv_sdk_excluded_core_hardware.xml
new file mode 100644
index 0000000..5611ada
--- /dev/null
+++ b/permissions/tv_sdk_excluded_core_hardware.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2019 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!-- Excludes all non-default ATV SDK features to comply with CTS -->
+<permissions>
+ <!-- ATV SDK is not designed to have any cameras by default -->
+ <unavailable-feature name="android.hardware.camera" />
+ <unavailable-feature name="android.hardware.camera.front" />
+ <unavailable-feature name="android.hardware.camera.any" />
+ <unavailable-feature name="android.hardware.camera.ar" />
+ <unavailable-feature name="android.hardware.camera.autofocus" />
+ <unavailable-feature name="android.hardware.camera.level.full" />
+ <unavailable-feature name="android.hardware.camera.capability.manual_sensor" />
+ <unavailable-feature name="android.hardware.camera.capability.manual_post_processing" />
+</permissions>