blob: c3031801e8d46fc7fd063db2f0b68e2627b0d6d5 [file] [log] [blame]
Remi NGUYEN VANc094a542018-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 VAN86c45822019-03-20 16:40:54 +090017java_defaults {
18 name: "NetworkStackCommon",
19 sdk_version: "system_current",
20 min_sdk_version: "28",
21}
22
Remi NGUYEN VAN8acc99a2019-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 VAN86c45822019-03-20 16:40:54 +090026 defaults: ["NetworkStackCommon"],
Remi NGUYEN VANc094a542018-12-07 16:52:24 +090027 srcs: [
28 "src/**/*.java",
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +090029 ":framework-networkstack-shared-srcs",
Remi NGUYEN VANe67b0c3a2018-12-27 16:43:56 +090030 ":services-networkstack-shared-srcs",
Remi NGUYEN VANc094a542018-12-07 16:52:24 +090031 ],
Remi NGUYEN VAN0e3d09232018-12-04 12:13:09 +090032 static_libs: [
Chalard Jean95213512019-01-30 21:04:58 +090033 "ipmemorystore-client",
Remi NGUYEN VAN231b52b2019-01-29 15:38:52 +090034 "netd_aidl_interface-java",
35 "networkstack-aidl-interfaces-java",
Chiachang Wangf09e3e32019-02-22 11:13:07 +080036 "datastallprotosnano",
Remi NGUYEN VAN8acc99a2019-03-08 17:20:49 +090037 ],
38 manifest: "AndroidManifestBase.xml",
39}
40
Remi NGUYEN VAN86c45822019-03-20 16:40:54 +090041java_defaults {
42 name: "NetworkStackAppCommon",
43 defaults: ["NetworkStackCommon"],
Remi NGUYEN VAN8acc99a2019-03-08 17:20:49 +090044 privileged: true,
45 static_libs: [
46 "NetworkStackBase",
47 ],
Remi NGUYEN VAN86c45822019-03-20 16:40:54 +090048 // Resources already included in NetworkStackBase
49 resource_dirs: [],
Remi NGUYEN VAN8acc99a2019-03-08 17:20:49 +090050 jarjar_rules: "jarjar-rules-shared.txt",
51 // The permission configuration *must* be included to ensure security of the device
52 required: ["NetworkStackPermissionStub"],
Remi NGUYEN VAN86c45822019-03-20 16:40:54 +090053}
54
55// Non-updatable network stack running in the system server process for devices not using the module
56android_app {
57 name: "InProcessNetworkStack",
58 defaults: ["NetworkStackAppCommon"],
59 certificate: "platform",
Remi NGUYEN VAN8acc99a2019-03-08 17:20:49 +090060 manifest: "AndroidManifest_InProcess.xml",
Remi NGUYEN VANc094a542018-12-07 16:52:24 +090061}
62
63// Updatable network stack packaged as an application
64android_app {
65 name: "NetworkStack",
Remi NGUYEN VAN86c45822019-03-20 16:40:54 +090066 defaults: ["NetworkStackAppCommon"],
Remi NGUYEN VANab96bc72019-02-15 17:45:03 +090067 certificate: "networkstack",
Remi NGUYEN VAN8acc99a2019-03-08 17:20:49 +090068 manifest: "AndroidManifest.xml",
Chiachang Wangf09e3e32019-02-22 11:13:07 +080069}