Remi NGUYEN VAN | d8c75a0 | 2019-01-30 21:45:56 +0900 | [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" |
Remi NGUYEN VAN | 8c0d946 | 2019-02-08 15:26:06 +0900 | [diff] [blame] | 20 | package="com.android.networkstack.permissionstub" |
Remi NGUYEN VAN | 4af3cda | 2019-02-28 11:28:50 +0900 | [diff] [blame] | 21 | android:sharedUserId="android.uid.networkstack" |
Remi NGUYEN VAN | 5026c9e | 2019-03-05 10:14:54 +0900 | [diff] [blame] | 22 | android:versionCode="11" |
Remi NGUYEN VAN | 4af3cda | 2019-02-28 11:28:50 +0900 | [diff] [blame] | 23 | android:versionName="Q-initial"> |
Remi NGUYEN VAN | f4249c3 | 2019-03-01 10:01:24 +0900 | [diff] [blame] | 24 | <uses-sdk android:minSdkVersion="28" android:targetSdkVersion="28" /> |
Remi NGUYEN VAN | d8c75a0 | 2019-01-30 21:45:56 +0900 | [diff] [blame] | 25 | <!-- |
| 26 | This package only exists to define the below permissions, and enforce that they are only |
| 27 | granted to apps sharing the same signature. |
| 28 | Permissions defined here are intended to be used only by the NetworkStack: both |
| 29 | NetworkStack and this stub APK are to be signed with a dedicated certificate to ensure |
| 30 | that, with the below permissions being signature permissions. |
| 31 | |
| 32 | This APK *must* be installed, even if the NetworkStack app is not installed, because otherwise, |
| 33 | any application will be able to define this permission and the system will give that application |
| 34 | full access to the network stack. |
| 35 | --> |
| 36 | <permission android:name="android.permission.MAINLINE_NETWORK_STACK" |
| 37 | android:protectionLevel="signature"/> |
| 38 | |
| 39 | <application android:name="com.android.server.NetworkStackPermissionStub"/> |
Remi NGUYEN VAN | f4249c3 | 2019-03-01 10:01:24 +0900 | [diff] [blame] | 40 | </manifest> |