1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2019 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<manifest xmlns:android="http://schemas.android.com/apk/res/android"
17          package="com.android.server.networkstack.integrationtests"
18          android:sharedUserId="android.uid.networkstack">
19
20    <!-- Note: do not add any privileged or signature permissions that are granted
21         to the network stack app. Otherwise, the test APK will install, but when the device is
22         rebooted, it will bootloop with something like:
23
24         05-14 00:41:02.723 18330 18330 E AndroidRuntime: java.lang.IllegalStateException: Signature|privileged permissions not in privapp-permissions whitelist: {com.android.server.networkstack.integrationtests: android.permission.CONNECTIVITY_INTERNAL}
25    -->
26    <!-- Used by creating test network.
27         comment out the permission needed by NetworkStatsIntegrationTest.
28         The test case migrated to Connectivity
29    -->
30    <!-- uses-permission android:name="android.permission.MANAGE_TEST_NETWORKS" /-->
31    <!-- uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /-->
32    <!-- uses-permission android:name="android.permission.WRITE_SETTINGS" /-->
33    <application android:debuggable="true">
34        <uses-library android:name="android.test.runner" />
35    </application>
36    <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
37        android:targetPackage="com.android.server.networkstack.integrationtests"
38        android:label="Networking stack integration tests">
39    </instrumentation>
40</manifest>
41