1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2023 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16<manifest xmlns:android="http://schemas.android.com/apk/res/android" 17 package="android.tests.enforcepermission.tests"> 18 19 <!-- Expected permissions for the tests (not actually used). These 20 are granted automatically at runtime by Tradefed (see 21 GrantPermissionPreparer). --> 22 <!-- normal --> 23 <uses-permission android:name="android.permission.INTERNET" /> 24 <uses-permission android:name="android.permission.READ_SYNC_SETTINGS" /> 25 <!-- normal|appops --> 26 <uses-permission android:name="android.permission.TURN_SCREEN_ON" /> 27 <!-- dangerous --> 28 <uses-permission android:name="android.permission.READ_CONTACTS" /> 29 30 <!-- Used by the tests to activate/deactivate AppOps --> 31 <uses-permission android:name="android.permission.MANAGE_APP_OPS_MODES" /> 32 <uses-permission android:name="android.permission.MANAGE_APPOPS" /> 33 34 <queries> 35 <package android:name="android.tests.enforcepermission.service" /> 36 </queries> 37 38 <application> 39 <uses-library android:name="android.test.runner" /> 40 </application> 41 <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner" 42 android:targetPackage="android.tests.enforcepermission.tests"/> 43</manifest> 44