blob: 8872147b65ed2f1a3dbd66743ecfb65415c6edc6 [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 VAN8acc99a2019-03-08 17:20:49 +090017// Library including the network stack, used to compile both variants of the network stack
18android_library {
19 name: "NetworkStackBase",
Remi NGUYEN VAN4c30b412019-01-29 21:32:48 +090020 sdk_version: "system_current",
Remi NGUYEN VAN8acc99a2019-03-08 17:20:49 +090021 min_sdk_version: "28",
Remi NGUYEN VANc094a542018-12-07 16:52:24 +090022 srcs: [
23 "src/**/*.java",
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +090024 ":framework-networkstack-shared-srcs",
Remi NGUYEN VANe67b0c32018-12-27 16:43:56 +090025 ":services-networkstack-shared-srcs",
Remi NGUYEN VANc094a542018-12-07 16:52:24 +090026 ],
Remi NGUYEN VAN0e3d09232018-12-04 12:13:09 +090027 static_libs: [
Chalard Jean95213512019-01-30 21:04:58 +090028 "ipmemorystore-client",
Remi NGUYEN VAN231b52b2019-01-29 15:38:52 +090029 "netd_aidl_interface-java",
30 "networkstack-aidl-interfaces-java",
Chiachang Wangf09e3e32019-02-22 11:13:07 +080031 "datastallprotosnano",
Remi NGUYEN VAN8acc99a2019-03-08 17:20:49 +090032 ],
33 manifest: "AndroidManifestBase.xml",
34}
35
36// Non-updatable in-process network stack for devices not using the module
37android_app {
38 name: "InProcessNetworkStack",
39 sdk_version: "system_current",
40 min_sdk_version: "28",
41 certificate: "platform",
42 privileged: true,
43 static_libs: [
44 "NetworkStackBase",
45 ],
46 jarjar_rules: "jarjar-rules-shared.txt",
47 // The permission configuration *must* be included to ensure security of the device
48 required: ["NetworkStackPermissionStub"],
49 manifest: "AndroidManifest_InProcess.xml",
Remi NGUYEN VANc094a542018-12-07 16:52:24 +090050}
51
52// Updatable network stack packaged as an application
53android_app {
54 name: "NetworkStack",
Remi NGUYEN VAN4c30b412019-01-29 21:32:48 +090055 sdk_version: "system_current",
Remi NGUYEN VAN5026c9e2019-03-05 10:14:54 +090056 min_sdk_version: "28",
Remi NGUYEN VANab96bc72019-02-15 17:45:03 +090057 certificate: "networkstack",
Remi NGUYEN VANc094a542018-12-07 16:52:24 +090058 privileged: true,
59 static_libs: [
Remi NGUYEN VAN8acc99a2019-03-08 17:20:49 +090060 "NetworkStackBase"
Remi NGUYEN VANc094a542018-12-07 16:52:24 +090061 ],
Remi NGUYEN VAN1b57e8e2019-02-14 18:19:14 +090062 jarjar_rules: "jarjar-rules-shared.txt",
Remi NGUYEN VAN8acc99a2019-03-08 17:20:49 +090063 // The permission configuration *must* be included to ensure security of the device
Remi NGUYEN VANd8c75a02019-01-30 21:45:56 +090064 required: ["NetworkStackPermissionStub"],
Remi NGUYEN VAN8acc99a2019-03-08 17:20:49 +090065 manifest: "AndroidManifest.xml",
Chiachang Wangf09e3e32019-02-22 11:13:07 +080066}