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.permission2.cts" android:targetSandboxVersion="2"> 20 21 <uses-permission android:name="android.permission.DISABLE_KEYGUARD" /> 22 <application> 23 <uses-library android:name="android.test.runner" /> 24 </application> 25 26 <!-- 27 This app contains tests to verify specialized permissions, that require the app to have 28 some permissions. 29 --> 30 31 <!-- need ability to send sms, to test that SMS's cannot be received --> 32 <uses-permission android:name="android.permission.SEND_SMS"/> 33 34 <!-- needs read phone state to get current phone number --> 35 <uses-permission android:name="android.permission.READ_PHONE_STATE"/> 36 37 <!-- need app that has WRITE_SETTINGS but not WRITE_SECURE_SETTINGS --> 38 <uses-permission android:name="android.permission.WRITE_SETTINGS"/> 39 40 <!-- need app that has CALL_PHONE but not PROCESS_OUTGOING_CALL --> 41 <uses-permission android:name="android.permission.CALL_PHONE"/> 42 43 44 <uses-permission android:name="android.permission.WRITE_CONTACTS"/> 45 46 <!-- need app that has RECORD_AUDIO but not CAPTURE_AUDIO_OUTPUT --> 47 <uses-permission android:name="android.permission.RECORD_AUDIO"/> 48 49 <!-- need app that has READ_CONTACTS but not READ_PROFILE --> 50 <uses-permission android:name="android.permission.READ_CONTACTS"/> 51 52 <!-- need app that has WRITE_CONTACTS but not WRITE_PROFILE --> 53 <uses-permission android:name="android.permission.WRITE_CONTACTS"/> 54 55 <!-- need a permission that would ordinarily be granted, but has a maxSdkVersion that 56 causes it to be withheld under the current API level --> 57 <uses-permission 58 android:name="android.permission.INTERNET" 59 android:maxSdkVersion="18"/> 60 61 62 <!-- need a permission that will be granted --> 63 <uses-permission 64 android:name="android.permission.ACCESS_NETWORK_STATE" 65 android:maxSdkVersion="9000"/> 66 67 <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner" 68 android:targetPackage="android.permission2.cts" 69 android:label="More CTS tests for permissions"> 70 <meta-data android:name="listener" 71 android:value="com.android.cts.runner.CtsTestRunListener" /> 72 </instrumentation> 73 74 </manifest> 75 76