• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  package="com.android.networkstack"
21  android:sharedUserId="android.uid.networkstack"
22  android:versionCode="290000000"
23  android:versionName="2019-09"
24>
25
26    <uses-sdk android:minSdkVersion="29" android:targetSdkVersion="29" />
27
28    <!-- Permissions must be defined here, and not in the base manifest, as the network stack
29         running in the system server process does not need any permission, and having privileged
30         permissions added would cause crashes on startup unless they are also added to the
31         privileged permissions whitelist for that package. -->
32    <uses-permission android:name="android.permission.INTERNET" />
33    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
34    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
35    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
36    <uses-permission android:name="android.permission.CONNECTIVITY_INTERNAL" />
37    <!-- Send latency broadcast as current user -->
38    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
39    <uses-permission android:name="android.permission.WAKE_LOCK" />
40    <uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE" />
41    <uses-permission android:name="android.permission.READ_DEVICE_CONFIG" />
42    <!-- Signature permission defined in NetworkStackStub -->
43    <uses-permission android:name="android.permission.MAINLINE_NETWORK_STACK" />
44    <application
45        android:extractNativeLibs="false"
46        android:persistent="true">
47        <service android:name="com.android.server.NetworkStackService">
48            <intent-filter>
49                <action android:name="android.net.INetworkStackConnector"/>
50            </intent-filter>
51        </service>
52        <service android:name="com.android.server.connectivity.ipmemorystore.RegularMaintenanceJobService"
53                 android:permission="android.permission.BIND_JOB_SERVICE" >
54        </service>
55    </application>
56</manifest>
57