Remi NGUYEN VAN | c094a54 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 1 | // |
| 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 VAN | 8acc99a | 2019-03-08 17:20:49 +0900 | [diff] [blame] | 17 | // Library including the network stack, used to compile both variants of the network stack |
| 18 | android_library { |
| 19 | name: "NetworkStackBase", |
Remi NGUYEN VAN | 4c30b41 | 2019-01-29 21:32:48 +0900 | [diff] [blame] | 20 | sdk_version: "system_current", |
Remi NGUYEN VAN | 8acc99a | 2019-03-08 17:20:49 +0900 | [diff] [blame] | 21 | min_sdk_version: "28", |
Remi NGUYEN VAN | c094a54 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 22 | srcs: [ |
| 23 | "src/**/*.java", |
Remi NGUYEN VAN | e88516f | 2019-01-20 09:35:10 +0900 | [diff] [blame] | 24 | ":framework-networkstack-shared-srcs", |
Remi NGUYEN VAN | e67b0c3 | 2018-12-27 16:43:56 +0900 | [diff] [blame] | 25 | ":services-networkstack-shared-srcs", |
Remi NGUYEN VAN | c094a54 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 26 | ], |
Remi NGUYEN VAN | 0e3d0923 | 2018-12-04 12:13:09 +0900 | [diff] [blame] | 27 | static_libs: [ |
Chalard Jean | 9521351 | 2019-01-30 21:04:58 +0900 | [diff] [blame] | 28 | "ipmemorystore-client", |
Remi NGUYEN VAN | 231b52b | 2019-01-29 15:38:52 +0900 | [diff] [blame] | 29 | "netd_aidl_interface-java", |
| 30 | "networkstack-aidl-interfaces-java", |
Chiachang Wang | f09e3e3 | 2019-02-22 11:13:07 +0800 | [diff] [blame] | 31 | "datastallprotosnano", |
Remi NGUYEN VAN | 8acc99a | 2019-03-08 17:20:49 +0900 | [diff] [blame] | 32 | ], |
| 33 | manifest: "AndroidManifestBase.xml", |
| 34 | } |
| 35 | |
| 36 | // Non-updatable in-process network stack for devices not using the module |
| 37 | android_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 VAN | c094a54 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 50 | } |
| 51 | |
| 52 | // Updatable network stack packaged as an application |
| 53 | android_app { |
| 54 | name: "NetworkStack", |
Remi NGUYEN VAN | 4c30b41 | 2019-01-29 21:32:48 +0900 | [diff] [blame] | 55 | sdk_version: "system_current", |
Remi NGUYEN VAN | 5026c9e | 2019-03-05 10:14:54 +0900 | [diff] [blame] | 56 | min_sdk_version: "28", |
Remi NGUYEN VAN | ab96bc7 | 2019-02-15 17:45:03 +0900 | [diff] [blame] | 57 | certificate: "networkstack", |
Remi NGUYEN VAN | c094a54 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 58 | privileged: true, |
| 59 | static_libs: [ |
Remi NGUYEN VAN | 8acc99a | 2019-03-08 17:20:49 +0900 | [diff] [blame] | 60 | "NetworkStackBase" |
Remi NGUYEN VAN | c094a54 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 61 | ], |
Remi NGUYEN VAN | 1b57e8e | 2019-02-14 18:19:14 +0900 | [diff] [blame] | 62 | jarjar_rules: "jarjar-rules-shared.txt", |
Remi NGUYEN VAN | 8acc99a | 2019-03-08 17:20:49 +0900 | [diff] [blame] | 63 | // The permission configuration *must* be included to ensure security of the device |
Remi NGUYEN VAN | d8c75a0 | 2019-01-30 21:45:56 +0900 | [diff] [blame] | 64 | required: ["NetworkStackPermissionStub"], |
Remi NGUYEN VAN | 8acc99a | 2019-03-08 17:20:49 +0900 | [diff] [blame] | 65 | manifest: "AndroidManifest.xml", |
Chiachang Wang | f09e3e3 | 2019-02-22 11:13:07 +0800 | [diff] [blame] | 66 | } |