Remi NGUYEN VAN | ebe5298 | 2019-06-20 18:29:36 +0900 | [diff] [blame] | 1 | <?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 VAN | cdd6f0e | 2020-05-19 17:49:36 +0900 | [diff] [blame] | 19 | |
Remi NGUYEN VAN | ebe5298 | 2019-06-20 18:29:36 +0900 | [diff] [blame] | 20 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
Remi NGUYEN VAN | cdd6f0e | 2020-05-19 17:49:36 +0900 | [diff] [blame] | 21 | package="com.android.server.net.integrationtests"> |
Remi NGUYEN VAN | ebe5298 | 2019-06-20 18:29:36 +0900 | [diff] [blame] | 22 | |
| 23 | <!-- For ConnectivityService registerReceiverAsUser (receiving broadcasts) --> |
Remi NGUYEN VAN | cdd6f0e | 2020-05-19 17:49:36 +0900 | [diff] [blame] | 24 | <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL"/> |
Remi NGUYEN VAN | ebe5298 | 2019-06-20 18:29:36 +0900 | [diff] [blame] | 25 | <!-- PermissionMonitor sets network permissions for each user --> |
Remi NGUYEN VAN | cdd6f0e | 2020-05-19 17:49:36 +0900 | [diff] [blame] | 26 | <uses-permission android:name="android.permission.MANAGE_USERS"/> |
Remi NGUYEN VAN | ebe5298 | 2019-06-20 18:29:36 +0900 | [diff] [blame] | 27 | <!-- ConnectivityService sends notifications to BatteryStats --> |
Remi NGUYEN VAN | cdd6f0e | 2020-05-19 17:49:36 +0900 | [diff] [blame] | 28 | <uses-permission android:name="android.permission.UPDATE_DEVICE_STATS"/> |
Remi NGUYEN VAN | 129af07 | 2019-10-30 18:30:03 +0900 | [diff] [blame] | 29 | <!-- Reading network status --> |
Remi NGUYEN VAN | cdd6f0e | 2020-05-19 17:49:36 +0900 | [diff] [blame] | 30 | <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"/> |
Remi NGUYEN VAN | c8e627f | 2020-05-10 16:13:15 +0900 | [diff] [blame] | 33 | <!-- Obtain LinkProperties callbacks with sensitive fields --> |
| 34 | <uses-permission android:name="android.permission.NETWORK_SETTINGS" /> |
Remi NGUYEN VAN | cdd6f0e | 2020-05-19 17:49:36 +0900 | [diff] [blame] | 35 | <uses-permission android:name="android.permission.NETWORK_STACK"/> |
| 36 | <uses-permission android:name="android.permission.OBSERVE_NETWORK_POLICY"/> |
| 37 | <uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE"/> |
Remi NGUYEN VAN | 129af07 | 2019-10-30 18:30:03 +0900 | [diff] [blame] | 38 | <!-- Reading DeviceConfig flags --> |
Remi NGUYEN VAN | cdd6f0e | 2020-05-19 17:49:36 +0900 | [diff] [blame] | 39 | <uses-permission android:name="android.permission.READ_DEVICE_CONFIG"/> |
Remi NGUYEN VAN | ebe5298 | 2019-06-20 18:29:36 +0900 | [diff] [blame] | 40 | <application android:debuggable="true"> |
Remi NGUYEN VAN | cdd6f0e | 2020-05-19 17:49:36 +0900 | [diff] [blame] | 41 | <uses-library android:name="android.test.runner"/> |
Remi NGUYEN VAN | ebe5298 | 2019-06-20 18:29:36 +0900 | [diff] [blame] | 42 | |
| 43 | <!-- This manifest is merged with the base manifest of the real NetworkStack app. |
Remi NGUYEN VAN | cdd6f0e | 2020-05-19 17:49:36 +0900 | [diff] [blame] | 44 | Remove the NetworkStackService from the base (real) manifest, and replace with a test |
| 45 | service that responds to the same intent --> |
Remi NGUYEN VAN | ebe5298 | 2019-06-20 18:29:36 +0900 | [diff] [blame] | 46 | <service android:name=".TestNetworkStackService" |
Remi NGUYEN VAN | cdd6f0e | 2020-05-19 17:49:36 +0900 | [diff] [blame] | 47 | android:process="com.android.server.net.integrationtests.testnetworkstack" |
| 48 | android:exported="true"> |
Remi NGUYEN VAN | ebe5298 | 2019-06-20 18:29:36 +0900 | [diff] [blame] | 49 | <intent-filter> |
| 50 | <action android:name="android.net.INetworkStackConnector.Test"/> |
| 51 | </intent-filter> |
| 52 | </service> |
| 53 | <service android:name=".NetworkStackInstrumentationService" |
Remi NGUYEN VAN | cdd6f0e | 2020-05-19 17:49:36 +0900 | [diff] [blame] | 54 | android:process="com.android.server.net.integrationtests.testnetworkstack" |
| 55 | android:exported="true"> |
Remi NGUYEN VAN | ebe5298 | 2019-06-20 18:29:36 +0900 | [diff] [blame] | 56 | <intent-filter> |
| 57 | <action android:name=".INetworkStackInstrumentation"/> |
| 58 | </intent-filter> |
| 59 | </service> |
Remi NGUYEN VAN | 129af07 | 2019-10-30 18:30:03 +0900 | [diff] [blame] | 60 | <service android:name="com.android.server.connectivity.ipmemorystore.RegularMaintenanceJobService" |
Remi NGUYEN VAN | cdd6f0e | 2020-05-19 17:49:36 +0900 | [diff] [blame] | 61 | android:process="com.android.server.net.integrationtests.testnetworkstack" |
| 62 | android:permission="android.permission.BIND_JOB_SERVICE"/> |
Remi NGUYEN VAN | ebe5298 | 2019-06-20 18:29:36 +0900 | [diff] [blame] | 63 | |
| 64 | </application> |
| 65 | |
| 66 | <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner" |
Remi NGUYEN VAN | cdd6f0e | 2020-05-19 17:49:36 +0900 | [diff] [blame] | 67 | android:targetPackage="com.android.server.net.integrationtests" |
| 68 | android:label="Frameworks Net Integration Tests"/> |
Remi NGUYEN VAN | ebe5298 | 2019-06-20 18:29:36 +0900 | [diff] [blame] | 69 | |
| 70 | </manifest> |