1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2017 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.server.cts.device.statsdatom"
19     android:versionCode="10">
20    <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/>
21    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
22    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
23    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
24    <uses-permission android:name="android.permission.BLUETOOTH"/>
25    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
26    <uses-permission android:name="android.permission.BLUETOOTH_ADVERTISE"/>
27    <uses-permission android:name="android.permission.BLUETOOTH_CONNECT"/>
28    <uses-permission android:name="android.permission.BLUETOOTH_SCAN"/>
29    <uses-permission android:name="android.permission.CAMERA"/>
30    <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>
31    <uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE"/>
32    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
33    <uses-permission android:name="android.permission.CONFIGURE_DISPLAY_BRIGHTNESS"/>
34    <uses-permission android:name="android.permission.DUMP"/> <!-- must be granted via pm grant -->
35    <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
36    <uses-permission android:name="android.permission.INTERNET"/>
37    <uses-permission android:name="android.permission.READ_SYNC_STATS"/>
38    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
39    <uses-permission android:name="android.permission.VIBRATE"/>
40    <uses-permission android:name="android.permission.WAKE_LOCK"/>
41    <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS"/>
42    <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/>
43    <uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM"/>
44
45    <application android:label="@string/app_name">
46        <uses-library android:name="android.test.runner"/>
47        <uses-library android:name="org.apache.http.legacy"
48             android:required="false"/>
49
50        <service android:name=".StatsdCtsBackgroundService"
51             android:exported="true"/>
52        <service android:name=".LmkVictimBackgroundService"
53             android:process=":lmk_victim"
54             android:exported="true"/>
55        <activity android:name=".StatsdCtsForegroundActivity"
56             android:exported="true"/>
57        <service android:name=".StatsdCtsForegroundService"
58             android:foregroundServiceType="camera"
59             android:exported="true"/>
60
61        <activity android:name=".StatsdCtsNonResizeablePortraitActivity"
62                  android:resizeableActivity="false"
63                  android:screenOrientation="portrait"
64                  android:exported="true"/>
65        <activity android:name=".StatsdCtsMinAspectRatioPortraitActivity"
66                  android:resizeableActivity="false"
67                  android:screenOrientation="portrait"
68                  android:minAspectRatio="3"
69                  android:exported="true"/>
70
71        <activity android:name=".VideoPlayerActivity"
72             android:label="@string/app_name"
73             android:resizeableActivity="true"
74             android:supportsPictureInPicture="true"
75             android:configChanges="screenSize|smallestScreenSize|screenLayout|orientation"
76             android:launchMode="singleTop"
77             android:exported="true">
78            <intent-filter>
79                <action android:name="android.intent.action.MAIN"/>
80                <category android:name="android.intent.category.LAUNCHER"/>
81            </intent-filter>
82        </activity>
83
84        <activity android:name=".DaveyActivity"
85             android:exported="true"/>
86        <activity android:name=".ANRActivity"
87             android:label="ANR Test Activity"
88             android:launchMode="singleInstance"
89             android:process=":ANRProcess"
90             android:exported="true"/>
91
92        <service android:name=".StatsdAuthenticator"
93             android:exported="false">
94            <intent-filter>
95                <action android:name="android.accounts.AccountAuthenticator"/>
96            </intent-filter>
97
98            <meta-data android:name="android.accounts.AccountAuthenticator"
99                 android:resource="@xml/authenticator"/>
100        </service>
101        <service android:name="StatsdSyncService"
102             android:exported="false">
103            <intent-filter>
104                <action android:name="android.content.SyncAdapter"/>
105            </intent-filter>
106            <meta-data android:name="android.content.SyncAdapter"
107                 android:resource="@xml/syncadapter"/>
108        </service>
109
110        <provider android:name=".StatsdProvider"
111             android:authorities="com.android.server.cts.device.statsdatom.provider"/>
112
113        <service android:name=".StatsdJobService"
114             android:permission="android.permission.BIND_JOB_SERVICE"/>
115
116        <service android:name=".DummyCallscreeningService"
117             android:permission="android.permission.BIND_SCREENING_SERVICE"
118             android:exported="true">
119            <intent-filter>
120                <action android:name="android.telecom.CallScreeningService"/>
121            </intent-filter>
122        </service>
123
124        <service android:name=".IsolatedProcessService"
125             android:isolatedProcess="true"/>
126    </application>
127
128    <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
129         android:targetPackage="com.android.server.cts.device.statsdatom"
130         android:label="CTS tests of android.os.statsdatom stats collection">
131        <meta-data android:name="listener"
132             android:value="com.android.cts.runner.CtsTestRunListener"/>
133    </instrumentation>
134</manifest>
135