1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2015 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 17<manifest xmlns:android="http://schemas.android.com/apk/res/android" 18 package="com.android.cts.usepermission"> 19 20 <uses-sdk android:minSdkVersion="22" android:targetSdkVersion="22" /> 21 22 <!-- Make sure permission code can handle invalid permissions --> 23 <uses-permission android:name="com.android.cts.usepermission.INVALID_PERMISSION_NAME"/> 24 25 <!-- Request two different permissions within the same group --> 26 <uses-permission android:name="android.permission.SEND_SMS" /> 27 <uses-permission android:name="android.permission.RECEIVE_SMS" /> 28 29 <!-- Contacts --> 30 <!-- Deliberately request WRITE_CONTACTS but *not* READ_CONTACTS --> 31 <uses-permission android:name="android.permission.WRITE_CONTACTS"/> 32 33 <!-- Calendar --> 34 <uses-permission android:name="android.permission.READ_CALENDAR"/> 35 <uses-permission android:name="android.permission.WRITE_CALENDAR"/> 36 37 <!-- SMS --> 38 <uses-permission android:name="android.permission.SEND_SMS"/> 39 <uses-permission android:name="android.permission.RECEIVE_SMS"/> 40 <uses-permission android:name="android.permission.READ_SMS"/> 41 <uses-permission android:name="android.permission.RECEIVE_WAP_PUSH"/> 42 <uses-permission android:name="android.permission.RECEIVE_MMS"/> 43 <uses-permission android:name="android.permission.READ_CELL_BROADCASTS"/> 44 45 <!-- Storage --> 46 <!-- Special case: WRITE_EXTERNAL_STORAGE implies READ_EXTERNAL_STORAGE --> 47 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> 48 49 <!-- Location --> 50 <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> 51 <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> 52 53 <!-- Phone --> 54 <uses-permission android:name="android.permission.READ_PHONE_STATE"/> 55 <uses-permission android:name="android.permission.CALL_PHONE"/> 56 <uses-permission android:name="android.permission.READ_CALL_LOG"/> 57 <uses-permission android:name="android.permission.WRITE_CALL_LOG"/> 58 <uses-permission android:name="com.android.voicemail.permission.ADD_VOICEMAIL"/> 59 <uses-permission android:name="android.permission.USE_SIP"/> 60 <uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS"/> 61 62 <!-- Phone --> 63 <uses-permission android:name="android.permission.RECORD_AUDIO"/> 64 65 <!-- Camera --> 66 <uses-permission android:name="android.permission.CAMERA"/> 67 68 <!-- Body Sensors --> 69 <uses-permission android:name="android.permission.BODY_SENSORS"/> 70 71 <application> 72 <uses-library android:name="android.test.runner" /> 73 <activity android:name=".BasePermissionActivity" /> 74 <activity android:name=".AutoClosingActivity" android:exported="true" /> 75 <service android:name=".PermissionCheckerService" android:exported="true" /> 76 </application> 77 78 <instrumentation 79 android:name="androidx.test.runner.AndroidJUnitRunner" 80 android:targetPackage="com.android.cts.usepermission" /> 81 82</manifest> 83