blob: a5ea2ab44c28eb128f1a46841ac5cd7a50bd6c1d [file] [log] [blame]
Remi NGUYEN VANded23152018-12-07 16:52:24 +09001//
2// Copyright (C) 2018 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 VAN40369562019-03-20 16:40:54 +090017java_defaults {
18 name: "NetworkStackCommon",
19 sdk_version: "system_current",
20 min_sdk_version: "28",
21}
22
Remi NGUYEN VAN0a4df5a2019-03-08 17:20:49 +090023// Library including the network stack, used to compile both variants of the network stack
24android_library {
25 name: "NetworkStackBase",
Remi NGUYEN VAN40369562019-03-20 16:40:54 +090026 defaults: ["NetworkStackCommon"],
Remi NGUYEN VANded23152018-12-07 16:52:24 +090027 srcs: [
28 "src/**/*.java",
Remi NGUYEN VAN82b4b422019-01-20 09:35:10 +090029 ":framework-networkstack-shared-srcs",
Remi NGUYEN VAN5daa3702018-12-27 16:43:56 +090030 ":services-networkstack-shared-srcs",
Remi NGUYEN VANded23152018-12-07 16:52:24 +090031 ],
Remi NGUYEN VAN057bf202018-12-04 12:13:09 +090032 static_libs: [
Chalard Jean5b678762019-01-30 21:04:58 +090033 "ipmemorystore-client",
Remi NGUYEN VAN6e9fdbd2019-01-29 15:38:52 +090034 "netd_aidl_interface-java",
35 "networkstack-aidl-interfaces-java",
Chiachang Wang8b5f84a2019-02-22 11:13:07 +080036 "datastallprotosnano",
Chiachang Wang54663a82019-03-21 20:40:01 +080037 "networkstackprotosnano",
Remi NGUYEN VAN0a4df5a2019-03-08 17:20:49 +090038 ],
39 manifest: "AndroidManifestBase.xml",
40}
41
Remi NGUYEN VAN40369562019-03-20 16:40:54 +090042java_defaults {
43 name: "NetworkStackAppCommon",
44 defaults: ["NetworkStackCommon"],
Remi NGUYEN VAN0a4df5a2019-03-08 17:20:49 +090045 privileged: true,
46 static_libs: [
47 "NetworkStackBase",
48 ],
Remi NGUYEN VAN40369562019-03-20 16:40:54 +090049 // Resources already included in NetworkStackBase
50 resource_dirs: [],
Remi NGUYEN VAN0a4df5a2019-03-08 17:20:49 +090051 jarjar_rules: "jarjar-rules-shared.txt",
52 // The permission configuration *must* be included to ensure security of the device
Remi NGUYEN VAN288fb702019-03-26 17:24:48 +090053 required: ["NetworkPermissionConfig"],
Remi NGUYEN VAN40369562019-03-20 16:40:54 +090054}
55
56// Non-updatable network stack running in the system server process for devices not using the module
57android_app {
58 name: "InProcessNetworkStack",
59 defaults: ["NetworkStackAppCommon"],
60 certificate: "platform",
Remi NGUYEN VAN0a4df5a2019-03-08 17:20:49 +090061 manifest: "AndroidManifest_InProcess.xml",
Remi NGUYEN VANded23152018-12-07 16:52:24 +090062}
63
64// Updatable network stack packaged as an application
65android_app {
66 name: "NetworkStack",
Remi NGUYEN VAN40369562019-03-20 16:40:54 +090067 defaults: ["NetworkStackAppCommon"],
Remi NGUYEN VANd8327a22019-02-15 17:45:03 +090068 certificate: "networkstack",
Remi NGUYEN VAN0a4df5a2019-03-08 17:20:49 +090069 manifest: "AndroidManifest.xml",
Chiachang Wang8b5f84a2019-02-22 11:13:07 +080070}