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