blob: 190247aecb2e136a12e4aad8aeba8a4f0362be00 [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 VAN0a4df5a2019-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 VANf66337f2019-01-29 21:32:48 +090020 sdk_version: "system_current",
Remi NGUYEN VAN0a4df5a2019-03-08 17:20:49 +090021 min_sdk_version: "28",
Remi NGUYEN VANded23152018-12-07 16:52:24 +090022 srcs: [
23 "src/**/*.java",
Remi NGUYEN VAN82b4b422019-01-20 09:35:10 +090024 ":framework-networkstack-shared-srcs",
Remi NGUYEN VAN5daa3702018-12-27 16:43:56 +090025 ":services-networkstack-shared-srcs",
Remi NGUYEN VANded23152018-12-07 16:52:24 +090026 ],
Remi NGUYEN VAN057bf202018-12-04 12:13:09 +090027 static_libs: [
Remi NGUYEN VAN6e9fdbd2019-01-29 15:38:52 +090028 "netd_aidl_interface-java",
29 "networkstack-aidl-interfaces-java",
Chiachang Wang8b5f84a2019-02-22 11:13:07 +080030 "datastallprotosnano",
Remi NGUYEN VAN0a4df5a2019-03-08 17:20:49 +090031 ],
32 manifest: "AndroidManifestBase.xml",
33}
34
35// Non-updatable in-process network stack for devices not using the module
36android_app {
37 name: "InProcessNetworkStack",
38 sdk_version: "system_current",
39 min_sdk_version: "28",
40 certificate: "platform",
41 privileged: true,
42 static_libs: [
43 "NetworkStackBase",
44 ],
45 jarjar_rules: "jarjar-rules-shared.txt",
46 // The permission configuration *must* be included to ensure security of the device
47 required: ["NetworkStackPermissionStub"],
48 manifest: "AndroidManifest_InProcess.xml",
Remi NGUYEN VANded23152018-12-07 16:52:24 +090049}
50
51// Updatable network stack packaged as an application
52android_app {
53 name: "NetworkStack",
Remi NGUYEN VANf66337f2019-01-29 21:32:48 +090054 sdk_version: "system_current",
Remi NGUYEN VANbc987a32019-03-05 10:14:54 +090055 min_sdk_version: "28",
Remi NGUYEN VANd8327a22019-02-15 17:45:03 +090056 certificate: "networkstack",
Remi NGUYEN VANded23152018-12-07 16:52:24 +090057 privileged: true,
58 static_libs: [
Remi NGUYEN VAN0a4df5a2019-03-08 17:20:49 +090059 "NetworkStackBase"
Remi NGUYEN VANded23152018-12-07 16:52:24 +090060 ],
Remi NGUYEN VANe99c73e2019-02-14 18:19:14 +090061 jarjar_rules: "jarjar-rules-shared.txt",
Remi NGUYEN VAN0a4df5a2019-03-08 17:20:49 +090062 // The permission configuration *must* be included to ensure security of the device
Remi NGUYEN VANd65832e2019-01-30 21:45:56 +090063 required: ["NetworkStackPermissionStub"],
Remi NGUYEN VAN0a4df5a2019-03-08 17:20:49 +090064 manifest: "AndroidManifest.xml",
Chiachang Wang8b5f84a2019-02-22 11:13:07 +080065}