blob: b832e162bbc586b58d93bb285926e1d1ff9b23c4 [file] [log] [blame]
markchien932da862019-08-27 10:19:38 +08001<?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"
markchien8f831c02019-12-18 17:47:26 +080020 package="com.android.networkstack.tethering"
markchien932da862019-08-27 10:19:38 +080021 android:sharedUserId="android.uid.networkstack">
markchien932da862019-08-27 10:19:38 +080022
markchien9d353822019-12-16 20:15:20 +080023 <!-- Permissions must be defined here, and not in the base manifest, as the tethering
24 running in the system server process does not need any permission, and having
25 privileged permissions added would cause crashes on startup unless they are also
markchienbf622582021-11-04 01:09:26 +080026 added to the privileged permissions allowlist for that package. EntitlementManager
27 would set exact alarm but declare SCHEDULE_EXACT_ALARM is not necessary here because
28 privilege application would be in the allowlist. -->
markchien9d353822019-12-16 20:15:20 +080029 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
30 <uses-permission android:name="android.permission.BLUETOOTH" />
markchienbf622582021-11-04 01:09:26 +080031 <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
markchiendb2a16b2020-03-12 15:22:01 +080032 <uses-permission android:name="android.permission.BLUETOOTH_PRIVILEGED" />
markchien9d353822019-12-16 20:15:20 +080033 <uses-permission android:name="android.permission.BROADCAST_STICKY" />
34 <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
35 <uses-permission android:name="android.permission.MANAGE_USB" />
36 <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
markchien9a0b95d2020-01-13 16:09:42 +080037 <uses-permission android:name="android.permission.READ_DEVICE_CONFIG" />
markchien9d353822019-12-16 20:15:20 +080038 <uses-permission android:name="android.permission.READ_NETWORK_USAGE_HISTORY" />
paulhu648fc2c2020-03-24 21:09:51 +080039 <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
markchien373e5632020-01-10 00:21:17 +080040 <uses-permission android:name="android.permission.TETHER_PRIVILEGED" />
markchien9d353822019-12-16 20:15:20 +080041 <uses-permission android:name="android.permission.UPDATE_APP_OPS_STATS" />
junyulai15d8bb02020-01-10 13:27:24 +080042 <uses-permission android:name="android.permission.UPDATE_DEVICE_STATS" />
markchien9d353822019-12-16 20:15:20 +080043 <uses-permission android:name="android.permission.WRITE_SETTINGS" />
Steve Elliott677e3d12021-12-03 16:36:47 -050044 <uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
markchien9d353822019-12-16 20:15:20 +080045
paulhu648fc2c2020-03-24 21:09:51 +080046 <protected-broadcast android:name="com.android.server.connectivity.tethering.DISABLE_TETHERING" />
47
markchien932da862019-08-27 10:19:38 +080048 <application
49 android:process="com.android.networkstack.process"
50 android:extractNativeLibs="false"
51 android:persistent="true">
markchiend9955662020-04-12 21:41:29 +080052 <service android:name="com.android.networkstack.tethering.TetheringService"
Ashwini Oruganti910a0b42020-03-10 13:49:18 -070053 android:permission="android.permission.MAINLINE_NETWORK_STACK"
54 android:exported="true">
markchienee6ad372019-09-30 14:40:57 +080055 <intent-filter>
56 <action android:name="android.net.ITetheringConnector"/>
57 </intent-filter>
58 </service>
markchien932da862019-08-27 10:19:38 +080059 </application>
60</manifest>