blob: c05d0c6909d9a6b9cbd1f6596e68f546fccc0601 [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,
Jooyung Hanb26e9532020-06-16 14:37:42 +090023 target_sdk_version: "30",
24 min_sdk_version: "29",
Remi NGUYEN VANab08de32019-03-27 12:04:27 +090025 privileged: true,
26 manifest: "AndroidManifest.xml",
27}
Remi NGUYEN VANa5751192019-05-15 16:14:51 +090028
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}