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.FOREGROUND_SERVICE_CAMERA"/>
37    <uses-permission android:name="android.permission.INTERNET"/>
38    <uses-permission android:name="android.permission.READ_SYNC_STATS"/>
39    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
40    <uses-permission android:name="android.permission.TURN_SCREEN_ON"/>
41    <uses-permission android:name="android.permission.VIBRATE"/>
42    <uses-permission android:name="android.permission.WAKE_LOCK"/>
43    <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS"/>
44    <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/>
45    <uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM"
46                     android:maxSdkVersion="32"/>
47    <uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
48    <uses-permission android:name="android.permission.USE_EXACT_ALARM"/>
49
50    <application android:label="@string/app_name"
51        android:appCategory="game">
52        <meta-data android:name="android.game_mode_config"
53                   android:resource="@xml/game_mode_config" />
54        <uses-library android:name="android.test.runner"/>
55        <uses-library android:name="org.apache.http.legacy"
56             android:required="false"/>
57
58        <service android:name=".StatsdCtsBackgroundService"
59             android:exported="true"/>
60        <service android:name=".LmkVictimBackgroundService"
61             android:process=":lmk_victim"
62             android:exported="true"/>
63        <activity android:name=".StatsdCtsForegroundActivity"
64             android:exported="true"/>
65        <service android:name=".StatsdCtsForegroundService"
66             android:foregroundServiceType="camera"
67             android:exported="true"/>
68
69        <activity android:name=".StatsdCtsNonResizeablePortraitActivity"
70                  android:resizeableActivity="false"
71                  android:screenOrientation="portrait"
72                  android:exported="true"/>
73        <activity android:name=".StatsdCtsMinAspectRatioPortraitActivity"
74                  android:resizeableActivity="false"
75                  android:screenOrientation="portrait"
76                  android:minAspectRatio="3"
77                  android:exported="true"/>
78
79        <activity android:name=".VideoPlayerActivity"
80             android:label="@string/app_name"
81             android:resizeableActivity="true"
82             android:supportsPictureInPicture="true"
83             android:configChanges="screenSize|smallestScreenSize|screenLayout|orientation"
84             android:launchMode="singleTop"
85             android:exported="true">
86            <intent-filter>
87                <action android:name="android.intent.action.MAIN"/>
88                <category android:name="android.intent.category.LAUNCHER"/>
89            </intent-filter>
90        </activity>
91
92        <activity android:name=".DaveyActivity"
93             android:exported="true"/>
94        <activity android:name=".MediaProjectionTests$MediaProjectionActivity"
95            android:exported="true"/>
96        <activity android:name=".ANRActivity"
97             android:label="ANR Test Activity"
98             android:launchMode="singleInstance"
99             android:process=":ANRProcess"
100             android:exported="true"/>
101        <service android:name=".StatsdAuthenticator"
102             android:exported="false">
103            <intent-filter>
104                <action android:name="android.accounts.AccountAuthenticator"/>
105            </intent-filter>
106
107            <meta-data android:name="android.accounts.AccountAuthenticator"
108                 android:resource="@xml/authenticator"/>
109        </service>
110        <service android:name="StatsdSyncService"
111             android:exported="false">
112            <intent-filter>
113                <action android:name="android.content.SyncAdapter"/>
114            </intent-filter>
115            <meta-data android:name="android.content.SyncAdapter"
116                 android:resource="@xml/syncadapter"/>
117        </service>
118
119        <provider android:name=".StatsdProvider"
120             android:authorities="com.android.server.cts.device.statsdatom.provider"/>
121
122        <service android:name=".StatsdJobService"
123             android:permission="android.permission.BIND_JOB_SERVICE"/>
124
125        <service android:name=".DummyCallscreeningService"
126             android:permission="android.permission.BIND_SCREENING_SERVICE"
127             android:exported="true">
128            <intent-filter>
129                <action android:name="android.telecom.CallScreeningService"/>
130            </intent-filter>
131        </service>
132
133        <service android:name=".IsolatedProcessService"
134             android:isolatedProcess="true"/>
135
136        <activity android:name=".TurnScreenOnActivity"
137            android:exported="true"
138            android:turnScreenOn="true"
139            android:showWhenLocked="true" />
140    </application>
141
142    <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
143         android:targetPackage="com.android.server.cts.device.statsdatom"
144         android:label="CTS tests of android.os.statsdatom stats collection">
145    </instrumentation>
146</manifest>
147