blob: f210840b976ff7a1d3b361b15a08e9837dd5c810 [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
17// Library including the network stack, used to compile the network stack app, or linked into the
18// system server on devices that run the stack there
19java_library {
20 name: "NetworkStackLib",
Remi NGUYEN VAN4c30b412019-01-29 21:32:48 +090021 sdk_version: "system_current",
Remi NGUYEN VANc094a542018-12-07 16:52:24 +090022 installable: true,
23 srcs: [
24 "src/**/*.java",
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +090025 ":framework-networkstack-shared-srcs",
Remi NGUYEN VANe67b0c32018-12-27 16:43:56 +090026 ":services-networkstack-shared-srcs",
Remi NGUYEN VANc094a542018-12-07 16:52:24 +090027 ],
Remi NGUYEN VAN0e3d09232018-12-04 12:13:09 +090028 static_libs: [
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 VAN0e3d09232018-12-04 12:13:09 +090032 ]
Remi NGUYEN VANc094a542018-12-07 16:52:24 +090033}
34
35// Updatable network stack packaged as an application
36android_app {
37 name: "NetworkStack",
Remi NGUYEN VAN4c30b412019-01-29 21:32:48 +090038 sdk_version: "system_current",
Remi NGUYEN VAN5026c9e2019-03-05 10:14:54 +090039 min_sdk_version: "28",
Remi NGUYEN VANab96bc72019-02-15 17:45:03 +090040 certificate: "networkstack",
Remi NGUYEN VANc094a542018-12-07 16:52:24 +090041 privileged: true,
42 static_libs: [
43 "NetworkStackLib"
44 ],
Remi NGUYEN VAN1b57e8e2019-02-14 18:19:14 +090045 jarjar_rules: "jarjar-rules-shared.txt",
Remi NGUYEN VANc094a542018-12-07 16:52:24 +090046 manifest: "AndroidManifest.xml",
Remi NGUYEN VANd8c75a02019-01-30 21:45:56 +090047 required: ["NetworkStackPermissionStub"],
Chiachang Wangf09e3e32019-02-22 11:13:07 +080048}