blob: 0118b4785e9f10d54d2cacc137b21b1cb4e92b74 [file] [log] [blame]
Remi NGUYEN VANab08de32019-03-27 12:04:27 +09001//
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
Remi NGUYEN VANa5751192019-05-15 16:14:51 +090017java_defaults {
18 name: "NetworkPermissionConfigDefaults",
Remi NGUYEN VANab08de32019-03-27 12:04:27 +090019 // TODO: mark app as hasCode=false in manifest once soong stops complaining about apps without
20 // a classes.dex.
21 srcs: ["src/**/*.java"],
22 platform_apis: true,
Remi NGUYEN VANab08de32019-03-27 12:04:27 +090023 privileged: true,
24 manifest: "AndroidManifest.xml",
25}
Remi NGUYEN VANa5751192019-05-15 16:14:51 +090026
27// Stub APK to define permissions for NetworkStack
28android_app {
29 name: "NetworkPermissionConfig",
30 defaults: ["NetworkPermissionConfigDefaults"],
31 certificate: "networkstack",
Remi NGUYEN VAN25e11732020-05-28 19:30:16 +090032 target_sdk_version: "30",
Nikita Ioffeb8d46ba2020-03-03 12:02:30 +000033 min_sdk_version: "29",
Remi NGUYEN VANa5751192019-05-15 16:14:51 +090034}
35
36// Alternative stub APK signed with platform certificate. To use with InProcessNetworkStack.
37android_app {
38 name: "PlatformNetworkPermissionConfig",
39 defaults: ["NetworkPermissionConfigDefaults"],
40 certificate: "platform",
41 overrides: ["NetworkPermissionConfig"],
42}