Remi NGUYEN VAN | 317b2d2 | 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 | --> |
| 19 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
| 20 | xmlns:tools="http://schemas.android.com/tools" |
| 21 | package="com.android.server.net.integrationtests"> |
| 22 | |
| 23 | <!-- For ConnectivityService registerReceiverAsUser (receiving broadcasts) --> |
| 24 | <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" /> |
| 25 | <!-- PermissionMonitor sets network permissions for each user --> |
| 26 | <uses-permission android:name="android.permission.MANAGE_USERS" /> |
| 27 | <!-- ConnectivityService sends notifications to BatteryStats --> |
| 28 | <uses-permission android:name="android.permission.UPDATE_DEVICE_STATS" /> |
| 29 | <application android:debuggable="true"> |
| 30 | <uses-library android:name="android.test.runner" /> |
| 31 | |
| 32 | <!-- This manifest is merged with the base manifest of the real NetworkStack app. |
| 33 | Remove the NetworkStackService from the base (real) manifest, and replace with a test |
| 34 | service that responds to the same intent --> |
| 35 | <service android:name="com.android.server.NetworkStackService" tools:node="remove"/> |
| 36 | <service android:name=".TestNetworkStackService" |
| 37 | android:process="com.android.server.net.integrationtests.testnetworkstack"> |
| 38 | <intent-filter> |
| 39 | <action android:name="android.net.INetworkStackConnector.Test"/> |
| 40 | </intent-filter> |
| 41 | </service> |
| 42 | <service android:name=".NetworkStackInstrumentationService" |
| 43 | android:process="com.android.server.net.integrationtests.testnetworkstack"> |
| 44 | <intent-filter> |
| 45 | <action android:name=".INetworkStackInstrumentation"/> |
| 46 | </intent-filter> |
| 47 | </service> |
| 48 | <service tools:replace="android:process" |
| 49 | android:name="com.android.server.connectivity.ipmemorystore.RegularMaintenanceJobService" |
| 50 | android:process="com.android.server.net.integrationtests.testnetworkstack"/> |
| 51 | |
| 52 | </application> |
| 53 | |
| 54 | <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner" |
| 55 | android:targetPackage="com.android.server.net.integrationtests" |
| 56 | android:label="Frameworks Net Integration Tests" /> |
| 57 | |
| 58 | </manifest> |