1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 * Copyright (C) 2009 The Android Open Source Project 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 --> 17 18<manifest xmlns:android="http://schemas.android.com/apk/res/android" 19 package="android.permissionpolicy.cts" android:targetSandboxVersion="2"> 20 21 <uses-permission android:name="android.permission.DISABLE_KEYGUARD" /> 22 <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" /> 23 <application> 24 <uses-library android:name="android.test.runner" /> 25 </application> 26 27 <!-- 28 This app contains tests to verify specialized permissions, that require the app to have 29 some permissions. 30 --> 31 32 <!-- need ability to send sms, to test that SMS's cannot be received --> 33 <uses-permission android:name="android.permission.SEND_SMS"/> 34 35 <!-- needs read phone numbers to get current phone number for R+ --> 36 <uses-permission android:name="android.permission.READ_PHONE_NUMBERS"/> 37 38 <!-- needs read phone status to get current phone subscription info for R+ --> 39 <uses-permission android:name="android.permission.READ_PHONE_STATE"/> 40 41 <!-- need app that has WRITE_SETTINGS but not WRITE_SECURE_SETTINGS --> 42 <uses-permission android:name="android.permission.WRITE_SETTINGS"/> 43 44 <!-- need app that has CALL_PHONE but not PROCESS_OUTGOING_CALL --> 45 <uses-permission android:name="android.permission.CALL_PHONE"/> 46 47 <!-- need app that has RECORD_AUDIO but not CAPTURE_AUDIO_OUTPUT --> 48 <uses-permission android:name="android.permission.RECORD_AUDIO"/> 49 50 <!-- need app that has READ_CONTACTS but not READ_PROFILE --> 51 <uses-permission android:name="android.permission.READ_CONTACTS"/> 52 53 <!-- need app that has WRITE_CONTACTS but not WRITE_PROFILE --> 54 <uses-permission android:name="android.permission.WRITE_CONTACTS"/> 55 56 <!-- need a permission that would ordinarily be granted, but has a maxSdkVersion that 57 causes it to be withheld under the current API level --> 58 <uses-permission 59 android:name="android.permission.INTERNET" 60 android:maxSdkVersion="18"/> 61 62 63 <!-- need a permission that will be granted --> 64 <uses-permission 65 android:name="android.permission.ACCESS_NETWORK_STATE" 66 android:maxSdkVersion="9000"/> 67 68 <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner" 69 android:targetPackage="android.permissionpolicy.cts" 70 android:label="More CTS tests for permissions"> 71 </instrumentation> 72 73</manifest> 74 75