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