blob: e2d9362ffff53bb0383aa6ea7866dbe0e146398e [file] [log] [blame]
Remi NGUYEN VANebe52982019-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-->
Remi NGUYEN VANcdd6f0e2020-05-19 17:49:36 +090019
Remi NGUYEN VANebe52982019-06-20 18:29:36 +090020<manifest xmlns:android="http://schemas.android.com/apk/res/android"
Remi NGUYEN VANcdd6f0e2020-05-19 17:49:36 +090021 package="com.android.server.net.integrationtests">
Remi NGUYEN VANebe52982019-06-20 18:29:36 +090022
23 <!-- For ConnectivityService registerReceiverAsUser (receiving broadcasts) -->
Remi NGUYEN VANcdd6f0e2020-05-19 17:49:36 +090024 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL"/>
Remi NGUYEN VANebe52982019-06-20 18:29:36 +090025 <!-- PermissionMonitor sets network permissions for each user -->
Remi NGUYEN VANcdd6f0e2020-05-19 17:49:36 +090026 <uses-permission android:name="android.permission.MANAGE_USERS"/>
Remi NGUYEN VANebe52982019-06-20 18:29:36 +090027 <!-- ConnectivityService sends notifications to BatteryStats -->
Remi NGUYEN VANcdd6f0e2020-05-19 17:49:36 +090028 <uses-permission android:name="android.permission.UPDATE_DEVICE_STATS"/>
Remi NGUYEN VAN129af072019-10-30 18:30:03 +090029 <!-- Reading network status -->
Remi NGUYEN VANcdd6f0e2020-05-19 17:49:36 +090030 <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
31 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
32 <uses-permission android:name="android.permission.NETWORK_FACTORY"/>
33 <uses-permission android:name="android.permission.NETWORK_STACK"/>
34 <uses-permission android:name="android.permission.OBSERVE_NETWORK_POLICY"/>
35 <uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE"/>
Remi NGUYEN VAN129af072019-10-30 18:30:03 +090036 <!-- Reading DeviceConfig flags -->
Remi NGUYEN VANcdd6f0e2020-05-19 17:49:36 +090037 <uses-permission android:name="android.permission.READ_DEVICE_CONFIG"/>
Remi NGUYEN VANebe52982019-06-20 18:29:36 +090038 <application android:debuggable="true">
Remi NGUYEN VANcdd6f0e2020-05-19 17:49:36 +090039 <uses-library android:name="android.test.runner"/>
Remi NGUYEN VANebe52982019-06-20 18:29:36 +090040
41 <!-- This manifest is merged with the base manifest of the real NetworkStack app.
Remi NGUYEN VANcdd6f0e2020-05-19 17:49:36 +090042 Remove the NetworkStackService from the base (real) manifest, and replace with a test
43 service that responds to the same intent -->
Remi NGUYEN VANebe52982019-06-20 18:29:36 +090044 <service android:name=".TestNetworkStackService"
Remi NGUYEN VANcdd6f0e2020-05-19 17:49:36 +090045 android:process="com.android.server.net.integrationtests.testnetworkstack"
46 android:exported="true">
Remi NGUYEN VANebe52982019-06-20 18:29:36 +090047 <intent-filter>
48 <action android:name="android.net.INetworkStackConnector.Test"/>
49 </intent-filter>
50 </service>
51 <service android:name=".NetworkStackInstrumentationService"
Remi NGUYEN VANcdd6f0e2020-05-19 17:49:36 +090052 android:process="com.android.server.net.integrationtests.testnetworkstack"
53 android:exported="true">
Remi NGUYEN VANebe52982019-06-20 18:29:36 +090054 <intent-filter>
55 <action android:name=".INetworkStackInstrumentation"/>
56 </intent-filter>
57 </service>
Remi NGUYEN VAN129af072019-10-30 18:30:03 +090058 <service android:name="com.android.server.connectivity.ipmemorystore.RegularMaintenanceJobService"
Remi NGUYEN VANcdd6f0e2020-05-19 17:49:36 +090059 android:process="com.android.server.net.integrationtests.testnetworkstack"
60 android:permission="android.permission.BIND_JOB_SERVICE"/>
Remi NGUYEN VANebe52982019-06-20 18:29:36 +090061
62 </application>
63
64 <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
Remi NGUYEN VANcdd6f0e2020-05-19 17:49:36 +090065 android:targetPackage="com.android.server.net.integrationtests"
66 android:label="Frameworks Net Integration Tests"/>
Remi NGUYEN VANebe52982019-06-20 18:29:36 +090067
68</manifest>