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 | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 17 | // The network stack can be compiled using system_current (non-finalized) SDK, or finalized system_X |
| 18 | // SDK. There is also a variant that uses system_current SDK and runs in the system process |
| 19 | // (InProcessNetworkStack). The following structure is used to create the build rules: |
| 20 | // |
| 21 | // NetworkStackAndroidLibraryDefaults <-- common defaults for android libs |
Remi NGUYEN VAN | 794a4b5 | 2019-09-06 13:00:33 +0900 | [diff] [blame] | 22 | // / \ |
| 23 | // +NetworkStackApiStableShims --> / \ <-- +NetworkStackApiCurrentShims |
Remi NGUYEN VAN | 16fe454 | 2020-01-16 13:48:38 +0900 | [diff] [blame] | 24 | // +NetworkStackReleaseApiLevel / \ +NetworkStackDevApiLevel |
Remi NGUYEN VAN | 794a4b5 | 2019-09-06 13:00:33 +0900 | [diff] [blame] | 25 | // +jarjar apistub.api[latest].* / \ +module src/ |
| 26 | // to apistub.* / \ |
| 27 | // / \ |
| 28 | // NetworkStackApiStableDependencies \ |
| 29 | // / \ android libs w/ all code |
| 30 | // +module src/ --> / \ (also used in unit tests) |
| 31 | // / \ | |
| 32 | // NetworkStackApiStableLib NetworkStackApiCurrentLib <--* |
| 33 | // | | |
| 34 | // | <-- +NetworkStackAppDefaults --> | |
| 35 | // | (APK build params) | |
| 36 | // | | |
Remi NGUYEN VAN | 16fe454 | 2020-01-16 13:48:38 +0900 | [diff] [blame] | 37 | // | <-- +NetworkStackReleaseApiLevel | <-- +NetworkStackDevApiLevel |
Remi NGUYEN VAN | 794a4b5 | 2019-09-06 13:00:33 +0900 | [diff] [blame] | 38 | // | | |
| 39 | // | | |
| 40 | // NetworkStackApiStable NetworkStack, InProcessNetworkStack, <-- APKs |
| 41 | // TestNetworkStack |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 42 | |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 43 | // Common defaults to define SDK level |
Remi NGUYEN VAN | 4036956 | 2019-03-20 16:40:54 +0900 | [diff] [blame] | 44 | java_defaults { |
Remi NGUYEN VAN | 16fe454 | 2020-01-16 13:48:38 +0900 | [diff] [blame] | 45 | name: "NetworkStackDevApiLevel", |
Remi NGUYEN VAN | 4036956 | 2019-03-20 16:40:54 +0900 | [diff] [blame] | 46 | sdk_version: "system_current", |
Remi NGUYEN VAN | 4036956 | 2019-03-20 16:40:54 +0900 | [diff] [blame] | 47 | } |
| 48 | |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 49 | java_defaults { |
Remi NGUYEN VAN | 16fe454 | 2020-01-16 13:48:38 +0900 | [diff] [blame] | 50 | name: "NetworkStackReleaseApiLevel", |
Remi NGUYEN VAN | 794a4b5 | 2019-09-06 13:00:33 +0900 | [diff] [blame] | 51 | sdk_version: "system_29", |
Remi NGUYEN VAN | 16fe454 | 2020-01-16 13:48:38 +0900 | [diff] [blame] | 52 | min_sdk_version: "29", |
| 53 | target_sdk_version: "29", |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 54 | } |
| 55 | |
Remi NGUYEN VAN | 794a4b5 | 2019-09-06 13:00:33 +0900 | [diff] [blame] | 56 | // Filegroups for the API shims |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 57 | filegroup { |
| 58 | name: "NetworkStackApiCurrentShims", |
| 59 | srcs: [ |
Remi NGUYEN VAN | 794a4b5 | 2019-09-06 13:00:33 +0900 | [diff] [blame] | 60 | "apishim/common/**/*.java", |
| 61 | "apishim/29/**/*.java", |
Remi NGUYEN VAN | f9c9b71 | 2019-11-08 11:37:33 +0000 | [diff] [blame] | 62 | "apishim/30/**/*.java", |
Remi NGUYEN VAN | 44e8ebf | 2020-02-15 04:36:06 +0900 | [diff] [blame] | 63 | ":networkstack-module-utils-srcs", |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 64 | ], |
| 65 | } |
| 66 | |
Remi NGUYEN VAN | 794a4b5 | 2019-09-06 13:00:33 +0900 | [diff] [blame] | 67 | // API stable shims only include the compat package, but it is jarjared to replace the non-compat |
| 68 | // package |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 69 | filegroup { |
| 70 | name: "NetworkStackApiStableShims", |
| 71 | srcs: [ |
Remi NGUYEN VAN | 794a4b5 | 2019-09-06 13:00:33 +0900 | [diff] [blame] | 72 | "apishim/common/**/*.java", |
| 73 | "apishim/29/**/*.java", |
Remi NGUYEN VAN | 44e8ebf | 2020-02-15 04:36:06 +0900 | [diff] [blame] | 74 | ":networkstack-module-utils-srcs", |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 75 | ], |
| 76 | } |
| 77 | |
| 78 | // Common defaults for android libraries containing network stack code, used to compile variants of |
| 79 | // the network stack in the system process and in the network_stack process |
| 80 | java_defaults { |
| 81 | name: "NetworkStackAndroidLibraryDefaults", |
Remi NGUYEN VAN | ded2315 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 82 | srcs: [ |
Remi NGUYEN VAN | 82b4b42 | 2019-01-20 09:35:10 +0900 | [diff] [blame] | 83 | ":framework-networkstack-shared-srcs", |
Remi NGUYEN VAN | ded2315 | 2018-12-07 16:52:24 +0900 | [diff] [blame] | 84 | ], |
Artur Satayev | 0eb158a | 2019-12-10 12:54:01 +0000 | [diff] [blame] | 85 | libs: ["unsupportedappusage"], |
Remi NGUYEN VAN | 057bf20 | 2018-12-04 12:13:09 +0900 | [diff] [blame] | 86 | static_libs: [ |
Niklas Lindgren | 0c90488 | 2018-12-07 11:08:04 +0100 | [diff] [blame] | 87 | "androidx.annotation_annotation", |
Luke Huang | ddf63d0 | 2020-04-01 01:02:59 +0800 | [diff] [blame] | 88 | "netd_aidl_interface-V3-java", |
Remi NGUYEN VAN | 1fc930c | 2019-08-09 13:23:47 +0900 | [diff] [blame] | 89 | "netlink-client", |
Remi NGUYEN VAN | bbb9703 | 2019-08-08 15:53:54 +0900 | [diff] [blame] | 90 | "networkstack-client", |
Chiachang Wang | 8b5f84a | 2019-02-22 11:13:07 +0800 | [diff] [blame] | 91 | "datastallprotosnano", |
Chiachang Wang | 54663a8 | 2019-03-21 20:40:01 +0800 | [diff] [blame] | 92 | "networkstackprotosnano", |
paulhu | 5982eff | 2019-03-29 19:21:30 +0800 | [diff] [blame] | 93 | "captiveportal-lib", |
Remi NGUYEN VAN | 0a4df5a | 2019-03-08 17:20:49 +0900 | [diff] [blame] | 94 | ], |
Kun Niu | f3b6904 | 2019-07-01 17:03:20 -0700 | [diff] [blame] | 95 | plugins: ["java_api_finder"], |
Remi NGUYEN VAN | 0a4df5a | 2019-03-08 17:20:49 +0900 | [diff] [blame] | 96 | } |
| 97 | |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 98 | // The versions of the android library containing network stack code compiled for each SDK variant |
Remi NGUYEN VAN | 794a4b5 | 2019-09-06 13:00:33 +0900 | [diff] [blame] | 99 | // API current uses the sources of the API current shims directly. |
| 100 | // This allows API current code to be treated identically to code in src/ (it will be moved |
| 101 | // there eventually), and to use the compat shim as fallback on older devices. |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 102 | android_library { |
| 103 | name: "NetworkStackApiCurrentLib", |
Remi NGUYEN VAN | 16fe454 | 2020-01-16 13:48:38 +0900 | [diff] [blame] | 104 | defaults: ["NetworkStackDevApiLevel", "NetworkStackAndroidLibraryDefaults"], |
Muhammad Qureshi | aa428cc | 2020-01-29 11:15:16 -0800 | [diff] [blame] | 105 | srcs: [ |
| 106 | ":NetworkStackApiCurrentShims", |
| 107 | "src/**/*.java", |
| 108 | ":statslog-networkstack-java-gen" |
| 109 | ], |
Remi NGUYEN VAN | 794a4b5 | 2019-09-06 13:00:33 +0900 | [diff] [blame] | 110 | manifest: "AndroidManifestBase.xml", |
| 111 | } |
| 112 | |
| 113 | // For API stable, first build the dependencies using jarjar compat rules, then build the sources |
| 114 | // linking with the dependencies. |
| 115 | java_library { |
| 116 | name: "NetworkStackApiStableDependencies", |
Remi NGUYEN VAN | 16fe454 | 2020-01-16 13:48:38 +0900 | [diff] [blame] | 117 | defaults: ["NetworkStackReleaseApiLevel", "NetworkStackAndroidLibraryDefaults"], |
Remi NGUYEN VAN | 794a4b5 | 2019-09-06 13:00:33 +0900 | [diff] [blame] | 118 | srcs: [":NetworkStackApiStableShims"], |
| 119 | jarjar_rules: "apishim/jarjar-rules-compat.txt", |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 120 | } |
| 121 | |
| 122 | android_library { |
| 123 | name: "NetworkStackApiStableLib", |
Remi NGUYEN VAN | 16fe454 | 2020-01-16 13:48:38 +0900 | [diff] [blame] | 124 | defaults: ["NetworkStackReleaseApiLevel"], |
Muhammad Qureshi | aa428cc | 2020-01-29 11:15:16 -0800 | [diff] [blame] | 125 | srcs: [ |
| 126 | "src/**/*.java", |
| 127 | ":statslog-networkstack-java-gen-q", |
| 128 | ], |
Remi NGUYEN VAN | 794a4b5 | 2019-09-06 13:00:33 +0900 | [diff] [blame] | 129 | // API stable uses a jarjared version of the shims |
| 130 | static_libs: [ |
| 131 | "NetworkStackApiStableDependencies", |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 132 | ], |
Remi NGUYEN VAN | 794a4b5 | 2019-09-06 13:00:33 +0900 | [diff] [blame] | 133 | manifest: "AndroidManifestBase.xml", |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 134 | } |
| 135 | |
Lorenzo Colitti | b891b5e | 2020-02-05 16:48:09 +0900 | [diff] [blame] | 136 | filegroup { |
| 137 | name: "NetworkStackJarJarRules", |
| 138 | srcs: ["jarjar-rules-shared.txt"], |
| 139 | visibility: [ |
| 140 | "//packages/modules/NetworkStack/tests/unit", |
| 141 | "//packages/modules/NetworkStack/tests/integration", |
| 142 | ] |
| 143 | } |
| 144 | |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 145 | // Common defaults for compiling the actual APK, based on the NetworkStackApiXBase android libraries |
| 146 | java_defaults { |
| 147 | name: "NetworkStackAppDefaults", |
| 148 | privileged: true, |
| 149 | jni_libs: [ |
| 150 | "libnativehelper_compat_libc++", |
| 151 | "libnetworkstackutilsjni", |
| 152 | ], |
| 153 | // Resources already included in NetworkStackBase |
| 154 | resource_dirs: [], |
Lorenzo Colitti | b891b5e | 2020-02-05 16:48:09 +0900 | [diff] [blame] | 155 | jarjar_rules: ":NetworkStackJarJarRules", |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 156 | use_embedded_native_libs: true, |
| 157 | optimize: { |
| 158 | proguard_flags_files: ["proguard.flags"], |
| 159 | }, |
| 160 | } |
| 161 | |
| 162 | // Non-updatable network stack running in the system server process for devices not using the module |
| 163 | android_app { |
| 164 | name: "InProcessNetworkStack", |
Remi NGUYEN VAN | 16fe454 | 2020-01-16 13:48:38 +0900 | [diff] [blame] | 165 | defaults: [ "NetworkStackAppDefaults", "NetworkStackDevApiLevel"], |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 166 | static_libs: ["NetworkStackApiCurrentLib"], |
| 167 | certificate: "platform", |
| 168 | manifest: "AndroidManifest_InProcess.xml", |
| 169 | // InProcessNetworkStack is a replacement for NetworkStack |
Remi NGUYEN VAN | ec9d8a6 | 2019-11-11 03:52:43 +0000 | [diff] [blame] | 170 | overrides: ["NetworkStack", "NetworkStackNext"], |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 171 | // The permission configuration *must* be included to ensure security of the device |
| 172 | // The InProcessNetworkStack goes together with the PlatformCaptivePortalLogin, which replaces |
| 173 | // the default CaptivePortalLogin. |
| 174 | required: ["PlatformNetworkPermissionConfig", "PlatformCaptivePortalLogin"], |
| 175 | } |
| 176 | |
Remi NGUYEN VAN | 255d491 | 2020-02-05 13:42:45 +0900 | [diff] [blame] | 177 | // Pre-merge the AndroidManifest for NetworkStackNext, so that its manifest can be merged on top |
| 178 | android_library { |
| 179 | name: "NetworkStackNextManifestBase", |
| 180 | defaults: ["NetworkStackAppDefaults", "NetworkStackDevApiLevel"], |
| 181 | static_libs: ["NetworkStackApiCurrentLib"], |
| 182 | manifest: "AndroidManifest.xml" |
| 183 | } |
| 184 | |
Remi NGUYEN VAN | 16fe454 | 2020-01-16 13:48:38 +0900 | [diff] [blame] | 185 | // NetworkStack build targeting the current API release, for testing on in-development SDK |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 186 | android_app { |
Remi NGUYEN VAN | ec9d8a6 | 2019-11-11 03:52:43 +0000 | [diff] [blame] | 187 | name: "NetworkStackNext", |
Remi NGUYEN VAN | 16fe454 | 2020-01-16 13:48:38 +0900 | [diff] [blame] | 188 | defaults: ["NetworkStackAppDefaults", "NetworkStackDevApiLevel"], |
Remi NGUYEN VAN | 255d491 | 2020-02-05 13:42:45 +0900 | [diff] [blame] | 189 | static_libs: ["NetworkStackNextManifestBase"], |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 190 | certificate: "networkstack", |
Remi NGUYEN VAN | 255d491 | 2020-02-05 13:42:45 +0900 | [diff] [blame] | 191 | manifest: "AndroidManifest_Next.xml", |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 192 | // The permission configuration *must* be included to ensure security of the device |
| 193 | required: ["NetworkPermissionConfig"], |
| 194 | } |
| 195 | |
| 196 | // Updatable network stack for finalized API |
| 197 | android_app { |
Remi NGUYEN VAN | ec9d8a6 | 2019-11-11 03:52:43 +0000 | [diff] [blame] | 198 | name: "NetworkStack", |
Remi NGUYEN VAN | 16fe454 | 2020-01-16 13:48:38 +0900 | [diff] [blame] | 199 | defaults: ["NetworkStackAppDefaults", "NetworkStackReleaseApiLevel"], |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 200 | static_libs: ["NetworkStackApiStableLib"], |
| 201 | certificate: "networkstack", |
| 202 | manifest: "AndroidManifest.xml", |
| 203 | // The permission configuration *must* be included to ensure security of the device |
| 204 | required: ["NetworkPermissionConfig"], |
Artur Satayev | 862a1a1 | 2020-04-09 11:35:52 +0100 | [diff] [blame^] | 205 | updatable: true, |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 206 | } |
| 207 | |
| 208 | // Android library to derive test APKs for integration tests |
| 209 | android_library { |
| 210 | name: "TestNetworkStackLib", |
Remi NGUYEN VAN | 16fe454 | 2020-01-16 13:48:38 +0900 | [diff] [blame] | 211 | defaults: ["NetworkStackAppDefaults", "NetworkStackReleaseApiLevel"], |
| 212 | static_libs: ["NetworkStackApiStableLib"], |
Remi NGUYEN VAN | ae18aed | 2019-10-30 18:20:36 +0900 | [diff] [blame] | 213 | manifest: "AndroidManifestBase.xml", |
Lorenzo Colitti | b891b5e | 2020-02-05 16:48:09 +0900 | [diff] [blame] | 214 | visibility: ["//frameworks/base/tests/net/integration"], |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 215 | } |
| 216 | |
paulhu | e455e2a | 2019-03-29 17:22:20 +0800 | [diff] [blame] | 217 | cc_library_shared { |
| 218 | name: "libnetworkstackutilsjni", |
| 219 | srcs: [ |
| 220 | "jni/network_stack_utils_jni.cpp" |
| 221 | ], |
Lorenzo Colitti | 88ddd88 | 2019-05-01 11:54:33 +0900 | [diff] [blame] | 222 | sdk_version: "current", |
paulhu | e455e2a | 2019-03-29 17:22:20 +0800 | [diff] [blame] | 223 | shared_libs: [ |
| 224 | "liblog", |
Lorenzo Colitti | 88ddd88 | 2019-05-01 11:54:33 +0900 | [diff] [blame] | 225 | "libnativehelper_compat_libc++", |
paulhu | e455e2a | 2019-03-29 17:22:20 +0800 | [diff] [blame] | 226 | ], |
Lorenzo Colitti | 88ddd88 | 2019-05-01 11:54:33 +0900 | [diff] [blame] | 227 | |
| 228 | // We cannot use plain "libc++" here to link libc++ dynamically because it results in: |
| 229 | // java.lang.UnsatisfiedLinkError: dlopen failed: library "libc++_shared.so" not found |
| 230 | // even if "libc++" is added into jni_libs below. Adding "libc++_shared" into jni_libs doesn't |
| 231 | // build because soong complains of: |
| 232 | // module NetworkStack missing dependencies: libc++_shared |
| 233 | // |
| 234 | // So, link libc++ statically. This means that we also need to ensure that all the C++ libraries |
| 235 | // we depend on do not dynamically link libc++. This is currently the case, because liblog is |
| 236 | // C-only and libnativehelper_compat_libc also uses stl: "c++_static". |
| 237 | // |
| 238 | // TODO: find a better solution for this in R. |
| 239 | stl: "c++_static", |
paulhu | e455e2a | 2019-03-29 17:22:20 +0800 | [diff] [blame] | 240 | cflags: [ |
| 241 | "-Wall", |
| 242 | "-Werror", |
| 243 | "-Wno-unused-parameter", |
| 244 | ], |
| 245 | } |
| 246 | |
Chiachang Wang | 8024227 | 2019-04-11 21:24:28 +0800 | [diff] [blame] | 247 | genrule { |
Muhammad Qureshi | aa428cc | 2020-01-29 11:15:16 -0800 | [diff] [blame] | 248 | name: "statslog-networkstack-java-gen-q", |
| 249 | tools: ["stats-log-api-gen"], |
| 250 | cmd: "$(location stats-log-api-gen) --java $(out) --module network_stack" + |
| 251 | " --javaPackage com.android.networkstack.metrics --javaClass NetworkStackStatsLog" + |
| 252 | " --compileQ", |
| 253 | out: ["com/android/networkstack/metrics/NetworkStackStatsLog.java"], |
| 254 | } |
| 255 | |
| 256 | genrule { |
Chiachang Wang | 8024227 | 2019-04-11 21:24:28 +0800 | [diff] [blame] | 257 | name: "statslog-networkstack-java-gen", |
| 258 | tools: ["stats-log-api-gen"], |
| 259 | cmd: "$(location stats-log-api-gen) --java $(out) --module network_stack" + |
Muhammad Qureshi | 8e0e9bc | 2019-12-31 11:26:33 -0800 | [diff] [blame] | 260 | " --javaPackage com.android.networkstack.metrics --javaClass NetworkStackStatsLog" + |
| 261 | " --supportQ", |
Chiachang Wang | 8024227 | 2019-04-11 21:24:28 +0800 | [diff] [blame] | 262 | out: ["com/android/networkstack/metrics/NetworkStackStatsLog.java"], |
| 263 | } |
Kun Niu | 8e89dd4 | 2019-07-16 18:33:45 -0700 | [diff] [blame] | 264 | |
Remi NGUYEN VAN | 16fe454 | 2020-01-16 13:48:38 +0900 | [diff] [blame] | 265 | version_code_networkstack_next = "300000000" |
| 266 | version_code_networkstack_test = "999999999" |
| 267 | |
Kun Niu | 8e89dd4 | 2019-07-16 18:33:45 -0700 | [diff] [blame] | 268 | genrule { |
| 269 | name: "NetworkStackTestAndroidManifest", |
| 270 | srcs: ["AndroidManifest.xml"], |
| 271 | out: ["TestAndroidManifest.xml"], |
Remi NGUYEN VAN | 16fe454 | 2020-01-16 13:48:38 +0900 | [diff] [blame] | 272 | cmd: "sed -E 's/versionCode=\"[0-9]+\"/versionCode=\"" |
| 273 | + version_code_networkstack_test |
| 274 | + "\"/' $(in) > $(out)", |
| 275 | visibility: ["//visibility:private"], |
| 276 | } |
| 277 | |
Kun Niu | 8e89dd4 | 2019-07-16 18:33:45 -0700 | [diff] [blame] | 278 | android_app { |
| 279 | name: "TestNetworkStack", |
Remi NGUYEN VAN | 16fe454 | 2020-01-16 13:48:38 +0900 | [diff] [blame] | 280 | defaults: ["NetworkStackAppDefaults", "NetworkStackDevApiLevel"], |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 281 | static_libs: ["NetworkStackApiCurrentLib"], |
Kun Niu | 8e89dd4 | 2019-07-16 18:33:45 -0700 | [diff] [blame] | 282 | certificate: "networkstack", |
| 283 | manifest: ":NetworkStackTestAndroidManifest", |
Kun Niu | 8e89dd4 | 2019-07-16 18:33:45 -0700 | [diff] [blame] | 284 | // The permission configuration *must* be included to ensure security of the device |
| 285 | required: ["NetworkPermissionConfig"], |
| 286 | } |