blob: 4dd3b5a23d7a7c1e1606d34df6302771b569be16 [file] [log] [blame]
Remi NGUYEN VANbb592532019-06-20 18:29:36 +09001<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4 * Copyright (C) 2019 The Android Open Source Project
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18-->
19<manifest xmlns:android="http://schemas.android.com/apk/res/android"
Remi NGUYEN VANbb592532019-06-20 18:29:36 +090020 package="com.android.server.net.integrationtests">
21
22 <!-- For ConnectivityService registerReceiverAsUser (receiving broadcasts) -->
23 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
24 <!-- PermissionMonitor sets network permissions for each user -->
25 <uses-permission android:name="android.permission.MANAGE_USERS" />
26 <!-- ConnectivityService sends notifications to BatteryStats -->
27 <uses-permission android:name="android.permission.UPDATE_DEVICE_STATS" />
Remi NGUYEN VAN53f4cd02019-10-30 18:30:03 +090028 <!-- Reading network status -->
29 <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
30 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
31 <uses-permission android:name="android.permission.CONNECTIVITY_INTERNAL" />
32 <uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE" />
33 <!-- Reading DeviceConfig flags -->
34 <uses-permission android:name="android.permission.READ_DEVICE_CONFIG" />
Remi NGUYEN VANbb592532019-06-20 18:29:36 +090035 <application android:debuggable="true">
36 <uses-library android:name="android.test.runner" />
37
38 <!-- This manifest is merged with the base manifest of the real NetworkStack app.
39 Remove the NetworkStackService from the base (real) manifest, and replace with a test
40 service that responds to the same intent -->
Remi NGUYEN VANbb592532019-06-20 18:29:36 +090041 <service android:name=".TestNetworkStackService"
42 android:process="com.android.server.net.integrationtests.testnetworkstack">
43 <intent-filter>
44 <action android:name="android.net.INetworkStackConnector.Test"/>
45 </intent-filter>
46 </service>
47 <service android:name=".NetworkStackInstrumentationService"
48 android:process="com.android.server.net.integrationtests.testnetworkstack">
49 <intent-filter>
50 <action android:name=".INetworkStackInstrumentation"/>
51 </intent-filter>
52 </service>
Remi NGUYEN VAN53f4cd02019-10-30 18:30:03 +090053 <service android:name="com.android.server.connectivity.ipmemorystore.RegularMaintenanceJobService"
54 android:process="com.android.server.net.integrationtests.testnetworkstack"
55 android:permission="android.permission.BIND_JOB_SERVICE"/>
Remi NGUYEN VANbb592532019-06-20 18:29:36 +090056
57 </application>
58
59 <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
60 android:targetPackage="com.android.server.net.integrationtests"
61 android:label="Frameworks Net Integration Tests" />
62
63</manifest>