Remi NGUYEN VAN | ded2315 | 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 | 0a4df5a | 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 | f66337f | 2019-01-29 21:32:48 +0900 | [diff] [blame] | 20 | sdk_version: "system_current", |
Remi NGUYEN VAN | 0a4df5a | 2019-03-08 17:20:49 +0900 | [diff] [blame^] | 21 | min_sdk_version: "28", |
Remi NGUYEN VAN | ded2315 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 22 | srcs: [ |
| 23 | "src/**/*.java", |
Remi NGUYEN VAN | 82b4b42 | 2019-01-20 09:35:10 +0900 | [diff] [blame] | 24 | ":framework-networkstack-shared-srcs", |
Remi NGUYEN VAN | 5daa370 | 2018-12-27 16:43:56 +0900 | [diff] [blame] | 25 | ":services-networkstack-shared-srcs", |
Remi NGUYEN VAN | ded2315 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 26 | ], |
Remi NGUYEN VAN | 057bf20 | 2018-12-04 12:13:09 +0900 | [diff] [blame] | 27 | static_libs: [ |
Remi NGUYEN VAN | 6e9fdbd | 2019-01-29 15:38:52 +0900 | [diff] [blame] | 28 | "netd_aidl_interface-java", |
| 29 | "networkstack-aidl-interfaces-java", |
Chiachang Wang | 8b5f84a | 2019-02-22 11:13:07 +0800 | [diff] [blame] | 30 | "datastallprotosnano", |
Remi NGUYEN VAN | 0a4df5a | 2019-03-08 17:20:49 +0900 | [diff] [blame^] | 31 | ], |
| 32 | manifest: "AndroidManifestBase.xml", |
| 33 | } |
| 34 | |
| 35 | // Non-updatable in-process network stack for devices not using the module |
| 36 | android_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 VAN | ded2315 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 49 | } |
| 50 | |
| 51 | // Updatable network stack packaged as an application |
| 52 | android_app { |
| 53 | name: "NetworkStack", |
Remi NGUYEN VAN | f66337f | 2019-01-29 21:32:48 +0900 | [diff] [blame] | 54 | sdk_version: "system_current", |
Remi NGUYEN VAN | bc987a3 | 2019-03-05 10:14:54 +0900 | [diff] [blame] | 55 | min_sdk_version: "28", |
Remi NGUYEN VAN | d8327a2 | 2019-02-15 17:45:03 +0900 | [diff] [blame] | 56 | certificate: "networkstack", |
Remi NGUYEN VAN | ded2315 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 57 | privileged: true, |
| 58 | static_libs: [ |
Remi NGUYEN VAN | 0a4df5a | 2019-03-08 17:20:49 +0900 | [diff] [blame^] | 59 | "NetworkStackBase" |
Remi NGUYEN VAN | ded2315 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 60 | ], |
Remi NGUYEN VAN | e99c73e | 2019-02-14 18:19:14 +0900 | [diff] [blame] | 61 | jarjar_rules: "jarjar-rules-shared.txt", |
Remi NGUYEN VAN | 0a4df5a | 2019-03-08 17:20:49 +0900 | [diff] [blame^] | 62 | // The permission configuration *must* be included to ensure security of the device |
Remi NGUYEN VAN | d65832e | 2019-01-30 21:45:56 +0900 | [diff] [blame] | 63 | required: ["NetworkStackPermissionStub"], |
Remi NGUYEN VAN | 0a4df5a | 2019-03-08 17:20:49 +0900 | [diff] [blame^] | 64 | manifest: "AndroidManifest.xml", |
Chiachang Wang | 8b5f84a | 2019-02-22 11:13:07 +0800 | [diff] [blame] | 65 | } |