| markchien | 932da86 | 2019-08-27 10:19:38 +0800 | [diff] [blame] | 1 | // | 
|  | 2 | // Copyright (C) 2019 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 |  | 
| Bob Badour | 97e6be2 | 2021-02-12 14:45:04 -0800 | [diff] [blame] | 17 | package { | 
|  | 18 | default_applicable_licenses: ["Android-Apache-2.0"], | 
|  | 19 | } | 
|  | 20 |  | 
| markchien | 932da86 | 2019-08-27 10:19:38 +0800 | [diff] [blame] | 21 | java_defaults { | 
| markchien | 5a8c806 | 2021-10-27 13:22:27 +0800 | [diff] [blame] | 22 | name: "TetheringApiLevel", | 
| Anton Hansson | bbe4af1 | 2020-03-18 14:15:42 +0000 | [diff] [blame] | 23 | sdk_version: "module_current", | 
| Nikita Ioffe | 583e35a | 2020-10-31 22:41:41 +0000 | [diff] [blame] | 24 | min_sdk_version: "30", | 
| markchien | 5a8c806 | 2021-10-27 13:22:27 +0800 | [diff] [blame] | 25 | } | 
|  | 26 |  | 
|  | 27 | java_defaults { | 
| Harshit Mahajan | e210c27 | 2022-08-23 19:27:39 +0000 | [diff] [blame] | 28 | name: "TetheringReleaseTargetSdk", | 
|  | 29 | target_sdk_version: "33", | 
|  | 30 | } | 
|  | 31 |  | 
|  | 32 | java_defaults { | 
| Remi NGUYEN VAN | 37dc1e2 | 2022-08-04 11:52:54 +0900 | [diff] [blame] | 33 | name: "TetheringExternalLibs", | 
|  | 34 | // Libraries not including Tethering's own framework-tethering (different flavors of that one | 
|  | 35 | // are needed depending on the build rule) | 
|  | 36 | libs: [ | 
|  | 37 | "framework-connectivity.stubs.module_lib", | 
|  | 38 | "framework-connectivity-t.stubs.module_lib", | 
|  | 39 | "framework-statsd.stubs.module_lib", | 
|  | 40 | "framework-wifi", | 
|  | 41 | "framework-bluetooth", | 
|  | 42 | "unsupportedappusage", | 
|  | 43 | ], | 
|  | 44 | defaults_visibility: ["//visibility:private"], | 
|  | 45 | } | 
|  | 46 |  | 
|  | 47 | java_defaults { | 
| markchien | 5a8c806 | 2021-10-27 13:22:27 +0800 | [diff] [blame] | 48 | name: "TetheringAndroidLibraryDefaults", | 
| markchien | 932da86 | 2019-08-27 10:19:38 +0800 | [diff] [blame] | 49 | srcs: [ | 
| Hungming Chen | dd55b91 | 2020-12-26 17:13:22 +0800 | [diff] [blame] | 50 | "apishim/**/*.java", | 
| markchien | 932da86 | 2019-08-27 10:19:38 +0800 | [diff] [blame] | 51 | "src/**/*.java", | 
| Aaron Huang | b401e58 | 2021-01-22 18:35:00 +0800 | [diff] [blame] | 52 | ":framework-connectivity-shared-srcs", | 
| markchien | 43e97e0 | 2019-09-03 15:58:06 +0800 | [diff] [blame] | 53 | ":services-tethering-shared-srcs", | 
| Wayne Ma | 7ecded8 | 2022-03-10 16:19:24 +0800 | [diff] [blame] | 54 | ":statslog-tethering-java-gen", | 
| markchien | 932da86 | 2019-08-27 10:19:38 +0800 | [diff] [blame] | 55 | ], | 
|  | 56 | static_libs: [ | 
|  | 57 | "androidx.annotation_annotation", | 
| Hungming Chen | 01f2550 | 2022-06-28 22:47:00 +0800 | [diff] [blame] | 58 | "connectivity-net-module-utils-bpf", | 
| Hungming Chen | dd55b91 | 2020-12-26 17:13:22 +0800 | [diff] [blame] | 59 | "modules-utils-build", | 
| William Escande | ea9e22e | 2021-08-19 12:26:52 +0200 | [diff] [blame] | 60 | "modules-utils-statemachine", | 
| Jeongik Cha | d05f990 | 2021-01-26 22:35:02 +0900 | [diff] [blame] | 61 | "networkstack-client", | 
| markchien | 547e168 | 2020-02-05 12:42:25 +0800 | [diff] [blame] | 62 | "android.hardware.tetheroffload.config-V1.0-java", | 
| markchien | 6aa3889 | 2019-09-25 14:33:39 +0800 | [diff] [blame] | 63 | "android.hardware.tetheroffload.control-V1.0-java", | 
| junyulai | 177dc86 | 2021-03-10 15:26:50 +0800 | [diff] [blame] | 64 | "android.hardware.tetheroffload.control-V1.1-java", | 
| markchien | 75fc6ab | 2020-01-14 17:28:47 +0800 | [diff] [blame] | 65 | "net-utils-framework-common", | 
| Chalard Jean | bdcca92 | 2020-06-26 00:19:33 +0900 | [diff] [blame] | 66 | "net-utils-device-common", | 
| markchien | 782a568 | 2021-11-10 01:11:33 +0800 | [diff] [blame] | 67 | "net-utils-device-common-bpf", | 
| Xiao Ma | c81c066 | 2022-06-17 14:58:03 +0900 | [diff] [blame] | 68 | "net-utils-device-common-ip", | 
| Xiao Ma | 09c0727 | 2021-07-01 14:00:34 +0000 | [diff] [blame] | 69 | "net-utils-device-common-netlink", | 
| lucaslin | ee661df | 2020-12-28 16:44:49 +0800 | [diff] [blame] | 70 | "netd-client", | 
| Wayne Ma | 71d6639 | 2022-03-03 10:15:09 +0800 | [diff] [blame] | 71 | "tetheringstatsprotos", | 
| markchien | 932da86 | 2019-08-27 10:19:38 +0800 | [diff] [blame] | 72 | ], | 
| Remi NGUYEN VAN | 37dc1e2 | 2022-08-04 11:52:54 +0900 | [diff] [blame] | 73 | defaults: ["TetheringExternalLibs"], | 
| markchien | 9d35382 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 74 | libs: [ | 
| Paul Duffin | 2dae272 | 2020-05-13 12:28:49 +0100 | [diff] [blame] | 75 | "framework-tethering.impl", | 
| markchien | 9d35382 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 76 | ], | 
| markchien | 84a9282 | 2020-01-16 11:21:53 +0800 | [diff] [blame] | 77 | plugins: ["java_api_finder"], | 
| markchien | 932da86 | 2019-08-27 10:19:38 +0800 | [diff] [blame] | 78 | manifest: "AndroidManifestBase.xml", | 
| Chiachang Wang | 3bc5276 | 2021-11-25 14:17:57 +0800 | [diff] [blame] | 79 | lint: { strict_updatability_linting: true }, | 
| markchien | 932da86 | 2019-08-27 10:19:38 +0800 | [diff] [blame] | 80 | } | 
|  | 81 |  | 
| markchien | 5a8c806 | 2021-10-27 13:22:27 +0800 | [diff] [blame] | 82 | // build tethering static library, used to compile both variants of the tethering. | 
| markchien | 932da86 | 2019-08-27 10:19:38 +0800 | [diff] [blame] | 83 | android_library { | 
|  | 84 | name: "TetheringApiCurrentLib", | 
| markchien | 5a8c806 | 2021-10-27 13:22:27 +0800 | [diff] [blame] | 85 | defaults: [ | 
| Remi NGUYEN VAN | f826bce | 2022-01-26 17:43:53 +0900 | [diff] [blame] | 86 | "ConnectivityNextEnableDefaults", | 
| markchien | 5a8c806 | 2021-10-27 13:22:27 +0800 | [diff] [blame] | 87 | "TetheringAndroidLibraryDefaults", | 
| Harshit Mahajan | e210c27 | 2022-08-23 19:27:39 +0000 | [diff] [blame] | 88 | "TetheringApiLevel", | 
|  | 89 | "TetheringReleaseTargetSdk" | 
| markchien | 5a8c806 | 2021-10-27 13:22:27 +0800 | [diff] [blame] | 90 | ], | 
|  | 91 | static_libs: [ | 
|  | 92 | "NetworkStackApiCurrentShims", | 
|  | 93 | ], | 
|  | 94 | apex_available: ["com.android.tethering"], | 
| Chiachang Wang | 3bc5276 | 2021-11-25 14:17:57 +0800 | [diff] [blame] | 95 | lint: { strict_updatability_linting: true }, | 
| markchien | 5a8c806 | 2021-10-27 13:22:27 +0800 | [diff] [blame] | 96 | } | 
|  | 97 |  | 
|  | 98 | android_library { | 
|  | 99 | name: "TetheringApiStableLib", | 
|  | 100 | defaults: [ | 
|  | 101 | "TetheringAndroidLibraryDefaults", | 
| Harshit Mahajan | e210c27 | 2022-08-23 19:27:39 +0000 | [diff] [blame] | 102 | "TetheringApiLevel", | 
|  | 103 | "TetheringReleaseTargetSdk" | 
| markchien | 5a8c806 | 2021-10-27 13:22:27 +0800 | [diff] [blame] | 104 | ], | 
|  | 105 | static_libs: [ | 
|  | 106 | "NetworkStackApiStableShims", | 
|  | 107 | ], | 
|  | 108 | apex_available: ["com.android.tethering"], | 
| Chiachang Wang | 3bc5276 | 2021-11-25 14:17:57 +0800 | [diff] [blame] | 109 | lint: { strict_updatability_linting: true }, | 
| markchien | 932da86 | 2019-08-27 10:19:38 +0800 | [diff] [blame] | 110 | } | 
|  | 111 |  | 
| markchien | 810aa68 | 2019-10-23 16:27:52 +0800 | [diff] [blame] | 112 | // Due to b/143733063, APK can't access a jni lib that is in APEX (but not in the APK). | 
|  | 113 | cc_library { | 
| markchien | f967b11 | 2021-11-09 16:56:23 +0800 | [diff] [blame] | 114 | name: "libcom_android_networkstack_tethering_util_jni", | 
| markchien | 5a8c806 | 2021-10-27 13:22:27 +0800 | [diff] [blame] | 115 | sdk_version: "30", | 
| Jooyung Han | 8182d8b | 2020-04-29 02:43:30 +0900 | [diff] [blame] | 116 | apex_available: [ | 
|  | 117 | "//apex_available:platform", // Used by InProcessTethering | 
|  | 118 | "com.android.tethering", | 
|  | 119 | ], | 
| Nikita Ioffe | 583e35a | 2020-10-31 22:41:41 +0000 | [diff] [blame] | 120 | min_sdk_version: "30", | 
| Lorenzo Colitti | 734b14e | 2021-02-05 23:56:09 +0900 | [diff] [blame] | 121 | header_libs: [ | 
| Ken Chen | bb57fa9 | 2021-10-22 00:49:13 +0800 | [diff] [blame] | 122 | "bpf_connectivity_headers", | 
| Lorenzo Colitti | 734b14e | 2021-02-05 23:56:09 +0900 | [diff] [blame] | 123 | ], | 
| markchien | 6aa3889 | 2019-09-25 14:33:39 +0800 | [diff] [blame] | 124 | srcs: [ | 
| markchien | 7052688 | 2020-11-12 00:17:15 +0800 | [diff] [blame] | 125 | "jni/*.cpp", | 
| markchien | 6aa3889 | 2019-09-25 14:33:39 +0800 | [diff] [blame] | 126 | ], | 
|  | 127 | shared_libs: [ | 
| markchien | 6aa3889 | 2019-09-25 14:33:39 +0800 | [diff] [blame] | 128 | "liblog", | 
| markchien | 547e168 | 2020-02-05 12:42:25 +0800 | [diff] [blame] | 129 | "libnativehelper_compat_libc++", | 
| markchien | 6aa3889 | 2019-09-25 14:33:39 +0800 | [diff] [blame] | 130 | ], | 
| Orion Hodson | e5bd0db | 2020-12-08 09:57:42 +0000 | [diff] [blame] | 131 | static_libs: [ | 
| markchien | 782a568 | 2021-11-10 01:11:33 +0800 | [diff] [blame] | 132 | "libnet_utils_device_common_bpfjni", | 
| Orion Hodson | e5bd0db | 2020-12-08 09:57:42 +0000 | [diff] [blame] | 133 | "libnetjniutils", | 
|  | 134 | ], | 
| markchien | 6aa3889 | 2019-09-25 14:33:39 +0800 | [diff] [blame] | 135 |  | 
| markchien | 547e168 | 2020-02-05 12:42:25 +0800 | [diff] [blame] | 136 | // We cannot use plain "libc++" here to link libc++ dynamically because it results in: | 
|  | 137 | //   java.lang.UnsatisfiedLinkError: dlopen failed: library "libc++_shared.so" not found | 
|  | 138 | // even if "libc++" is added into jni_libs below. Adding "libc++_shared" into jni_libs doesn't | 
|  | 139 | // build because soong complains of: | 
|  | 140 | //   module Tethering missing dependencies: libc++_shared | 
|  | 141 | // | 
|  | 142 | // So, link libc++ statically. This means that we also need to ensure that all the C++ libraries | 
|  | 143 | // we depend on do not dynamically link libc++. This is currently the case, because liblog is | 
|  | 144 | // C-only and libnativehelper_compat_libc also uses stl: "c++_static". | 
|  | 145 | stl: "c++_static", | 
|  | 146 |  | 
| markchien | 6aa3889 | 2019-09-25 14:33:39 +0800 | [diff] [blame] | 147 | cflags: [ | 
|  | 148 | "-Wall", | 
|  | 149 | "-Werror", | 
|  | 150 | "-Wno-unused-parameter", | 
|  | 151 | "-Wthread-safety", | 
|  | 152 | ], | 
| markchien | 810aa68 | 2019-10-23 16:27:52 +0800 | [diff] [blame] | 153 |  | 
| Yi Kong | 20a996e | 2022-06-22 03:41:56 +0800 | [diff] [blame] | 154 | ldflags: ["-Wl,--exclude-libs=ALL,--error-limit=0"], | 
| markchien | 6aa3889 | 2019-09-25 14:33:39 +0800 | [diff] [blame] | 155 | } | 
|  | 156 |  | 
| markchien | 932da86 | 2019-08-27 10:19:38 +0800 | [diff] [blame] | 157 | // Common defaults for compiling the actual APK. | 
|  | 158 | java_defaults { | 
|  | 159 | name: "TetheringAppDefaults", | 
| markchien | 932da86 | 2019-08-27 10:19:38 +0800 | [diff] [blame] | 160 | privileged: true, | 
| markchien | 6aa3889 | 2019-09-25 14:33:39 +0800 | [diff] [blame] | 161 | jni_libs: [ | 
| markchien | f967b11 | 2021-11-09 16:56:23 +0800 | [diff] [blame] | 162 | "libcom_android_networkstack_tethering_util_jni", | 
| markchien | 6aa3889 | 2019-09-25 14:33:39 +0800 | [diff] [blame] | 163 | ], | 
| markchien | 932da86 | 2019-08-27 10:19:38 +0800 | [diff] [blame] | 164 | resource_dirs: [ | 
|  | 165 | "res", | 
|  | 166 | ], | 
| Remi NGUYEN VAN | 37dc1e2 | 2022-08-04 11:52:54 +0900 | [diff] [blame] | 167 | // Libs are not actually needed to build here since build rules using these defaults are just | 
|  | 168 | // packaging the TetheringApiXLibs in APKs, but they are necessary so that R8 has the right | 
|  | 169 | // references to optimize the code. Without these, there will be missing class warnings and code | 
|  | 170 | // may be wrongly optimized. | 
|  | 171 | // R8 runs after jarjar, so the framework-X libraries need to be the post-jarjar artifacts | 
|  | 172 | // (framework-tethering.impl), if they are not just stubs, so that the name of jarjared | 
|  | 173 | // classes match. | 
|  | 174 | // TODO(b/229727645): ensure R8 fails the build fully if libraries are missing | 
|  | 175 | defaults: ["TetheringExternalLibs"], | 
| markchien | 9d35382 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 176 | libs: [ | 
| Remi NGUYEN VAN | 37dc1e2 | 2022-08-04 11:52:54 +0900 | [diff] [blame] | 177 | "framework-tethering.impl", | 
| markchien | 9d35382 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 178 | ], | 
|  | 179 | jarjar_rules: "jarjar-rules.txt", | 
| markchien | 932da86 | 2019-08-27 10:19:38 +0800 | [diff] [blame] | 180 | optimize: { | 
|  | 181 | proguard_flags_files: ["proguard.flags"], | 
|  | 182 | }, | 
| Chiachang Wang | 3bc5276 | 2021-11-25 14:17:57 +0800 | [diff] [blame] | 183 | lint: { strict_updatability_linting: true }, | 
| markchien | 932da86 | 2019-08-27 10:19:38 +0800 | [diff] [blame] | 184 | } | 
|  | 185 |  | 
|  | 186 | // Non-updatable tethering running in the system server process for devices not using the module | 
| markchien | ee6ad37 | 2019-09-30 14:40:57 +0800 | [diff] [blame] | 187 | android_app { | 
|  | 188 | name: "InProcessTethering", | 
| Harshit Mahajan | e210c27 | 2022-08-23 19:27:39 +0000 | [diff] [blame] | 189 | defaults: [ | 
|  | 190 | "TetheringAppDefaults", | 
|  | 191 | "TetheringApiLevel", | 
|  | 192 | "ConnectivityNextEnableDefaults", | 
|  | 193 | "TetheringReleaseTargetSdk" | 
|  | 194 | ], | 
| markchien | ee6ad37 | 2019-09-30 14:40:57 +0800 | [diff] [blame] | 195 | static_libs: ["TetheringApiCurrentLib"], | 
|  | 196 | certificate: "platform", | 
|  | 197 | manifest: "AndroidManifest_InProcess.xml", | 
|  | 198 | // InProcessTethering is a replacement for Tethering | 
|  | 199 | overrides: ["Tethering"], | 
| markchien | dbaff66 | 2020-05-05 17:42:44 +0800 | [diff] [blame] | 200 | apex_available: ["com.android.tethering"], | 
| Chiachang Wang | 3bc5276 | 2021-11-25 14:17:57 +0800 | [diff] [blame] | 201 | lint: { strict_updatability_linting: true }, | 
| markchien | ee6ad37 | 2019-09-30 14:40:57 +0800 | [diff] [blame] | 202 | } | 
| markchien | 932da86 | 2019-08-27 10:19:38 +0800 | [diff] [blame] | 203 |  | 
| markchien | 5a8c806 | 2021-10-27 13:22:27 +0800 | [diff] [blame] | 204 | // Updatable tethering packaged for finalized API | 
| markchien | 932da86 | 2019-08-27 10:19:38 +0800 | [diff] [blame] | 205 | android_app { | 
|  | 206 | name: "Tethering", | 
| markchien | 5a8c806 | 2021-10-27 13:22:27 +0800 | [diff] [blame] | 207 | defaults: ["TetheringAppDefaults", "TetheringApiLevel"], | 
|  | 208 | static_libs: ["TetheringApiStableLib"], | 
|  | 209 | certificate: "networkstack", | 
|  | 210 | manifest: "AndroidManifest.xml", | 
|  | 211 | use_embedded_native_libs: true, | 
| Motomu Utsumi | ae27901 | 2022-04-20 08:30:24 +0000 | [diff] [blame] | 212 | // The network stack *must* be included to ensure security of the device | 
| markchien | 5a8c806 | 2021-10-27 13:22:27 +0800 | [diff] [blame] | 213 | required: [ | 
| Motomu Utsumi | ae27901 | 2022-04-20 08:30:24 +0000 | [diff] [blame] | 214 | "NetworkStack", | 
| Andrei Onea | 52eac02 | 2021-12-03 15:11:27 +0000 | [diff] [blame] | 215 | "privapp_allowlist_com.android.tethering", | 
| markchien | 5a8c806 | 2021-10-27 13:22:27 +0800 | [diff] [blame] | 216 | ], | 
|  | 217 | apex_available: ["com.android.tethering"], | 
| Chiachang Wang | 3bc5276 | 2021-11-25 14:17:57 +0800 | [diff] [blame] | 218 | lint: { strict_updatability_linting: true }, | 
| markchien | 5a8c806 | 2021-10-27 13:22:27 +0800 | [diff] [blame] | 219 | } | 
|  | 220 |  | 
|  | 221 | android_app { | 
|  | 222 | name: "TetheringNext", | 
| markchien | 598a75b | 2021-11-22 10:36:32 +0800 | [diff] [blame] | 223 | defaults: [ | 
|  | 224 | "TetheringAppDefaults", | 
|  | 225 | "TetheringApiLevel", | 
|  | 226 | "ConnectivityNextEnableDefaults", | 
|  | 227 | ], | 
| markchien | 932da86 | 2019-08-27 10:19:38 +0800 | [diff] [blame] | 228 | static_libs: ["TetheringApiCurrentLib"], | 
|  | 229 | certificate: "networkstack", | 
|  | 230 | manifest: "AndroidManifest.xml", | 
|  | 231 | use_embedded_native_libs: true, | 
| Motomu Utsumi | ae27901 | 2022-04-20 08:30:24 +0000 | [diff] [blame] | 232 | // The network stack *must* be included to ensure security of the device | 
| Aaron Huang | 3f69f1c | 2021-04-27 20:24:24 +0800 | [diff] [blame] | 233 | required: [ | 
| Motomu Utsumi | ae27901 | 2022-04-20 08:30:24 +0000 | [diff] [blame] | 234 | "NetworkStackNext", | 
| Andrei Onea | 52eac02 | 2021-12-03 15:11:27 +0000 | [diff] [blame] | 235 | "privapp_allowlist_com.android.tethering", | 
| Aaron Huang | 3f69f1c | 2021-04-27 20:24:24 +0800 | [diff] [blame] | 236 | ], | 
| Jiyong Park | 1eb8933 | 2020-01-06 13:30:59 +0900 | [diff] [blame] | 237 | apex_available: ["com.android.tethering"], | 
| Chiachang Wang | 3bc5276 | 2021-11-25 14:17:57 +0800 | [diff] [blame] | 238 | lint: { strict_updatability_linting: true }, | 
| markchien | 932da86 | 2019-08-27 10:19:38 +0800 | [diff] [blame] | 239 | } | 
| Hai Zhang | 6d71f10 | 2021-02-14 06:38:22 +0000 | [diff] [blame] | 240 |  | 
|  | 241 | sdk { | 
|  | 242 | name: "tethering-module-sdk", | 
| Paul Duffin | 1514c03 | 2022-07-13 11:18:50 +0000 | [diff] [blame] | 243 | apexes: [ | 
|  | 244 | // Adds exportable dependencies of the APEX to the sdk, | 
|  | 245 | // e.g. *classpath_fragments. | 
|  | 246 | "com.android.tethering", | 
|  | 247 | ], | 
| Hai Zhang | 6d71f10 | 2021-02-14 06:38:22 +0000 | [diff] [blame] | 248 | } | 
| Wayne Ma | 71d6639 | 2022-03-03 10:15:09 +0800 | [diff] [blame] | 249 |  | 
|  | 250 | java_library_static { | 
|  | 251 | name: "tetheringstatsprotos", | 
|  | 252 | proto: {type: "lite"}, | 
|  | 253 | srcs: [ | 
|  | 254 | "src/com/android/networkstack/tethering/metrics/stats.proto", | 
|  | 255 | ], | 
|  | 256 | static_libs: ["tetheringprotos"], | 
|  | 257 | apex_available: ["com.android.tethering"], | 
|  | 258 | min_sdk_version: "30", | 
|  | 259 | } | 
| Wayne Ma | 7ecded8 | 2022-03-10 16:19:24 +0800 | [diff] [blame] | 260 |  | 
|  | 261 | genrule { | 
|  | 262 | name: "statslog-tethering-java-gen", | 
|  | 263 | tools: ["stats-log-api-gen"], | 
|  | 264 | cmd: "$(location stats-log-api-gen) --java $(out) --module network_tethering" + | 
|  | 265 | " --javaPackage com.android.networkstack.tethering.metrics --javaClass TetheringStatsLog", | 
|  | 266 | out: ["com/android/networkstack/tethering/metrics/TetheringStatsLog.java"], | 
| Yi Kong | 20a996e | 2022-06-22 03:41:56 +0800 | [diff] [blame] | 267 | } |