markchien | 932da86 | 2019-08-27 10:19:38 +0800 | [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" |
markchien | 8f831c0 | 2019-12-18 17:47:26 +0800 | [diff] [blame] | 20 | package="com.android.networkstack.tethering" |
markchien | 932da86 | 2019-08-27 10:19:38 +0800 | [diff] [blame] | 21 | android:sharedUserId="android.uid.networkstack"> |
| 22 | <uses-sdk android:minSdkVersion="29" android:targetSdkVersion="29" /> |
| 23 | |
markchien | 9d35382 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 24 | <!-- Permissions must be defined here, and not in the base manifest, as the tethering |
| 25 | running in the system server process does not need any permission, and having |
| 26 | privileged permissions added would cause crashes on startup unless they are also |
Chiachang Wang | 14aaefc | 2020-07-29 12:05:04 +0800 | [diff] [blame] | 27 | added to the privileged permissions allowlist for that package. --> |
markchien | 9d35382 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 28 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
| 29 | <uses-permission android:name="android.permission.BLUETOOTH" /> |
markchien | db2a16b | 2020-03-12 15:22:01 +0800 | [diff] [blame] | 30 | <uses-permission android:name="android.permission.BLUETOOTH_PRIVILEGED" /> |
markchien | 9d35382 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 31 | <uses-permission android:name="android.permission.BROADCAST_STICKY" /> |
| 32 | <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /> |
| 33 | <uses-permission android:name="android.permission.MANAGE_USB" /> |
| 34 | <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" /> |
markchien | 9a0b95d | 2020-01-13 16:09:42 +0800 | [diff] [blame] | 35 | <uses-permission android:name="android.permission.READ_DEVICE_CONFIG" /> |
markchien | 9d35382 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 36 | <uses-permission android:name="android.permission.READ_NETWORK_USAGE_HISTORY" /> |
paulhu | 648fc2c | 2020-03-24 21:09:51 +0800 | [diff] [blame] | 37 | <uses-permission android:name="android.permission.READ_PHONE_STATE"/> |
markchien | 373e563 | 2020-01-10 00:21:17 +0800 | [diff] [blame] | 38 | <uses-permission android:name="android.permission.TETHER_PRIVILEGED" /> |
markchien | 9d35382 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 39 | <uses-permission android:name="android.permission.UPDATE_APP_OPS_STATS" /> |
junyulai | 15d8bb0 | 2020-01-10 13:27:24 +0800 | [diff] [blame] | 40 | <uses-permission android:name="android.permission.UPDATE_DEVICE_STATS" /> |
markchien | 9d35382 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 41 | <uses-permission android:name="android.permission.WRITE_SETTINGS" /> |
| 42 | |
paulhu | 648fc2c | 2020-03-24 21:09:51 +0800 | [diff] [blame] | 43 | <protected-broadcast android:name="com.android.server.connectivity.tethering.DISABLE_TETHERING" /> |
| 44 | |
markchien | 932da86 | 2019-08-27 10:19:38 +0800 | [diff] [blame] | 45 | <application |
| 46 | android:process="com.android.networkstack.process" |
| 47 | android:extractNativeLibs="false" |
| 48 | android:persistent="true"> |
markchien | d995566 | 2020-04-12 21:41:29 +0800 | [diff] [blame] | 49 | <service android:name="com.android.networkstack.tethering.TetheringService" |
Ashwini Oruganti | 910a0b4 | 2020-03-10 13:49:18 -0700 | [diff] [blame] | 50 | android:permission="android.permission.MAINLINE_NETWORK_STACK" |
| 51 | android:exported="true"> |
markchien | ee6ad37 | 2019-09-30 14:40:57 +0800 | [diff] [blame] | 52 | <intent-filter> |
| 53 | <action android:name="android.net.ITetheringConnector"/> |
| 54 | </intent-filter> |
| 55 | </service> |
markchien | 932da86 | 2019-08-27 10:19:38 +0800 | [diff] [blame] | 56 | </application> |
| 57 | </manifest> |