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 | 02ea10d | 2020-04-07 15:45:02 +0000 | [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", |
Paul Hu | c031240 | 2020-04-10 09:59:48 +0000 | [diff] [blame] | 142 | "//frameworks/base/packages/Tethering/tests/integration", |
Lorenzo Colitti | b891b5e | 2020-02-05 16:48:09 +0900 | [diff] [blame] | 143 | ] |
| 144 | } |
| 145 | |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 146 | // Common defaults for compiling the actual APK, based on the NetworkStackApiXBase android libraries |
| 147 | java_defaults { |
| 148 | name: "NetworkStackAppDefaults", |
| 149 | privileged: true, |
| 150 | jni_libs: [ |
| 151 | "libnativehelper_compat_libc++", |
| 152 | "libnetworkstackutilsjni", |
| 153 | ], |
| 154 | // Resources already included in NetworkStackBase |
| 155 | resource_dirs: [], |
Lorenzo Colitti | b891b5e | 2020-02-05 16:48:09 +0900 | [diff] [blame] | 156 | jarjar_rules: ":NetworkStackJarJarRules", |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 157 | use_embedded_native_libs: true, |
| 158 | optimize: { |
| 159 | proguard_flags_files: ["proguard.flags"], |
| 160 | }, |
| 161 | } |
| 162 | |
| 163 | // Non-updatable network stack running in the system server process for devices not using the module |
| 164 | android_app { |
| 165 | name: "InProcessNetworkStack", |
Remi NGUYEN VAN | 16fe454 | 2020-01-16 13:48:38 +0900 | [diff] [blame] | 166 | defaults: [ "NetworkStackAppDefaults", "NetworkStackDevApiLevel"], |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 167 | static_libs: ["NetworkStackApiCurrentLib"], |
| 168 | certificate: "platform", |
| 169 | manifest: "AndroidManifest_InProcess.xml", |
| 170 | // InProcessNetworkStack is a replacement for NetworkStack |
Remi NGUYEN VAN | ec9d8a6 | 2019-11-11 03:52:43 +0000 | [diff] [blame] | 171 | overrides: ["NetworkStack", "NetworkStackNext"], |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 172 | // The permission configuration *must* be included to ensure security of the device |
| 173 | // The InProcessNetworkStack goes together with the PlatformCaptivePortalLogin, which replaces |
| 174 | // the default CaptivePortalLogin. |
| 175 | required: ["PlatformNetworkPermissionConfig", "PlatformCaptivePortalLogin"], |
| 176 | } |
| 177 | |
Remi NGUYEN VAN | 255d491 | 2020-02-05 13:42:45 +0900 | [diff] [blame] | 178 | // Pre-merge the AndroidManifest for NetworkStackNext, so that its manifest can be merged on top |
| 179 | android_library { |
| 180 | name: "NetworkStackNextManifestBase", |
| 181 | defaults: ["NetworkStackAppDefaults", "NetworkStackDevApiLevel"], |
| 182 | static_libs: ["NetworkStackApiCurrentLib"], |
| 183 | manifest: "AndroidManifest.xml" |
| 184 | } |
| 185 | |
Remi NGUYEN VAN | 16fe454 | 2020-01-16 13:48:38 +0900 | [diff] [blame] | 186 | // 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] | 187 | android_app { |
Remi NGUYEN VAN | ec9d8a6 | 2019-11-11 03:52:43 +0000 | [diff] [blame] | 188 | name: "NetworkStackNext", |
Remi NGUYEN VAN | 16fe454 | 2020-01-16 13:48:38 +0900 | [diff] [blame] | 189 | defaults: ["NetworkStackAppDefaults", "NetworkStackDevApiLevel"], |
Remi NGUYEN VAN | 255d491 | 2020-02-05 13:42:45 +0900 | [diff] [blame] | 190 | static_libs: ["NetworkStackNextManifestBase"], |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 191 | certificate: "networkstack", |
Remi NGUYEN VAN | 255d491 | 2020-02-05 13:42:45 +0900 | [diff] [blame] | 192 | manifest: "AndroidManifest_Next.xml", |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 193 | // The permission configuration *must* be included to ensure security of the device |
| 194 | required: ["NetworkPermissionConfig"], |
| 195 | } |
| 196 | |
| 197 | // Updatable network stack for finalized API |
| 198 | android_app { |
Remi NGUYEN VAN | ec9d8a6 | 2019-11-11 03:52:43 +0000 | [diff] [blame] | 199 | name: "NetworkStack", |
Remi NGUYEN VAN | 16fe454 | 2020-01-16 13:48:38 +0900 | [diff] [blame] | 200 | defaults: ["NetworkStackAppDefaults", "NetworkStackReleaseApiLevel"], |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 201 | static_libs: ["NetworkStackApiStableLib"], |
| 202 | certificate: "networkstack", |
| 203 | manifest: "AndroidManifest.xml", |
| 204 | // The permission configuration *must* be included to ensure security of the device |
| 205 | required: ["NetworkPermissionConfig"], |
Artur Satayev | 66780a8 | 2020-04-09 11:35:52 +0100 | [diff] [blame^] | 206 | updatable: true, |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 207 | } |
| 208 | |
| 209 | // Android library to derive test APKs for integration tests |
| 210 | android_library { |
| 211 | name: "TestNetworkStackLib", |
Remi NGUYEN VAN | 16fe454 | 2020-01-16 13:48:38 +0900 | [diff] [blame] | 212 | defaults: ["NetworkStackAppDefaults", "NetworkStackReleaseApiLevel"], |
| 213 | static_libs: ["NetworkStackApiStableLib"], |
Remi NGUYEN VAN | ae18aed | 2019-10-30 18:20:36 +0900 | [diff] [blame] | 214 | manifest: "AndroidManifestBase.xml", |
Lorenzo Colitti | b891b5e | 2020-02-05 16:48:09 +0900 | [diff] [blame] | 215 | visibility: ["//frameworks/base/tests/net/integration"], |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 216 | } |
| 217 | |
paulhu | e455e2a | 2019-03-29 17:22:20 +0800 | [diff] [blame] | 218 | cc_library_shared { |
| 219 | name: "libnetworkstackutilsjni", |
| 220 | srcs: [ |
| 221 | "jni/network_stack_utils_jni.cpp" |
| 222 | ], |
Lorenzo Colitti | 88ddd88 | 2019-05-01 11:54:33 +0900 | [diff] [blame] | 223 | sdk_version: "current", |
paulhu | e455e2a | 2019-03-29 17:22:20 +0800 | [diff] [blame] | 224 | shared_libs: [ |
| 225 | "liblog", |
Lorenzo Colitti | 88ddd88 | 2019-05-01 11:54:33 +0900 | [diff] [blame] | 226 | "libnativehelper_compat_libc++", |
paulhu | e455e2a | 2019-03-29 17:22:20 +0800 | [diff] [blame] | 227 | ], |
Lorenzo Colitti | 88ddd88 | 2019-05-01 11:54:33 +0900 | [diff] [blame] | 228 | |
| 229 | // We cannot use plain "libc++" here to link libc++ dynamically because it results in: |
| 230 | // java.lang.UnsatisfiedLinkError: dlopen failed: library "libc++_shared.so" not found |
| 231 | // even if "libc++" is added into jni_libs below. Adding "libc++_shared" into jni_libs doesn't |
| 232 | // build because soong complains of: |
| 233 | // module NetworkStack missing dependencies: libc++_shared |
| 234 | // |
| 235 | // So, link libc++ statically. This means that we also need to ensure that all the C++ libraries |
| 236 | // we depend on do not dynamically link libc++. This is currently the case, because liblog is |
| 237 | // C-only and libnativehelper_compat_libc also uses stl: "c++_static". |
| 238 | // |
| 239 | // TODO: find a better solution for this in R. |
| 240 | stl: "c++_static", |
paulhu | e455e2a | 2019-03-29 17:22:20 +0800 | [diff] [blame] | 241 | cflags: [ |
| 242 | "-Wall", |
| 243 | "-Werror", |
| 244 | "-Wno-unused-parameter", |
| 245 | ], |
| 246 | } |
| 247 | |
Chiachang Wang | 8024227 | 2019-04-11 21:24:28 +0800 | [diff] [blame] | 248 | genrule { |
Muhammad Qureshi | aa428cc | 2020-01-29 11:15:16 -0800 | [diff] [blame] | 249 | name: "statslog-networkstack-java-gen-q", |
| 250 | tools: ["stats-log-api-gen"], |
| 251 | cmd: "$(location stats-log-api-gen) --java $(out) --module network_stack" + |
| 252 | " --javaPackage com.android.networkstack.metrics --javaClass NetworkStackStatsLog" + |
| 253 | " --compileQ", |
| 254 | out: ["com/android/networkstack/metrics/NetworkStackStatsLog.java"], |
| 255 | } |
| 256 | |
| 257 | genrule { |
Chiachang Wang | 8024227 | 2019-04-11 21:24:28 +0800 | [diff] [blame] | 258 | name: "statslog-networkstack-java-gen", |
| 259 | tools: ["stats-log-api-gen"], |
| 260 | cmd: "$(location stats-log-api-gen) --java $(out) --module network_stack" + |
Muhammad Qureshi | 8e0e9bc | 2019-12-31 11:26:33 -0800 | [diff] [blame] | 261 | " --javaPackage com.android.networkstack.metrics --javaClass NetworkStackStatsLog" + |
| 262 | " --supportQ", |
Chiachang Wang | 8024227 | 2019-04-11 21:24:28 +0800 | [diff] [blame] | 263 | out: ["com/android/networkstack/metrics/NetworkStackStatsLog.java"], |
| 264 | } |
Kun Niu | 8e89dd4 | 2019-07-16 18:33:45 -0700 | [diff] [blame] | 265 | |
Remi NGUYEN VAN | 16fe454 | 2020-01-16 13:48:38 +0900 | [diff] [blame] | 266 | version_code_networkstack_next = "300000000" |
| 267 | version_code_networkstack_test = "999999999" |
| 268 | |
Kun Niu | 8e89dd4 | 2019-07-16 18:33:45 -0700 | [diff] [blame] | 269 | genrule { |
| 270 | name: "NetworkStackTestAndroidManifest", |
| 271 | srcs: ["AndroidManifest.xml"], |
| 272 | out: ["TestAndroidManifest.xml"], |
Remi NGUYEN VAN | 16fe454 | 2020-01-16 13:48:38 +0900 | [diff] [blame] | 273 | cmd: "sed -E 's/versionCode=\"[0-9]+\"/versionCode=\"" |
| 274 | + version_code_networkstack_test |
| 275 | + "\"/' $(in) > $(out)", |
| 276 | visibility: ["//visibility:private"], |
| 277 | } |
| 278 | |
Kun Niu | 8e89dd4 | 2019-07-16 18:33:45 -0700 | [diff] [blame] | 279 | android_app { |
| 280 | name: "TestNetworkStack", |
Remi NGUYEN VAN | 16fe454 | 2020-01-16 13:48:38 +0900 | [diff] [blame] | 281 | defaults: ["NetworkStackAppDefaults", "NetworkStackDevApiLevel"], |
Remi NGUYEN VAN | 9964576 | 2019-07-11 14:33:15 +0900 | [diff] [blame] | 282 | static_libs: ["NetworkStackApiCurrentLib"], |
Kun Niu | 8e89dd4 | 2019-07-16 18:33:45 -0700 | [diff] [blame] | 283 | certificate: "networkstack", |
| 284 | manifest: ":NetworkStackTestAndroidManifest", |
Kun Niu | 8e89dd4 | 2019-07-16 18:33:45 -0700 | [diff] [blame] | 285 | // The permission configuration *must* be included to ensure security of the device |
| 286 | required: ["NetworkPermissionConfig"], |
| 287 | } |