Amy Zhang 12ab2a65c9 Fix Tuner Unit Tests permission and add a feature checker in the test
Test: adb shell setenforce 0
atest com.android.mediatunertest

Bug: 174500129
Change-Id: I01e1b47eb99170c20a24a2f1ad6b85a0a47e9110
2020-12-14 15:24:04 -08:00

35 lines
1.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2020 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.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.mediatunertest">
<uses-permission android:name="android.permission.ACCESS_TV_DESCRAMBLER" />
<uses-permission android:name="android.permission.ACCESS_TV_TUNER" />
<uses-permission android:name="android.permission.CREATE_USERS"/>
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS"/>
<uses-permission android:name="android.permission.MANAGE_USERS"/>
<uses-permission android:name="android.permission.TUNER_RESOURCE_ACCESS" />
<application android:label="@string/app_name">
<uses-library android:name="android.test.runner" />
</application>
<instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
android:targetPackage="com.android.mediatunertest"
android:label="Media Tuner Tests"/>
</manifest>