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
17java_defaults {
18    name: "NetworkPermissionConfigDefaults",
19    // 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,
23    target_sdk_version: "30",
24    min_sdk_version: "29",
25    privileged: true,
26    manifest: "AndroidManifest.xml",
27}
28
29// Stub APK to define permissions for NetworkStack
30android_app {
31    name: "NetworkPermissionConfig",
32    defaults: ["NetworkPermissionConfigDefaults"],
33    certificate: "networkstack",
34}
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}
43