Remi NGUYEN VAN | ded2315 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | /* |
Remi NGUYEN VAN | 0a4df5a | 2019-03-08 17:20:49 +0900 | [diff] [blame] | 4 | * Copyright (C) 2019 The Android Open Source Project |
Remi NGUYEN VAN | ded2315 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 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" |
Jeff Hamilton | ff88ac2 | 2019-03-29 13:41:27 -0400 | [diff] [blame] | 20 | package="com.android.networkstack" |
| 21 | android:sharedUserId="android.uid.networkstack" |
Remi NGUYEN VAN | 32cea1b | 2021-06-08 12:18:15 +0900 | [diff] [blame] | 22 | android:versionCode="319999900" |
| 23 | android:versionName="s_aml_319999900" |
Jeff Hamilton | ff88ac2 | 2019-03-29 13:41:27 -0400 | [diff] [blame] | 24 | > |
Remi NGUYEN VAN | 6fb8355 | 2019-04-01 10:56:05 +0900 | [diff] [blame] | 25 | <!-- Permissions must be defined here, and not in the base manifest, as the network stack |
| 26 | running in the system server process does not need any permission, and having privileged |
| 27 | permissions added would cause crashes on startup unless they are also added to the |
Hongguang Chen | ebb7839 | 2020-07-28 15:34:05 -0700 | [diff] [blame] | 28 | privileged permissions allowlist for that package. --> |
Remi NGUYEN VAN | 08e9690 | 2019-03-29 15:33:07 +0900 | [diff] [blame] | 29 | <uses-permission android:name="android.permission.INTERNET" /> |
lucaslin | 9b4dfab | 2019-12-17 23:06:12 +0800 | [diff] [blame] | 30 | <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> |
Remi NGUYEN VAN | 08e9690 | 2019-03-29 15:33:07 +0900 | [diff] [blame] | 31 | <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> |
| 32 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
| 33 | <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> |
| 34 | <uses-permission android:name="android.permission.CONNECTIVITY_INTERNAL" /> |
| 35 | <!-- Send latency broadcast as current user --> |
| 36 | <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" /> |
| 37 | <uses-permission android:name="android.permission.WAKE_LOCK" /> |
| 38 | <uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE" /> |
Chiachang Wang | 8dea27b | 2019-04-01 09:56:05 +0800 | [diff] [blame] | 39 | <uses-permission android:name="android.permission.READ_DEVICE_CONFIG" /> |
Remi NGUYEN VAN | d65832e | 2019-01-30 21:45:56 +0900 | [diff] [blame] | 40 | <!-- Signature permission defined in NetworkStackStub --> |
| 41 | <uses-permission android:name="android.permission.MAINLINE_NETWORK_STACK" /> |
Remi NGUYEN VAN | 860ea3c | 2019-05-16 18:02:11 +0900 | [diff] [blame] | 42 | <application |
| 43 | android:extractNativeLibs="false" |
Remi NGUYEN VAN | 8402c20 | 2019-10-03 17:27:18 +0900 | [diff] [blame] | 44 | android:persistent="true" |
| 45 | android:process="com.android.networkstack.process"> |
Remi NGUYEN VAN | f3088e9 | 2019-08-21 18:18:01 +0900 | [diff] [blame] | 46 | <service android:name="com.android.server.NetworkStackService" |
Ashwini Oruganti | 2b0d804 | 2020-05-19 18:21:58 -0700 | [diff] [blame] | 47 | android:exported="true" |
Remi NGUYEN VAN | f3088e9 | 2019-08-21 18:18:01 +0900 | [diff] [blame] | 48 | android:permission="android.permission.MAINLINE_NETWORK_STACK"> |
Remi NGUYEN VAN | ded2315 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 49 | <intent-filter> |
| 50 | <action android:name="android.net.INetworkStackConnector"/> |
| 51 | </intent-filter> |
| 52 | </service> |
Remi NGUYEN VAN | 9e6aeea | 2020-07-06 09:29:06 +0900 | [diff] [blame] | 53 | <!-- Test instrumentation service, only usable on debuggable builds. |
| 54 | The service is protected by NETWORK_SETTINGS permissions as there is no better |
| 55 | networking-related permission that exists on Q, is sufficiently protected (signature), |
| 56 | and can be obtained via shell permissions. --> |
| 57 | <service android:name="com.android.server.TestNetworkStackService" |
| 58 | android:permission="android.permission.NETWORK_SETTINGS" |
| 59 | android:exported="true"> |
| 60 | <intent-filter> |
| 61 | <action android:name="android.net.INetworkStackConnector.Test"/> |
| 62 | </intent-filter> |
| 63 | </service> |
Paul Hu | ac95b9f | 2019-05-24 18:28:23 -0700 | [diff] [blame] | 64 | <service android:name="com.android.server.connectivity.ipmemorystore.RegularMaintenanceJobService" |
| 65 | android:permission="android.permission.BIND_JOB_SERVICE" > |
| 66 | </service> |
Remi NGUYEN VAN | ded2315 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 67 | </application> |
Remi NGUYEN VAN | d1c539e | 2019-03-20 17:29:10 +0900 | [diff] [blame] | 68 | </manifest> |