Remi NGUYEN VAN | a0fe0d4 | 2019-03-26 17:24:48 +0900 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2019 The Android Open Source Project |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | // |
| 16 | |
Bob Badour | 968beab | 2021-02-12 18:39:08 -0800 | [diff] [blame] | 17 | package { |
| 18 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 19 | } |
| 20 | |
Remi NGUYEN VAN | 90d9a8e | 2019-05-15 16:14:51 +0900 | [diff] [blame] | 21 | java_defaults { |
| 22 | name: "NetworkPermissionConfigDefaults", |
Remi NGUYEN VAN | a0fe0d4 | 2019-03-26 17:24:48 +0900 | [diff] [blame] | 23 | platform_apis: true, |
Jooyung Han | 8cfa627 | 2020-06-16 14:37:42 +0900 | [diff] [blame] | 24 | target_sdk_version: "30", |
| 25 | min_sdk_version: "29", |
Remi NGUYEN VAN | a0fe0d4 | 2019-03-26 17:24:48 +0900 | [diff] [blame] | 26 | privileged: true, |
| 27 | manifest: "AndroidManifest.xml", |
| 28 | } |
Remi NGUYEN VAN | 90d9a8e | 2019-05-15 16:14:51 +0900 | [diff] [blame] | 29 | |
| 30 | // Stub APK to define permissions for NetworkStack |
| 31 | android_app { |
| 32 | name: "NetworkPermissionConfig", |
| 33 | defaults: ["NetworkPermissionConfigDefaults"], |
| 34 | certificate: "networkstack", |
| 35 | } |
| 36 | |
| 37 | // Alternative stub APK signed with platform certificate. To use with InProcessNetworkStack. |
| 38 | android_app { |
| 39 | name: "PlatformNetworkPermissionConfig", |
| 40 | defaults: ["NetworkPermissionConfigDefaults"], |
| 41 | certificate: "platform", |
| 42 | overrides: ["NetworkPermissionConfig"], |
| 43 | } |