1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2016 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.frameworks.tests.net">
19
20    <uses-permission android:name="android.permission.READ_LOGS" />
21    <uses-permission android:name="android.permission.WRITE_SETTINGS" />
22    <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
23    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
24    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
25    <uses-permission android:name="android.permission.BROADCAST_STICKY" />
26    <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
27    <uses-permission android:name="android.permission.UPDATE_DEVICE_STATS" />
28    <uses-permission android:name="android.permission.MANAGE_APP_TOKENS" />
29    <uses-permission android:name="android.permission.WAKE_LOCK" />
30    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
31    <uses-permission android:name="android.permission.REAL_GET_TASKS" />
32    <uses-permission android:name="android.permission.GET_DETAILED_TASKS" />
33    <uses-permission android:name="android.permission.MANAGE_NETWORK_POLICY" />
34    <uses-permission android:name="android.permission.READ_NETWORK_USAGE_HISTORY" />
35    <uses-permission android:name="android.permission.CONNECTIVITY_USE_RESTRICTED_NETWORKS" />
36    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
37    <uses-permission android:name="android.permission.MANAGE_USERS" />
38    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
39    <uses-permission android:name="android.permission.MANAGE_DEVICE_ADMINS" />
40    <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
41    <uses-permission android:name="android.permission.INTERNET" />
42    <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
43    <uses-permission android:name="android.permission.PACKET_KEEPALIVE_OFFLOAD" />
44    <uses-permission android:name="android.permission.GET_INTENT_SENDER_INTENT" />
45    <uses-permission android:name="android.permission.MANAGE_ACTIVITY_TASKS" />
46    <uses-permission android:name="android.permission.INSTALL_PACKAGES" />
47    <uses-permission android:name="android.permission.NETWORK_STACK" />
48    <uses-permission android:name="android.permission.OBSERVE_NETWORK_POLICY" />
49    <uses-permission android:name="android.permission.NETWORK_FACTORY" />
50    <uses-permission android:name="android.permission.NETWORK_STATS_PROVIDER" />
51    <uses-permission android:name="android.permission.CONTROL_OEM_PAID_NETWORK_PREFERENCE" />
52    <!-- Workaround for flakes where the launcher package is not found despite the <queries> tag
53         below (b/286550950). -->
54    <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
55
56    <!-- Declare the intent that the test intends to query. This is necessary for
57         UiDevice.getLauncherPackageName which is used in NetworkNotificationManagerTest
58    -->
59    <queries>
60        <intent>
61            <action android:name="android.intent.action.MAIN" />
62            <category android:name="android.intent.category.HOME"/>
63        </intent>
64    </queries>
65    <application android:testOnly="true">
66        <uses-library android:name="android.test.runner" />
67        <uses-library android:name="android.net.ipsec.ike" />
68        <activity
69            android:name="android.net.connectivity.com.android.server.connectivity.NetworkNotificationManagerTest$TestDialogActivity"/>
70    </application>
71
72    <instrumentation
73        android:name="androidx.test.runner.AndroidJUnitRunner"
74        android:targetPackage="com.android.frameworks.tests.net"
75        android:label="Frameworks Networking Tests" />
76</manifest>
77