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 | 86c4582 | 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 | 8acc99a | 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 | 86c4582 | 2019-03-20 16:40:54 +0900 | [diff] [blame^] | 26 | defaults: ["NetworkStackCommon"], |
Remi NGUYEN VAN | c094a54 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 27 | srcs: [ |
| 28 | "src/**/*.java", |
Remi NGUYEN VAN | e88516f | 2019-01-20 09:35:10 +0900 | [diff] [blame] | 29 | ":framework-networkstack-shared-srcs", |
Remi NGUYEN VAN | e67b0c3a | 2018-12-27 16:43:56 +0900 | [diff] [blame] | 30 | ":services-networkstack-shared-srcs", |
Remi NGUYEN VAN | c094a54 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 31 | ], |
Remi NGUYEN VAN | 0e3d0923 | 2018-12-04 12:13:09 +0900 | [diff] [blame] | 32 | static_libs: [ |
Chalard Jean | 9521351 | 2019-01-30 21:04:58 +0900 | [diff] [blame] | 33 | "ipmemorystore-client", |
Remi NGUYEN VAN | 231b52b | 2019-01-29 15:38:52 +0900 | [diff] [blame] | 34 | "netd_aidl_interface-java", |
| 35 | "networkstack-aidl-interfaces-java", |
Chiachang Wang | f09e3e3 | 2019-02-22 11:13:07 +0800 | [diff] [blame] | 36 | "datastallprotosnano", |
Remi NGUYEN VAN | 8acc99a | 2019-03-08 17:20:49 +0900 | [diff] [blame] | 37 | ], |
| 38 | manifest: "AndroidManifestBase.xml", |
| 39 | } |
| 40 | |
Remi NGUYEN VAN | 86c4582 | 2019-03-20 16:40:54 +0900 | [diff] [blame^] | 41 | java_defaults { |
| 42 | name: "NetworkStackAppCommon", |
| 43 | defaults: ["NetworkStackCommon"], |
Remi NGUYEN VAN | 8acc99a | 2019-03-08 17:20:49 +0900 | [diff] [blame] | 44 | privileged: true, |
| 45 | static_libs: [ |
| 46 | "NetworkStackBase", |
| 47 | ], |
Remi NGUYEN VAN | 86c4582 | 2019-03-20 16:40:54 +0900 | [diff] [blame^] | 48 | // Resources already included in NetworkStackBase |
| 49 | resource_dirs: [], |
Remi NGUYEN VAN | 8acc99a | 2019-03-08 17:20:49 +0900 | [diff] [blame] | 50 | jarjar_rules: "jarjar-rules-shared.txt", |
| 51 | // The permission configuration *must* be included to ensure security of the device |
| 52 | required: ["NetworkStackPermissionStub"], |
Remi NGUYEN VAN | 86c4582 | 2019-03-20 16:40:54 +0900 | [diff] [blame^] | 53 | } |
| 54 | |
| 55 | // Non-updatable network stack running in the system server process for devices not using the module |
| 56 | android_app { |
| 57 | name: "InProcessNetworkStack", |
| 58 | defaults: ["NetworkStackAppCommon"], |
| 59 | certificate: "platform", |
Remi NGUYEN VAN | 8acc99a | 2019-03-08 17:20:49 +0900 | [diff] [blame] | 60 | manifest: "AndroidManifest_InProcess.xml", |
Remi NGUYEN VAN | c094a54 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 61 | } |
| 62 | |
| 63 | // Updatable network stack packaged as an application |
| 64 | android_app { |
| 65 | name: "NetworkStack", |
Remi NGUYEN VAN | 86c4582 | 2019-03-20 16:40:54 +0900 | [diff] [blame^] | 66 | defaults: ["NetworkStackAppCommon"], |
Remi NGUYEN VAN | ab96bc7 | 2019-02-15 17:45:03 +0900 | [diff] [blame] | 67 | certificate: "networkstack", |
Remi NGUYEN VAN | 8acc99a | 2019-03-08 17:20:49 +0900 | [diff] [blame] | 68 | manifest: "AndroidManifest.xml", |
Chiachang Wang | f09e3e3 | 2019-02-22 11:13:07 +0800 | [diff] [blame] | 69 | } |