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 | 4036956 | 2019-03-20 16:40:54 +0900 | [diff] [blame] | 17 | java_defaults { |
| 18 | name: "NetworkStackCommon", |
| 19 | sdk_version: "system_current", |
| 20 | min_sdk_version: "28", |
| 21 | } |
| 22 | |
Remi NGUYEN VAN | 0a4df5a | 2019-03-08 17:20:49 +0900 | [diff] [blame] | 23 | // Library including the network stack, used to compile both variants of the network stack |
| 24 | android_library { |
| 25 | name: "NetworkStackBase", |
Remi NGUYEN VAN | 4036956 | 2019-03-20 16:40:54 +0900 | [diff] [blame] | 26 | defaults: ["NetworkStackCommon"], |
Remi NGUYEN VAN | ded2315 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 27 | srcs: [ |
| 28 | "src/**/*.java", |
Remi NGUYEN VAN | 82b4b42 | 2019-01-20 09:35:10 +0900 | [diff] [blame] | 29 | ":framework-networkstack-shared-srcs", |
Remi NGUYEN VAN | 5daa370 | 2018-12-27 16:43:56 +0900 | [diff] [blame] | 30 | ":services-networkstack-shared-srcs", |
Remi NGUYEN VAN | ded2315 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 31 | ], |
Remi NGUYEN VAN | 057bf20 | 2018-12-04 12:13:09 +0900 | [diff] [blame] | 32 | static_libs: [ |
Chalard Jean | 5b67876 | 2019-01-30 21:04:58 +0900 | [diff] [blame] | 33 | "ipmemorystore-client", |
Remi NGUYEN VAN | 6e9fdbd | 2019-01-29 15:38:52 +0900 | [diff] [blame] | 34 | "netd_aidl_interface-java", |
| 35 | "networkstack-aidl-interfaces-java", |
Chiachang Wang | 8b5f84a | 2019-02-22 11:13:07 +0800 | [diff] [blame] | 36 | "datastallprotosnano", |
Chiachang Wang | 54663a8 | 2019-03-21 20:40:01 +0800 | [diff] [blame] | 37 | "networkstackprotosnano", |
Remi NGUYEN VAN | 0a4df5a | 2019-03-08 17:20:49 +0900 | [diff] [blame] | 38 | ], |
| 39 | manifest: "AndroidManifestBase.xml", |
| 40 | } |
| 41 | |
Remi NGUYEN VAN | 4036956 | 2019-03-20 16:40:54 +0900 | [diff] [blame] | 42 | java_defaults { |
| 43 | name: "NetworkStackAppCommon", |
| 44 | defaults: ["NetworkStackCommon"], |
Remi NGUYEN VAN | 0a4df5a | 2019-03-08 17:20:49 +0900 | [diff] [blame] | 45 | privileged: true, |
| 46 | static_libs: [ |
| 47 | "NetworkStackBase", |
| 48 | ], |
Remi NGUYEN VAN | 4036956 | 2019-03-20 16:40:54 +0900 | [diff] [blame] | 49 | // Resources already included in NetworkStackBase |
| 50 | resource_dirs: [], |
Remi NGUYEN VAN | 0a4df5a | 2019-03-08 17:20:49 +0900 | [diff] [blame] | 51 | jarjar_rules: "jarjar-rules-shared.txt", |
| 52 | // The permission configuration *must* be included to ensure security of the device |
Remi NGUYEN VAN | 288fb70 | 2019-03-26 17:24:48 +0900 | [diff] [blame^] | 53 | required: ["NetworkPermissionConfig"], |
Remi NGUYEN VAN | 4036956 | 2019-03-20 16:40:54 +0900 | [diff] [blame] | 54 | } |
| 55 | |
| 56 | // Non-updatable network stack running in the system server process for devices not using the module |
| 57 | android_app { |
| 58 | name: "InProcessNetworkStack", |
| 59 | defaults: ["NetworkStackAppCommon"], |
| 60 | certificate: "platform", |
Remi NGUYEN VAN | 0a4df5a | 2019-03-08 17:20:49 +0900 | [diff] [blame] | 61 | manifest: "AndroidManifest_InProcess.xml", |
Remi NGUYEN VAN | ded2315 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 62 | } |
| 63 | |
| 64 | // Updatable network stack packaged as an application |
| 65 | android_app { |
| 66 | name: "NetworkStack", |
Remi NGUYEN VAN | 4036956 | 2019-03-20 16:40:54 +0900 | [diff] [blame] | 67 | defaults: ["NetworkStackAppCommon"], |
Remi NGUYEN VAN | d8327a2 | 2019-02-15 17:45:03 +0900 | [diff] [blame] | 68 | certificate: "networkstack", |
Remi NGUYEN VAN | 0a4df5a | 2019-03-08 17:20:49 +0900 | [diff] [blame] | 69 | manifest: "AndroidManifest.xml", |
Chiachang Wang | 8b5f84a | 2019-02-22 11:13:07 +0800 | [diff] [blame] | 70 | } |