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.permissionconfig" 21 android:sharedUserId="android.uid.networkstack" 22 android:versionCode="290000000" 23 android:versionName="2019-09" 24> 25 <uses-sdk android:minSdkVersion="29" android:targetSdkVersion="29" /> 26 <!-- 27 This package only exists to define the below permissions, and enforce that they are only 28 granted to apps sharing the same signature. 29 Permissions defined here are intended to be used only by the NetworkStack: both 30 NetworkStack and this stub APK are to be signed with a dedicated certificate to ensure 31 that, with the below permissions being signature permissions. 32 33 This APK *must* be installed, even if the NetworkStack app is not installed, because otherwise, 34 any application will be able to define this permission and the system will give that application 35 full access to the network stack. 36 --> 37 <permission android:name="android.permission.MAINLINE_NETWORK_STACK" 38 android:protectionLevel="signature"/> 39 40 <application android:name="com.android.server.NetworkPermissionConfig"/> 41</manifest> 42