blob: 998ae4752e0d9c89edd3b56f88905ec7ff8d1775 [file] [log] [blame]
Sam Delmerico24c56032022-03-28 19:53:03 +00001// Copyright 2022 Google Inc. All rights reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package allowlists
16
17// Configuration to decide if modules in a directory should default to true/false for bp2build_available
18type Bp2BuildConfig map[string]BazelConversionConfigEntry
19type BazelConversionConfigEntry int
20
21const (
22 // iota + 1 ensures that the int value is not 0 when used in the Bp2buildAllowlist map,
23 // which can also mean that the key doesn't exist in a lookup.
24
25 // all modules in this package and subpackages default to bp2build_available: true.
26 // allows modules to opt-out.
27 Bp2BuildDefaultTrueRecursively BazelConversionConfigEntry = iota + 1
28
29 // all modules in this package (not recursively) default to bp2build_available: true.
30 // allows modules to opt-out.
31 Bp2BuildDefaultTrue
32
33 // all modules in this package (not recursively) default to bp2build_available: false.
34 // allows modules to opt-in.
35 Bp2BuildDefaultFalse
MarkDacek756b2962022-10-13 17:50:17 +000036
37 // all modules in this package and subpackages default to bp2build_available: false.
38 // allows modules to opt-in.
39 Bp2BuildDefaultFalseRecursively
Jeongik Chae114e602023-03-19 00:12:39 +090040
Jeongik Chab745e2e2023-04-11 14:28:43 +090041 // Modules with build time of more than half a minute should have high priority.
42 DEFAULT_PRIORITIZED_WEIGHT = 1000
43 // Modules with build time of more than a few minute should have higher priority.
44 HIGH_PRIORITIZED_WEIGHT = 10 * DEFAULT_PRIORITIZED_WEIGHT
45 // Modules with inputs greater than the threshold should have high priority.
46 // Adjust this threshold if there are lots of wrong predictions.
47 INPUT_SIZE_THRESHOLD = 50
Sam Delmerico24c56032022-03-28 19:53:03 +000048)
49
50var (
51 Bp2buildDefaultConfig = Bp2BuildConfig{
Sasha Smundak8bea2672022-08-04 13:31:14 -070052 "art": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040053 "art/libartbase": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +000054 "art/libartpalette": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040055 "art/libdexfile": Bp2BuildDefaultTrueRecursively,
56 "art/libnativebridge": Bp2BuildDefaultTrueRecursively,
57 "art/runtime": Bp2BuildDefaultTrueRecursively,
58 "art/tools": Bp2BuildDefaultTrue,
59 "bionic": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux77488af2022-11-07 16:53:19 +000060 "bootable/recovery/applypatch": Bp2BuildDefaultTrue,
Jingwen Chena0519422022-09-28 08:01:57 +000061 "bootable/recovery/minadbd": Bp2BuildDefaultTrue,
62 "bootable/recovery/minui": Bp2BuildDefaultTrue,
63 "bootable/recovery/recovery_utils": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040064 "bootable/recovery/tools/recovery_l10n": Bp2BuildDefaultTrue,
65
Cole Faust324a92e2022-08-23 15:29:05 -070066 "build/bazel": Bp2BuildDefaultTrueRecursively,
67 "build/make/target/product/security": Bp2BuildDefaultTrue,
Jingwen Chene12c0832023-08-25 09:00:16 +000068 "build/make/tools": Bp2BuildDefaultTrue,
Wei Li74e3e002023-04-26 12:15:55 -070069 "build/make/tools/protos": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -070070 "build/make/tools/releasetools": Bp2BuildDefaultTrue,
Wei Li74e3e002023-04-26 12:15:55 -070071 "build/make/tools/sbom": Bp2BuildDefaultTrue,
Cole Faust324a92e2022-08-23 15:29:05 -070072 "build/make/tools/signapk": Bp2BuildDefaultTrue,
73 "build/make/tools/zipalign": Bp2BuildDefaultTrueRecursively,
74 "build/soong": Bp2BuildDefaultTrue,
75 "build/soong/cc/libbuildversion": Bp2BuildDefaultTrue, // Skip tests subdir
76 "build/soong/cc/ndkstubgen": Bp2BuildDefaultTrue,
77 "build/soong/cc/symbolfile": Bp2BuildDefaultTrue,
Zi Wangaa516c52023-09-25 11:52:41 -070078 "build/soong/jar": Bp2BuildDefaultTrue,
Sasha Smundak8bea2672022-08-04 13:31:14 -070079 "build/soong/licenses": Bp2BuildDefaultTrue,
Cole Faust324a92e2022-08-23 15:29:05 -070080 "build/soong/linkerconfig": Bp2BuildDefaultTrueRecursively,
Zi Wangaa516c52023-09-25 11:52:41 -070081 "build/soong/response": Bp2BuildDefaultTrue,
Cole Faust324a92e2022-08-23 15:29:05 -070082 "build/soong/scripts": Bp2BuildDefaultTrueRecursively,
Zi Wangaa516c52023-09-25 11:52:41 -070083 "build/soong/third_party/zip": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040084
85 "cts/common/device-side/nativetesthelper/jni": Bp2BuildDefaultTrueRecursively,
Jingwen Chenb70c0962023-09-25 14:56:50 +000086 "cts/flags/cc_tests": Bp2BuildDefaultTrueRecursively,
87 "cts/libs/json": Bp2BuildDefaultTrueRecursively,
88 "cts/tests/tests/gesture": Bp2BuildDefaultTrueRecursively,
Jingwen Chen1ec77852022-11-07 14:36:12 +000089
90 "dalvik/tools/dexdeps": Bp2BuildDefaultTrueRecursively,
91
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040092 "development/apps/DevelopmentSettings": Bp2BuildDefaultTrue,
93 "development/apps/Fallback": Bp2BuildDefaultTrue,
94 "development/apps/WidgetPreview": Bp2BuildDefaultTrue,
Spandan Dasb3d5c482023-05-15 18:49:23 +000095 "development/python-packages/adb": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040096 "development/samples/BasicGLSurfaceView": Bp2BuildDefaultTrue,
97 "development/samples/BluetoothChat": Bp2BuildDefaultTrue,
98 "development/samples/BrokenKeyDerivation": Bp2BuildDefaultTrue,
99 "development/samples/Compass": Bp2BuildDefaultTrue,
100 "development/samples/ContactManager": Bp2BuildDefaultTrue,
101 "development/samples/FixedGridLayout": Bp2BuildDefaultTrue,
102 "development/samples/HelloEffects": Bp2BuildDefaultTrue,
103 "development/samples/Home": Bp2BuildDefaultTrue,
104 "development/samples/HoneycombGallery": Bp2BuildDefaultTrue,
105 "development/samples/JetBoy": Bp2BuildDefaultTrue,
106 "development/samples/KeyChainDemo": Bp2BuildDefaultTrue,
107 "development/samples/LceDemo": Bp2BuildDefaultTrue,
108 "development/samples/LunarLander": Bp2BuildDefaultTrue,
109 "development/samples/MultiResolution": Bp2BuildDefaultTrue,
110 "development/samples/MultiWindow": Bp2BuildDefaultTrue,
111 "development/samples/NotePad": Bp2BuildDefaultTrue,
112 "development/samples/Obb": Bp2BuildDefaultTrue,
113 "development/samples/RSSReader": Bp2BuildDefaultTrue,
114 "development/samples/ReceiveShareDemo": Bp2BuildDefaultTrue,
115 "development/samples/SearchableDictionary": Bp2BuildDefaultTrue,
116 "development/samples/SipDemo": Bp2BuildDefaultTrue,
117 "development/samples/SkeletonApp": Bp2BuildDefaultTrue,
118 "development/samples/Snake": Bp2BuildDefaultTrue,
119 "development/samples/SpellChecker/": Bp2BuildDefaultTrueRecursively,
120 "development/samples/ThemedNavBarKeyboard": Bp2BuildDefaultTrue,
121 "development/samples/ToyVpn": Bp2BuildDefaultTrue,
122 "development/samples/TtsEngine": Bp2BuildDefaultTrue,
123 "development/samples/USB/AdbTest": Bp2BuildDefaultTrue,
124 "development/samples/USB/MissileLauncher": Bp2BuildDefaultTrue,
125 "development/samples/VoiceRecognitionService": Bp2BuildDefaultTrue,
126 "development/samples/VoicemailProviderDemo": Bp2BuildDefaultTrue,
127 "development/samples/WiFiDirectDemo": Bp2BuildDefaultTrue,
128 "development/sdk": Bp2BuildDefaultTrueRecursively,
129
130 "external/aac": Bp2BuildDefaultTrueRecursively,
Spandan Das390a6d62023-08-01 22:50:46 +0000131 "external/abseil-cpp": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400132 "external/arm-optimized-routines": Bp2BuildDefaultTrueRecursively,
Sasha Smundak8bea2672022-08-04 13:31:14 -0700133 "external/auto": Bp2BuildDefaultTrue,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000134 "external/auto/android-annotation-stubs": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400135 "external/auto/common": Bp2BuildDefaultTrueRecursively,
136 "external/auto/service": Bp2BuildDefaultTrueRecursively,
Liz Kammerb70eae02023-09-07 11:23:52 -0400137 "external/auto/value": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400138 "external/boringssl": Bp2BuildDefaultTrueRecursively,
139 "external/bouncycastle": Bp2BuildDefaultTrue,
140 "external/brotli": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -0700141 "external/bsdiff": Bp2BuildDefaultTrueRecursively,
142 "external/bzip2": Bp2BuildDefaultTrueRecursively,
Alixe2667872023-04-24 14:57:32 +0000143 "external/clang/lib": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400144 "external/conscrypt": Bp2BuildDefaultTrue,
Jingwen Chen7501a1b2023-09-26 10:49:28 +0000145 "external/dexmaker": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400146 "external/e2fsprogs": Bp2BuildDefaultTrueRecursively,
147 "external/eigen": Bp2BuildDefaultTrueRecursively,
148 "external/erofs-utils": Bp2BuildDefaultTrueRecursively,
149 "external/error_prone": Bp2BuildDefaultTrueRecursively,
Usta Shresthad66f2ce2023-03-15 15:01:59 -0400150 "external/escapevelocity": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400151 "external/expat": Bp2BuildDefaultTrueRecursively,
152 "external/f2fs-tools": Bp2BuildDefaultTrue,
153 "external/flac": Bp2BuildDefaultTrueRecursively,
Liz Kammere848bb22023-06-29 09:21:50 -0400154 "external/flatbuffers": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400155 "external/fmtlib": Bp2BuildDefaultTrueRecursively,
Cole Faust17cd19c2023-06-08 12:26:42 -0700156 "external/fsverity-utils": Bp2BuildDefaultTrueRecursively,
Spandan Das2a8f9002023-08-16 17:49:25 +0000157 "external/gflags": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400158 "external/google-benchmark": Bp2BuildDefaultTrueRecursively,
159 "external/googletest": Bp2BuildDefaultTrueRecursively,
Liz Kammere848bb22023-06-29 09:21:50 -0400160 "external/guava": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400161 "external/gwp_asan": Bp2BuildDefaultTrueRecursively,
162 "external/hamcrest": Bp2BuildDefaultTrueRecursively,
163 "external/icu": Bp2BuildDefaultTrueRecursively,
164 "external/icu/android_icu4j": Bp2BuildDefaultFalse, // java rules incomplete
165 "external/icu/icu4j": Bp2BuildDefaultFalse, // java rules incomplete
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400166 "external/jacoco": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400167 "external/jarjar": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400168 "external/javaparser": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400169 "external/javapoet": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000170 "external/javassist": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400171 "external/jemalloc_new": Bp2BuildDefaultTrueRecursively,
172 "external/jsoncpp": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux0bffcb82023-02-03 10:15:47 -0500173 "external/jsr305": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux47773342023-01-11 16:27:34 -0500174 "external/jsr330": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400175 "external/junit": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux47773342023-01-11 16:27:34 -0500176 "external/kotlinc": Bp2BuildDefaultTrueRecursively,
Liz Kammer90bfe3a2023-09-15 10:56:08 -0400177 "external/kotlinx.coroutines": Bp2BuildDefaultTrueRecursively,
Vinh Tran1b6a4612022-09-30 16:36:59 -0400178 "external/libaom": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400179 "external/libavc": Bp2BuildDefaultTrueRecursively,
180 "external/libcap": Bp2BuildDefaultTrueRecursively,
181 "external/libcxx": Bp2BuildDefaultTrueRecursively,
182 "external/libcxxabi": Bp2BuildDefaultTrueRecursively,
Wei Li7d8f6182022-10-11 14:38:16 -0700183 "external/libdivsufsort": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000184 "external/libdrm": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400185 "external/libevent": Bp2BuildDefaultTrueRecursively,
186 "external/libgav1": Bp2BuildDefaultTrueRecursively,
187 "external/libhevc": Bp2BuildDefaultTrueRecursively,
188 "external/libjpeg-turbo": Bp2BuildDefaultTrueRecursively,
189 "external/libmpeg2": Bp2BuildDefaultTrueRecursively,
Liz Kammer33dddf52023-09-07 14:54:41 -0400190 "external/libphonenumber": Bp2BuildDefaultTrueRecursively,
Liz Kammer90bfe3a2023-09-15 10:56:08 -0400191 "external/libpng": Bp2BuildDefaultTrueRecursively,
Cole Faustc843b992022-08-02 18:06:50 -0700192 "external/libvpx": Bp2BuildDefaultTrueRecursively,
Cole Faust92e92e42022-08-26 16:12:42 -0700193 "external/libyuv": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400194 "external/lz4/lib": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -0700195 "external/lz4/programs": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400196 "external/lzma/C": Bp2BuildDefaultTrueRecursively,
197 "external/mdnsresponder": Bp2BuildDefaultTrueRecursively,
198 "external/minijail": Bp2BuildDefaultTrueRecursively,
Jingwen Chen7501a1b2023-09-26 10:49:28 +0000199 "external/mockito": Bp2BuildDefaultTrueRecursively,
Colin Cross20c89f12022-12-05 16:47:44 -0800200 "external/musl": Bp2BuildDefaultTrueRecursively,
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000201 "external/objenesis": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000202 "external/openscreen": Bp2BuildDefaultTrueRecursively,
Spandan Das6960ac12022-11-22 04:45:05 +0000203 "external/ow2-asm": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400204 "external/pcre": Bp2BuildDefaultTrueRecursively,
Zi Wang63fc0f62023-09-18 10:00:46 -0700205 "external/perfmark/api": Bp2BuildDefaultTrueRecursively,
Spandan Das6d463cf2023-10-05 22:11:16 +0000206 "external/perfetto": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400207 "external/protobuf": Bp2BuildDefaultTrueRecursively,
Spandan Das77ce1272023-08-02 04:52:25 +0000208 "external/python/jinja/src": Bp2BuildDefaultTrueRecursively,
209 "external/python/markupsafe/src": Bp2BuildDefaultTrueRecursively,
Liz Kammer90bfe3a2023-09-15 10:56:08 -0400210 "external/python/pyfakefs/pyfakefs": Bp2BuildDefaultTrueRecursively,
211 "external/python/pyyaml/lib/yaml": Bp2BuildDefaultTrueRecursively,
Spandan Das77ce1272023-08-02 04:52:25 +0000212 "external/python/setuptools": Bp2BuildDefaultTrueRecursively,
Liz Kammer90bfe3a2023-09-15 10:56:08 -0400213 "external/python/six": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400214 "external/rappor": Bp2BuildDefaultTrueRecursively,
Vinh Tran89d2bbf2023-09-29 16:08:56 -0400215 "external/rust/crates/rustc-demangle": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400216 "external/scudo": Bp2BuildDefaultTrueRecursively,
Cole Faust6cac8cb2023-06-15 15:01:30 -0700217 "external/selinux/checkpolicy": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400218 "external/selinux/libselinux": Bp2BuildDefaultTrueRecursively,
219 "external/selinux/libsepol": Bp2BuildDefaultTrueRecursively,
Cole Faustfe2ab362022-08-26 16:55:11 -0700220 "external/speex": Bp2BuildDefaultTrueRecursively,
Liz Kammerf0ab5462023-04-04 11:38:54 -0400221 "external/sqlite": Bp2BuildDefaultTrueRecursively,
Jingwen Chen263d4002023-03-29 07:15:10 +0000222 "external/tinyalsa": Bp2BuildDefaultTrueRecursively,
223 "external/tinyalsa_new": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400224 "external/toybox": Bp2BuildDefaultTrueRecursively,
Liz Kammer90bfe3a2023-09-15 10:56:08 -0400225 "external/truth": Bp2BuildDefaultTrueRecursively,
Zi Wangaa516c52023-09-25 11:52:41 -0700226 "external/xz-java": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400227 "external/zlib": Bp2BuildDefaultTrueRecursively,
228 "external/zopfli": Bp2BuildDefaultTrueRecursively,
229 "external/zstd": Bp2BuildDefaultTrueRecursively,
230
Jingwen Chen1ec77852022-11-07 14:36:12 +0000231 "frameworks/av": Bp2BuildDefaultTrue,
Liz Kammer90bfe3a2023-09-15 10:56:08 -0400232 "frameworks/av/media/audioaidlconversion": Bp2BuildDefaultTrueRecursively,
233 "frameworks/av/media/codec2/components/aom": Bp2BuildDefaultTrueRecursively,
234 "frameworks/av/media/codecs": Bp2BuildDefaultTrueRecursively,
235 "frameworks/av/media/liberror": Bp2BuildDefaultTrueRecursively,
236 "frameworks/av/media/libmediahelper": Bp2BuildDefaultTrue,
237 "frameworks/av/media/libshmem": Bp2BuildDefaultTrueRecursively,
238 "frameworks/av/media/module/codecs": Bp2BuildDefaultTrueRecursively,
239 "frameworks/av/media/module/foundation": Bp2BuildDefaultTrueRecursively,
240 "frameworks/av/media/module/minijail": Bp2BuildDefaultTrueRecursively,
241 "frameworks/av/services/minijail": Bp2BuildDefaultTrueRecursively,
242 "frameworks/base/apex/jobscheduler/service/jni": Bp2BuildDefaultTrueRecursively,
243 "frameworks/base/core/java": Bp2BuildDefaultTrue,
244 "frameworks/base/core/res": Bp2BuildDefaultTrueRecursively,
245 "frameworks/base/errorprone": Bp2BuildDefaultTrueRecursively,
246 "frameworks/base/libs/androidfw": Bp2BuildDefaultTrue,
247 "frameworks/base/libs/services": Bp2BuildDefaultTrue,
248 "frameworks/base/media/tests/MediaDump": Bp2BuildDefaultTrue,
249 "frameworks/base/mime": Bp2BuildDefaultTrueRecursively,
250 "frameworks/base/proto": Bp2BuildDefaultTrue,
251 "frameworks/base/services/tests/servicestests/aidl": Bp2BuildDefaultTrue,
252 "frameworks/base/startop/apps/test": Bp2BuildDefaultTrue,
253 "frameworks/base/tests/appwidgets/AppWidgetHostTest": Bp2BuildDefaultTrueRecursively,
254 "frameworks/base/tools/aapt": Bp2BuildDefaultTrue,
255 "frameworks/base/tools/aapt2": Bp2BuildDefaultTrue,
256 "frameworks/base/tools/codegen": Bp2BuildDefaultTrueRecursively,
257 "frameworks/base/tools/locked_region_code_injection": Bp2BuildDefaultTrueRecursively,
258 "frameworks/base/tools/streaming_proto": Bp2BuildDefaultTrueRecursively,
259 "frameworks/hardware/interfaces": Bp2BuildDefaultTrue,
260 "frameworks/hardware/interfaces/displayservice": Bp2BuildDefaultTrueRecursively,
261 "frameworks/hardware/interfaces/stats/aidl": Bp2BuildDefaultTrue,
262 "frameworks/libs/modules-utils/build": Bp2BuildDefaultTrueRecursively,
263 "frameworks/libs/modules-utils/java": Bp2BuildDefaultTrueRecursively,
264 "frameworks/libs/modules-utils/java/com/android/modules/utils/testing": Bp2BuildDefaultFalseRecursively,
265 "frameworks/native": Bp2BuildDefaultTrue,
266 "frameworks/native/libs/adbd_auth": Bp2BuildDefaultTrueRecursively,
267 "frameworks/native/libs/arect": Bp2BuildDefaultTrueRecursively,
268 "frameworks/native/libs/binder": Bp2BuildDefaultTrue,
269 "frameworks/native/libs/gui": Bp2BuildDefaultTrue,
270 "frameworks/native/libs/math": Bp2BuildDefaultTrueRecursively,
271 "frameworks/native/libs/nativebase": Bp2BuildDefaultTrueRecursively,
272 "frameworks/native/libs/permission": Bp2BuildDefaultTrueRecursively,
273 "frameworks/native/libs/ui": Bp2BuildDefaultTrue,
274 "frameworks/native/libs/vr": Bp2BuildDefaultTrueRecursively,
275 "frameworks/native/opengl/tests/gl2_cameraeye": Bp2BuildDefaultTrue,
276 "frameworks/native/opengl/tests/gl2_java": Bp2BuildDefaultTrue,
277 "frameworks/native/opengl/tests/testLatency": Bp2BuildDefaultTrue,
278 "frameworks/native/opengl/tests/testPauseResume": Bp2BuildDefaultTrue,
279 "frameworks/native/opengl/tests/testViewport": Bp2BuildDefaultTrue,
280 "frameworks/native/services/batteryservice": Bp2BuildDefaultTrue,
281 "frameworks/proto_logging/stats": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400282
Liz Kammere76510b2023-03-20 17:30:51 -0400283 "hardware/interfaces": Bp2BuildDefaultTrue,
284 "hardware/interfaces/audio/aidl": Bp2BuildDefaultTrue,
285 "hardware/interfaces/audio/aidl/common": Bp2BuildDefaultTrue,
Jingwen Chen263d4002023-03-29 07:15:10 +0000286 "hardware/interfaces/audio/aidl/default": Bp2BuildDefaultTrue,
287 "hardware/interfaces/audio/aidl/sounddose": Bp2BuildDefaultTrue,
Spandan Das8fe96ce2023-08-18 17:10:23 +0000288 "hardware/interfaces/camera/metadata/aidl": Bp2BuildDefaultTrueRecursively,
Liz Kammere76510b2023-03-20 17:30:51 -0400289 "hardware/interfaces/common/aidl": Bp2BuildDefaultTrue,
290 "hardware/interfaces/common/fmq/aidl": Bp2BuildDefaultTrue,
291 "hardware/interfaces/common/support": Bp2BuildDefaultTrue,
292 "hardware/interfaces/configstore/1.0": Bp2BuildDefaultTrue,
293 "hardware/interfaces/configstore/1.1": Bp2BuildDefaultTrue,
294 "hardware/interfaces/configstore/utils": Bp2BuildDefaultTrue,
Chris Parsons2173b5f2023-09-25 19:01:40 +0000295 "hardware/interfaces/contexthub/aidl": Bp2BuildDefaultTrue,
Liz Kammere76510b2023-03-20 17:30:51 -0400296 "hardware/interfaces/graphics/allocator/2.0": Bp2BuildDefaultTrue,
297 "hardware/interfaces/graphics/allocator/3.0": Bp2BuildDefaultTrue,
298 "hardware/interfaces/graphics/allocator/4.0": Bp2BuildDefaultTrue,
299 "hardware/interfaces/graphics/allocator/aidl": Bp2BuildDefaultTrue,
300 "hardware/interfaces/graphics/bufferqueue/1.0": Bp2BuildDefaultTrue,
301 "hardware/interfaces/graphics/bufferqueue/2.0": Bp2BuildDefaultTrue,
302 "hardware/interfaces/graphics/common/1.0": Bp2BuildDefaultTrue,
303 "hardware/interfaces/graphics/common/1.1": Bp2BuildDefaultTrue,
304 "hardware/interfaces/graphics/common/1.2": Bp2BuildDefaultTrue,
305 "hardware/interfaces/graphics/common/aidl": Bp2BuildDefaultTrue,
306 "hardware/interfaces/graphics/mapper/2.0": Bp2BuildDefaultTrue,
307 "hardware/interfaces/graphics/mapper/2.1": Bp2BuildDefaultTrue,
308 "hardware/interfaces/graphics/mapper/3.0": Bp2BuildDefaultTrue,
309 "hardware/interfaces/graphics/mapper/4.0": Bp2BuildDefaultTrue,
310 "hardware/interfaces/health/1.0": Bp2BuildDefaultTrue,
311 "hardware/interfaces/health/1.0/default": Bp2BuildDefaultTrue,
312 "hardware/interfaces/health/2.0": Bp2BuildDefaultTrue,
313 "hardware/interfaces/health/2.0/default": Bp2BuildDefaultTrue,
314 "hardware/interfaces/health/2.0/utils": Bp2BuildDefaultTrueRecursively,
315 "hardware/interfaces/health/2.1": Bp2BuildDefaultTrue,
316 "hardware/interfaces/health/aidl": Bp2BuildDefaultTrue,
317 "hardware/interfaces/health/utils": Bp2BuildDefaultTrueRecursively,
Liz Kammer4fd2edb2023-09-08 08:56:46 -0400318 "hardware/interfaces/media": Bp2BuildDefaultTrueRecursively,
Liz Kammere76510b2023-03-20 17:30:51 -0400319 "hardware/interfaces/media/bufferpool/aidl/default/tests": Bp2BuildDefaultFalseRecursively,
Liz Kammer4fd2edb2023-09-08 08:56:46 -0400320 "hardware/interfaces/media/omx/1.0/vts": Bp2BuildDefaultFalseRecursively,
Liz Kammere76510b2023-03-20 17:30:51 -0400321 "hardware/interfaces/neuralnetworks": Bp2BuildDefaultTrueRecursively,
322 "hardware/interfaces/neuralnetworks/aidl/vts": Bp2BuildDefaultFalseRecursively,
323 "hardware/interfaces/neuralnetworks/1.0/vts": Bp2BuildDefaultFalseRecursively,
324 "hardware/interfaces/neuralnetworks/1.1/vts": Bp2BuildDefaultFalseRecursively,
325 "hardware/interfaces/neuralnetworks/1.2/vts": Bp2BuildDefaultFalseRecursively,
326 "hardware/interfaces/neuralnetworks/1.3/vts": Bp2BuildDefaultFalseRecursively,
327 "hardware/interfaces/neuralnetworks/1.4/vts": Bp2BuildDefaultFalseRecursively,
Liz Kammer0db75202023-09-11 15:12:27 -0400328 "hardware/interfaces/tests": Bp2BuildDefaultTrueRecursively,
329 "hardware/interfaces/tests/extension": Bp2BuildDefaultFalseRecursively, // missing deps
330 "hardware/interfaces/tests/msgq": Bp2BuildDefaultFalseRecursively, // missing deps
Liz Kammer1c921162022-08-17 16:58:32 -0400331
332 "libnativehelper": Bp2BuildDefaultTrueRecursively,
333
Liz Kammer90bfe3a2023-09-15 10:56:08 -0400334 "packages/apps/DevCamera": Bp2BuildDefaultTrue,
335 "packages/apps/HTMLViewer": Bp2BuildDefaultTrue,
336 "packages/apps/Protips": Bp2BuildDefaultTrue,
337 "packages/apps/SafetyRegulatoryInfo": Bp2BuildDefaultTrue,
338 "packages/apps/WallpaperPicker": Bp2BuildDefaultTrue,
339 "packages/modules/Connectivity/bpf_progs": Bp2BuildDefaultTrueRecursively,
340 "packages/modules/Connectivity/service-t": Bp2BuildDefaultTrueRecursively,
341 "packages/modules/Connectivity/service/native": Bp2BuildDefaultTrueRecursively,
342 "packages/modules/Connectivity/staticlibs/native": Bp2BuildDefaultTrueRecursively,
343 "packages/modules/Connectivity/staticlibs/netd": Bp2BuildDefaultTrueRecursively,
344 "packages/modules/Connectivity/staticlibs/netd/libnetdutils": Bp2BuildDefaultTrueRecursively,
345 "packages/modules/Connectivity/tests/unit/jni": Bp2BuildDefaultTrueRecursively,
346 "packages/modules/Gki/libkver": Bp2BuildDefaultTrue,
347 "packages/modules/NetworkStack/common/captiveportal": Bp2BuildDefaultTrue,
348 "packages/modules/NeuralNetworks/apex": Bp2BuildDefaultTrue,
349 "packages/modules/NeuralNetworks/apex/testing": Bp2BuildDefaultTrue,
350 "packages/modules/NeuralNetworks/driver/cache": Bp2BuildDefaultTrueRecursively,
351 "packages/modules/SdkExtensions/gen_sdk": Bp2BuildDefaultTrue,
352 "packages/modules/StatsD/lib/libstatssocket": Bp2BuildDefaultTrueRecursively,
353 "packages/modules/adb": Bp2BuildDefaultTrue,
354 "packages/modules/adb/apex": Bp2BuildDefaultTrue,
355 "packages/modules/adb/crypto": Bp2BuildDefaultTrueRecursively,
356 "packages/modules/adb/fastdeploy": Bp2BuildDefaultTrue,
357 "packages/modules/adb/libs": Bp2BuildDefaultTrueRecursively,
358 "packages/modules/adb/pairing_auth": Bp2BuildDefaultTrueRecursively,
359 "packages/modules/adb/pairing_connection": Bp2BuildDefaultTrueRecursively,
360 "packages/modules/adb/proto": Bp2BuildDefaultTrueRecursively,
361 "packages/modules/adb/tls": Bp2BuildDefaultTrueRecursively,
362 "packages/modules/common/proto": Bp2BuildDefaultTrue,
363 "packages/providers/MediaProvider/tools/dialogs": Bp2BuildDefaultFalse, // TODO(b/242834374)
364 "packages/screensavers/Basic": Bp2BuildDefaultTrue,
365 "packages/services/Car/tests/SampleRearViewCamera": Bp2BuildDefaultFalse, // TODO(b/242834321)
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400366
Jingwen Chenb70c0962023-09-25 14:56:50 +0000367 "platform_testing/libraries/annotations": Bp2BuildDefaultTrueRecursively,
368 "platform_testing/libraries/flag-helpers/libflagtest": Bp2BuildDefaultTrueRecursively,
369 "platform_testing/tests/example": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +0000370
Romain Jobredeauxaa6e25d2022-08-10 10:12:59 -0400371 "prebuilts/clang/host/linux-x86": Bp2BuildDefaultTrueRecursively,
372 "prebuilts/gradle-plugin": Bp2BuildDefaultTrueRecursively,
Liz Kammere1b39a52023-09-18 14:32:18 -0400373 "prebuilts/module_sdk": Bp2BuildDefaultTrueRecursively,
Liz Kammer90bfe3a2023-09-15 10:56:08 -0400374 "prebuilts/runtime/mainline/platform/sdk": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux8242b432023-05-04 10:16:26 -0400375 "prebuilts/sdk": Bp2BuildDefaultTrue,
Romain Jobredeauxaa6e25d2022-08-10 10:12:59 -0400376 "prebuilts/sdk/current/androidx": Bp2BuildDefaultTrue,
377 "prebuilts/sdk/current/androidx-legacy": Bp2BuildDefaultTrue,
Liz Kammer90bfe3a2023-09-15 10:56:08 -0400378 "prebuilts/sdk/current/extras/app-toolkit": Bp2BuildDefaultTrue,
Romain Jobredeauxaa6e25d2022-08-10 10:12:59 -0400379 "prebuilts/sdk/current/extras/constraint-layout-x": Bp2BuildDefaultTrue,
380 "prebuilts/sdk/current/extras/material-design-x": Bp2BuildDefaultTrue,
Romain Jobredeauxaa6e25d2022-08-10 10:12:59 -0400381 "prebuilts/sdk/current/support": Bp2BuildDefaultTrue,
382 "prebuilts/tools": Bp2BuildDefaultTrue,
383 "prebuilts/tools/common/m2": Bp2BuildDefaultTrue,
Romain Jobredeaux890d6ea2023-08-23 10:53:07 -0400384 "prebuilts/r8": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400385
Liz Kammer90bfe3a2023-09-15 10:56:08 -0400386 "sdk/annotations": Bp2BuildDefaultTrueRecursively,
Alixb4e09a02022-09-27 15:36:01 +0000387 "sdk/dumpeventlog": Bp2BuildDefaultTrue,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000388 "sdk/eventanalyzer": Bp2BuildDefaultTrue,
Alixb4e09a02022-09-27 15:36:01 +0000389
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000390 "system/apex": Bp2BuildDefaultFalse, // TODO(b/207466993): flaky failures
391 "system/apex/apexer": Bp2BuildDefaultTrue,
392 "system/apex/libs": Bp2BuildDefaultTrueRecursively,
Jingwen Chena1a17752023-06-15 11:06:34 +0000393 "system/apex/libs/libapexsupport": Bp2BuildDefaultFalseRecursively, // TODO(b/267572288): depends on rust
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000394 "system/apex/proto": Bp2BuildDefaultTrueRecursively,
395 "system/apex/tools": Bp2BuildDefaultTrueRecursively,
396 "system/core/debuggerd": Bp2BuildDefaultTrueRecursively,
397 "system/core/diagnose_usb": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000398 "system/core/healthd": Bp2BuildDefaultTrue,
399 "system/core/healthd/testdata": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000400 "system/core/libasyncio": Bp2BuildDefaultTrue,
401 "system/core/libcrypto_utils": Bp2BuildDefaultTrueRecursively,
402 "system/core/libcutils": Bp2BuildDefaultTrueRecursively,
403 "system/core/libpackagelistparser": Bp2BuildDefaultTrueRecursively,
404 "system/core/libprocessgroup": Bp2BuildDefaultTrue,
405 "system/core/libprocessgroup/cgrouprc": Bp2BuildDefaultTrue,
406 "system/core/libprocessgroup/cgrouprc_format": Bp2BuildDefaultTrue,
Cole Faust17cd19c2023-06-08 12:26:42 -0700407 "system/core/libsparse": Bp2BuildDefaultTrueRecursively,
Jingwen Chenc6f3c102023-09-26 01:59:12 +0000408 "system/core/libstats/expresslog": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000409 "system/core/libsuspend": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000410 "system/core/libsystem": Bp2BuildDefaultTrueRecursively,
Jingwen Chenf0616002022-09-01 14:28:55 +0000411 "system/core/libsysutils": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000412 "system/core/libutils": Bp2BuildDefaultTrueRecursively,
413 "system/core/libvndksupport": Bp2BuildDefaultTrueRecursively,
Wei Li7d8f6182022-10-11 14:38:16 -0700414 "system/core/mkbootfs": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000415 "system/core/property_service/libpropertyinfoparser": Bp2BuildDefaultTrueRecursively,
416 "system/core/property_service/libpropertyinfoserializer": Bp2BuildDefaultTrueRecursively,
Vinh Tran92260512023-09-11 10:30:13 -0400417 "system/core/trusty/libtrusty": Bp2BuildDefaultTrue,
Cole Faust17cd19c2023-06-08 12:26:42 -0700418 "system/extras/f2fs_utils": Bp2BuildDefaultTrueRecursively,
Yu Liuf27bb3b2022-10-03 14:15:01 -0700419 "system/extras/toolchain-extras": Bp2BuildDefaultTrue,
Cole Faust17cd19c2023-06-08 12:26:42 -0700420 "system/extras/verity": Bp2BuildDefaultTrueRecursively,
Chris Parsons52b842a2022-12-19 11:45:23 -0500421 "system/hardware/interfaces/media": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400422 "system/incremental_delivery/incfs": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000423 "system/libartpalette": Bp2BuildDefaultTrueRecursively,
424 "system/libbase": Bp2BuildDefaultTrueRecursively,
425 "system/libfmq": Bp2BuildDefaultTrue,
Vinh Tran92260512023-09-11 10:30:13 -0400426 "system/libhidl": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400427 "system/libhidl/libhidlmemory": Bp2BuildDefaultTrue,
428 "system/libhidl/transport": Bp2BuildDefaultTrue,
429 "system/libhidl/transport/allocator/1.0": Bp2BuildDefaultTrue,
Yu Liudf4413a2022-07-23 21:24:30 -0700430 "system/libhidl/transport/base/1.0": Bp2BuildDefaultTrue,
431 "system/libhidl/transport/manager/1.0": Bp2BuildDefaultTrue,
432 "system/libhidl/transport/manager/1.1": Bp2BuildDefaultTrue,
433 "system/libhidl/transport/manager/1.2": Bp2BuildDefaultTrue,
Liz Kammer0db75202023-09-11 15:12:27 -0400434 "system/libhidl/transport/memory": Bp2BuildDefaultTrueRecursively,
Liz Kammer1c921162022-08-17 16:58:32 -0400435 "system/libhidl/transport/safe_union/1.0": Bp2BuildDefaultTrue,
436 "system/libhidl/transport/token/1.0": Bp2BuildDefaultTrue,
437 "system/libhidl/transport/token/1.0/utils": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000438 "system/libhwbinder": Bp2BuildDefaultTrueRecursively,
439 "system/libprocinfo": Bp2BuildDefaultTrue,
Jingwen Chen263d4002023-03-29 07:15:10 +0000440 "system/libvintf": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000441 "system/libziparchive": Bp2BuildDefaultTrueRecursively,
Vinh Tran89d2bbf2023-09-29 16:08:56 -0400442 "system/linkerconfig": Bp2BuildDefaultTrueRecursively,
Jingwen Chenf0616002022-09-01 14:28:55 +0000443 "system/logging": Bp2BuildDefaultTrueRecursively,
Sasha Smundak8bea2672022-08-04 13:31:14 -0700444 "system/media": Bp2BuildDefaultTrue,
Jingwen Chen263d4002023-03-29 07:15:10 +0000445 "system/media/alsa_utils": Bp2BuildDefaultTrueRecursively,
Liz Kammer0db75202023-09-11 15:12:27 -0400446 "system/media/audio": Bp2BuildDefaultTrueRecursively,
Cole Faustfe2ab362022-08-26 16:55:11 -0700447 "system/media/audio_utils": Bp2BuildDefaultTrueRecursively,
Spandan Das8fe96ce2023-08-18 17:10:23 +0000448 "system/media/camera": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000449 "system/memory/libion": Bp2BuildDefaultTrueRecursively,
450 "system/memory/libmemunreachable": Bp2BuildDefaultTrueRecursively,
Spandan Das6d463cf2023-10-05 22:11:16 +0000451 "system/netd": Bp2BuildDefaultTrue,
Cole Faust17cd19c2023-06-08 12:26:42 -0700452 "system/security/fsverity": Bp2BuildDefaultTrueRecursively,
Liz Kammer0db75202023-09-11 15:12:27 -0400453 "system/sepolicy/apex": Bp2BuildDefaultTrueRecursively,
Jingwen Chen537242c2022-08-24 11:53:27 +0000454 "system/testing/gtest_extras": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000455 "system/timezone/apex": Bp2BuildDefaultTrueRecursively,
456 "system/timezone/output_data": Bp2BuildDefaultTrueRecursively,
Jingwen Chen61342112023-04-11 08:49:01 +0000457 "system/timezone/testdata": Bp2BuildDefaultTrueRecursively,
458 "system/timezone/testing": Bp2BuildDefaultTrueRecursively,
Sam Delmerico8dfa46a2022-08-30 15:09:36 -0400459 "system/tools/aidl/build/tests_bp2build": Bp2BuildDefaultTrue,
Jingwen Chen263d4002023-03-29 07:15:10 +0000460 "system/tools/aidl/metadata": Bp2BuildDefaultTrue,
Liz Kammer0db75202023-09-11 15:12:27 -0400461 "system/tools/hidl": Bp2BuildDefaultTrueRecursively,
Wei Li7d8f6182022-10-11 14:38:16 -0700462 "system/tools/mkbootimg": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400463 "system/tools/sysprop": Bp2BuildDefaultTrue,
Jingwen Chen263d4002023-03-29 07:15:10 +0000464 "system/tools/xsdc/utils": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000465 "system/unwinding/libunwindstack": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400466
Liz Kammer0db75202023-09-11 15:12:27 -0400467 "test/vts/vts_hal_hidl_target": Bp2BuildDefaultTrueRecursively,
468
Vinh Tran14d60d12023-10-11 12:17:30 -0400469 "toolchain/pgo-profiles": Bp2BuildDefaultTrueRecursively,
Liz Kammerb70eae02023-09-07 11:23:52 -0400470 "tools/apifinder": Bp2BuildDefaultTrue,
471 "tools/apksig": Bp2BuildDefaultTrue,
Spandan Das1262f352023-09-19 17:48:00 +0000472 "tools/dexter/slicer": Bp2BuildDefaultTrueRecursively,
Liz Kammerb70eae02023-09-07 11:23:52 -0400473 "tools/external_updater": Bp2BuildDefaultTrueRecursively,
474 "tools/metalava": Bp2BuildDefaultTrueRecursively,
475 "tools/platform-compat/java/android/compat": Bp2BuildDefaultTrueRecursively,
476 "tools/platform-compat/java/androidprocessor": Bp2BuildDefaultTrueRecursively,
Jingwen Chen7501a1b2023-09-26 10:49:28 +0000477 "tools/tradefederation/core/util_apps": Bp2BuildDefaultTrueRecursively,
Liz Kammerb70eae02023-09-07 11:23:52 -0400478 "tools/tradefederation/prebuilts/filegroups": Bp2BuildDefaultTrueRecursively,
Sam Delmerico24c56032022-03-28 19:53:03 +0000479 }
480
481 Bp2buildKeepExistingBuildFile = map[string]bool{
482 // This is actually build/bazel/build.BAZEL symlinked to ./BUILD
483 ".":/*recursive = */ false,
484
Cole Faust324a92e2022-08-23 15:29:05 -0700485 "build/bazel":/* recursive = */ true,
Kevin Dagostino92f33d92022-11-02 20:29:07 +0000486 "build/make/core":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000487 "build/bazel_common_rules":/* recursive = */ true,
Cole Faust10b94de2023-03-31 17:38:33 -0700488 "build/make/target/product/security":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000489 // build/make/tools/signapk BUILD file is generated, so build/make/tools is not recursive.
490 "build/make/tools":/* recursive = */ false,
491 "build/pesto":/* recursive = */ true,
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000492 "build/soong":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000493
494 // external/bazelbuild-rules_android/... is needed by mixed builds, otherwise mixed builds analysis fails
495 // e.g. ERROR: Analysis of target '@soong_injection//mixed_builds:buildroot' failed
496 "external/bazelbuild-rules_android":/* recursive = */ true,
Vinh Tran79587fa2023-08-18 13:50:00 -0400497 "external/bazelbuild-rules_cc":/* recursive = */ true,
Romain Jobredeaux01e6b2c2023-07-19 15:27:13 -0400498 "external/bazelbuild-rules_java":/* recursive = */ true,
Sasha Smundak9d2f1742022-08-04 13:28:38 -0700499 "external/bazelbuild-rules_license":/* recursive = */ true,
Spandan Das4a5bc5c2023-06-26 03:44:04 +0000500 "external/bazelbuild-rules_go":/* recursive = */ true,
Vinh Tranf5e59812023-08-03 19:47:30 +0000501 "external/bazelbuild-rules_python":/* recursive = */ true,
Vinh Tranfe1ecfc2023-06-27 22:20:15 -0400502 "external/bazelbuild-rules_rust":/* recursive = */ true,
Romain Jobredeauxc9e585e2023-09-22 15:45:19 -0400503 "external/bazelbuild-rules_testing":/* recursive = */ true,
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400504 "external/bazelbuild-kotlin-rules":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000505 "external/bazel-skylib":/* recursive = */ true,
Cole Faustea602c52022-08-31 14:48:26 -0700506 "external/protobuf":/* recursive = */ false,
Cole Faustde12be32022-11-19 15:14:48 -0800507 "external/python/absl-py":/* recursive = */ true,
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000508
Trevor Radcliffe391a25d2023-03-22 20:22:27 +0000509 "external/compiler-rt/lib/cfi":/* recursive = */ false,
510
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000511 // this BUILD file is globbed by //external/icu/icu4c/source:icu4c_test_data's "data/**/*".
512 "external/icu/icu4c/source/data/unidata/norm2":/* recursive = */ false,
513
Romain Jobredeaux0bffcb82023-02-03 10:15:47 -0500514 // Building manually due to b/179889880: resource files cross package boundary
Sam Delmerico24c56032022-03-28 19:53:03 +0000515 "packages/apps/Music":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000516
Yu Liu56ccb1a2022-11-12 10:47:07 -0800517 "prebuilts/abi-dumps/platform":/* recursive = */ true,
518 "prebuilts/abi-dumps/ndk":/* recursive = */ true,
Romain Jobredeaux29197972022-05-30 22:02:31 -0400519 "prebuilts/bazel":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000520 "prebuilts/bundletool":/* recursive = */ true,
Cole Faustea602c52022-08-31 14:48:26 -0700521 "prebuilts/clang/host/linux-x86":/* recursive = */ false,
Yu Liu56ccb1a2022-11-12 10:47:07 -0800522 "prebuilts/clang-tools":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000523 "prebuilts/gcc":/* recursive = */ true,
Jingwen Chen23ca2d22022-05-19 09:53:56 +0000524 "prebuilts/build-tools":/* recursive = */ true,
Romain Jobredeaux3fe1edd2023-09-29 15:08:55 -0400525 "prebuilts/jdk/jdk8":/* recursive = */ true,
Romain Jobredeauxd4e1a152023-03-17 11:02:01 -0400526 "prebuilts/jdk/jdk17":/* recursive = */ true,
Cole Faust7071a052022-07-29 15:58:33 -0700527 "prebuilts/misc":/* recursive = */ false, // not recursive because we need bp2build converted build files in prebuilts/misc/common/asm
Sam Delmerico24c56032022-03-28 19:53:03 +0000528 "prebuilts/sdk":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000529 "prebuilts/sdk/tools":/* recursive = */ false,
530 "prebuilts/r8":/* recursive = */ false,
Kevin Dagostino3e2da942022-11-20 07:16:47 +0000531 "prebuilts/runtime":/* recursive = */ false,
Vinh Tranfe1ecfc2023-06-27 22:20:15 -0400532 "prebuilts/rust":/* recursive = */ true,
Kevin Dagostino92f33d92022-11-02 20:29:07 +0000533
Kevin Dagostino3e2da942022-11-20 07:16:47 +0000534 // not recursive due to conflicting workspace paths in tools/atest/bazel/rules
535 "tools/asuite/atest":/* recursive = */ false,
536 "tools/asuite/atest/bazel/reporter":/* recursive = */ true,
Yu Liu828c4062023-01-23 20:56:46 +0000537
538 // TODO(b/266459895): remove this and the placeholder BUILD file after re-enabling libunwindstack
539 "external/rust/crates/rustc-demangle-capi":/* recursive = */ false,
Chris Parsons8152a942023-06-06 16:17:50 +0000540
541 // Used for testing purposes only. Should not actually exist in the real source tree.
542 "testpkg/keep_build_file":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000543 }
544
545 Bp2buildModuleAlwaysConvertList = []string{
Yu Liueebb2592023-10-12 20:31:27 -0700546 "aconfig.test.cpp",
547 "AconfigJavaHostTest",
Vinh Tran3570ce32023-08-24 11:10:01 -0400548 // aconfig
549 "libonce_cell",
550 "libanyhow",
551 "libunicode_segmentation",
552 "libmemchr",
553 "libbitflags-1.3.2",
554 "libryu",
555 "libitoa",
556 "libos_str_bytes",
557 "libheck",
Vinh Tranc1a6cee2023-08-24 12:10:49 -0400558 "libclap_lex",
559 "libsyn",
560 "libquote",
561 "libunicode_ident",
562 "libproc_macro2",
563 "libthiserror_impl",
564 "libserde_derive",
565 "libclap_derive",
566 "libthiserror",
567 "libserde",
568 "libclap",
569 "libbytes",
570 "libprotobuf_support",
571 "libtinytemplate",
572 "libserde_json",
Vinh Tran9b846782023-08-24 12:55:12 -0400573 "libprotobuf",
Vinh Tran3570ce32023-08-24 11:10:01 -0400574
Vinh Tran85b177d2023-08-24 12:10:49 -0400575 "protoc-gen-rust",
576 "libprotobuf_codegen",
577 "libprotobuf_parse",
578 "libregex",
579 "libtempfile",
580 "libwhich",
581 "libregex_syntax",
582 "libfastrand",
583 "libeither",
584 "libaho_corasick",
585 "liblibc",
586 "libcfg_if",
587 "liblog_rust",
588 "libgetrandom",
589 "libremove_dir_all",
590 "libahash",
591 "libhashbrown",
592 "libindexmap",
593 "libaconfig_protos",
594 "libpaste",
595 "aconfig",
596
Liz Kammer877b8462023-08-04 16:38:22 -0400597 // ext
598 "tagsoup",
599
Liz Kammer877b8462023-08-04 16:38:22 -0400600 // framework-minus-apex
Liz Kammer1f309f32023-09-07 11:24:17 -0400601 "AndroidFrameworkLintChecker",
Liz Kammerb70eae02023-09-07 11:23:52 -0400602 "ImmutabilityAnnotationProcessor",
Liz Kammer877b8462023-08-04 16:38:22 -0400603 "debian.mime.types.minimized",
604 "framework-javastream-protos",
605 "libview-inspector-annotation-processor",
606
607 // services
608 "apache-commons-math",
609 "cbor-java",
610 "icu4j_calendar_astronomer",
Liz Kammer877b8462023-08-04 16:38:22 -0400611 "statslog-art-java-gen",
Liz Kammer877b8462023-08-04 16:38:22 -0400612
613 "AndroidCommonLint",
614 "ImmutabilityAnnotation",
615 "ImmutabilityAnnotationProcessorHostLibrary",
616
Liz Kammer09d831e2022-09-16 09:02:26 -0400617 "libidmap2_policies",
618 "libSurfaceFlingerProp",
Liz Kammere848bb22023-06-29 09:21:50 -0400619 "toolbox_input_labels",
620
Liz Kammerbe1315e2022-05-10 09:15:31 -0400621 // cc mainline modules
Liz Kammera7bea312023-05-04 09:51:56 -0400622
623 // com.android.media.swcodec
Vinh Tran2dbc7452022-09-29 10:49:07 -0400624 "com.android.media.swcodec",
Liz Kammer5068eae2022-05-11 17:24:29 -0400625 "com.android.media.swcodec-androidManifest",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400626 "com.android.media.swcodec-ld.config.txt",
Vinh Tran2dbc7452022-09-29 10:49:07 -0400627 "com.android.media.swcodec-mediaswcodec.32rc",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400628 "com.android.media.swcodec-mediaswcodec.rc",
Liz Kammer5068eae2022-05-11 17:24:29 -0400629 "com.android.media.swcodec.certificate",
630 "com.android.media.swcodec.key",
Liz Kammera7bea312023-05-04 09:51:56 -0400631 "test_com.android.media.swcodec",
632
633 // deps
634 "code_coverage.policy",
635 "code_coverage.policy.other",
636 "codec2_soft_exports",
Spandan Das8d6bf5e2023-05-19 00:18:49 +0000637 "compatibility_matrix_schema",
Vinh Tran3cb9ade2022-10-20 12:17:42 -0400638 "framework-connectivity-protos",
Liz Kammer90bfe3a2023-09-15 10:56:08 -0400639 "framework-connectivity-javastream-protos",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400640 "gemmlowp_headers",
641 "gl_headers",
Liz Kammer63367e12022-06-13 19:35:12 +0000642 "libandroid_runtime_lazy",
Liz Kammer5068eae2022-05-11 17:24:29 -0400643 "libandroid_runtime_vm_headers",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400644 "libaudioclient_aidl_conversion_util",
Liz Kammer5068eae2022-05-11 17:24:29 -0400645 "libbinder_headers_platform_shared",
Vinh Tran99fd6502022-09-09 18:36:24 -0400646 "libbinderthreadstateutils",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400647 "libbluetooth-types-header",
Liz Kammer63367e12022-06-13 19:35:12 +0000648 "libcodec2",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400649 "libcodec2_headers",
650 "libcodec2_internal",
651 "libdmabufheap",
Liz Kammer5068eae2022-05-11 17:24:29 -0400652 "libgsm",
Vinh Tran99fd6502022-09-09 18:36:24 -0400653 "libgrallocusage",
654 "libgralloctypes",
655 "libnativewindow",
Vinh Tranfd446d62022-09-21 17:30:20 -0400656 "libneuralnetworks",
Sam Delmerico646dcfa2023-04-07 14:38:32 -0400657 "libneuralnetworks_static",
Vinh Tran99fd6502022-09-09 18:36:24 -0400658 "libgraphicsenv",
Liz Kammer5068eae2022-05-11 17:24:29 -0400659 "libhardware_headers",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400660 "libnativeloader-headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400661 "libnativewindow_headers",
662 "libneuralnetworks_headers",
Vinh Tran583a07d2022-09-20 17:25:34 -0400663 "libneuralnetworks_packageinfo",
Liz Kammer5068eae2022-05-11 17:24:29 -0400664 "libopus",
665 "libprocpartition",
Liz Kammer63367e12022-06-13 19:35:12 +0000666 "libruy_static",
Cole Faust6b29f592022-08-09 09:50:56 -0700667 "libandroidio",
668 "libandroidio_srcs",
Liz Kammer5068eae2022-05-11 17:24:29 -0400669 "libserviceutils",
Liz Kammer63367e12022-06-13 19:35:12 +0000670 "libsurfaceflinger_headers",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400671 "libsync",
Liz Kammer5068eae2022-05-11 17:24:29 -0400672 "libtextclassifier_hash_headers",
673 "libtextclassifier_hash_static",
Liz Kammer63367e12022-06-13 19:35:12 +0000674 "libtflite_kernel_utils",
675 "libtinyxml2",
Liz Kammer5068eae2022-05-11 17:24:29 -0400676 "libvorbisidec",
677 "media_ndk_headers",
Liz Kammer63367e12022-06-13 19:35:12 +0000678 "media_plugin_headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400679 "mediaswcodec.policy",
680 "mediaswcodec.xml",
Vinh Tran99fd6502022-09-09 18:36:24 -0400681 "neuralnetworks_types",
Vinh Tran99fd6502022-09-09 18:36:24 -0400682 "libneuralnetworks_common",
Liz Kammer63367e12022-06-13 19:35:12 +0000683 "philox_random",
Liz Kammer5068eae2022-05-11 17:24:29 -0400684 "philox_random_headers",
685 "server_configurable_flags",
Vinh Tran3cb9ade2022-10-20 12:17:42 -0400686 "service-permission-streaming-proto-sources",
Vinh Tranf19b6582022-09-21 17:01:49 -0400687 "statslog_neuralnetworks.cpp",
688 "statslog_neuralnetworks.h",
Liz Kammer5068eae2022-05-11 17:24:29 -0400689 "tensorflow_headers",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400690
Vinh Tran99fd6502022-09-09 18:36:24 -0400691 "libstagefright_bufferpool@2.0",
692 "libstagefright_bufferpool@2.0.1",
Vinh Tranc169c542022-09-13 13:13:06 -0400693 "libSurfaceFlingerProp",
Vinh Tran99fd6502022-09-09 18:36:24 -0400694
Alex Márquez Pérez Muñíz Díaz Púras Thaureauxb12ff592022-09-01 15:04:04 +0000695 // prebuilts
696 "prebuilt_stats-log-api-gen",
Romain Jobredeaux69e2d832023-10-06 11:49:20 -0400697 "prebuilt_aapt2",
Alex Márquez Pérez Muñíz Díaz Púras Thaureauxb12ff592022-09-01 15:04:04 +0000698
Jingwen Chen9009dc22022-08-04 15:26:46 +0000699 // fastboot
Jingwen Chen9009dc22022-08-04 15:26:46 +0000700 "fastboot",
701 "libfastboot",
702 "liblp",
703 "libstorage_literals_headers",
704
Liz Kammerf0ab5462023-04-04 11:38:54 -0400705 "PluginCoreLib",
706 "dagger2",
707 "dagger2-android-annotation-stubs",
708 "dagger2-bootstrap-compiler",
709 "dagger2-producers",
710 "okio-lib",
711 "setupdesign-strings",
712
Sam Delmerico24c56032022-03-28 19:53:03 +0000713 //external/avb
714 "avbtool",
715 "libavb",
716 "avb_headers",
717
Alix5918d642022-06-27 20:57:44 +0000718 //external/libxml2
719 "xmllint",
720 "libxml2",
721
Sam Delmerico24c56032022-03-28 19:53:03 +0000722 //external/fec
723 "libfec_rs",
724
Sam Delmerico24c56032022-03-28 19:53:03 +0000725 //system/extras/ext4_utils
726 "libext4_utils",
Cole Faust01243362022-06-02 12:11:12 -0700727 "mke2fs_conf",
Cole Faust17cd19c2023-06-08 12:26:42 -0700728 "mkuserimg_mke2fs",
729 "blk_alloc_to_base_fs",
Sam Delmerico24c56032022-03-28 19:53:03 +0000730
731 //system/extras/libfec
732 "libfec",
733
734 //system/extras/squashfs_utils
735 "libsquashfs_utils",
736
Sam Delmerico24c56032022-03-28 19:53:03 +0000737 //packages/apps/Car/libs/car-ui-lib/car-ui-androidx
738 // genrule dependencies for java_imports
739 "car-ui-androidx-annotation-nodeps",
740 "car-ui-androidx-collection-nodeps",
741 "car-ui-androidx-core-common-nodeps",
742 "car-ui-androidx-lifecycle-common-nodeps",
743 "car-ui-androidx-constraintlayout-solver-nodeps",
Yu Liudf4413a2022-07-23 21:24:30 -0700744
Vinh Tran444154d2022-08-16 13:10:31 -0400745 //frameworks/native/libs/input
746 "inputconstants_aidl",
Vinh Tranc3873e82022-08-23 20:33:25 -0400747
748 // needed for aidl_interface's ndk backend
749 "libbinder_ndk",
Jingwen Chen537242c2022-08-24 11:53:27 +0000750
751 "libusb",
Jingwen Chenf0616002022-09-01 14:28:55 +0000752
Jingwen Chen2247aca2022-09-09 10:47:43 +0000753 //frameworks/native/cmds/cmd
754 "libcmd",
Jingwen Chenadc07fa2022-09-21 13:13:48 +0000755
Jihoon Kang37d6d452023-08-18 18:07:38 +0000756 //system/chre
757 "chre_api",
758
Jingwen Chenadc07fa2022-09-21 13:13:48 +0000759 //system/core/fs_mgr/libdm
760 "libdm",
761
762 //system/core/fs_mgr/libfiemap
763 "libfiemap_headers",
764 "libfiemap_passthrough_srcs",
765 "libfiemap_srcs",
766
767 //system/gsid
768 "libgsi",
769 "libgsi_headers",
770
771 //system/core/libkeyutils
772 "libkeyutils",
773
Jingwen Chenadc07fa2022-09-21 13:13:48 +0000774 //bootable/recovery/otautil
775 "libotautil",
776
777 //system/vold
778 "libvold_headers",
779
780 //system/extras/libfscrypt
781 "libfscrypt",
782
783 //system/core/fs_mgr
784 "libfstab",
785
786 //bootable/recovery/fuse_sideload
787 "libfusesideload",
788
789 //system/core/fs_mgr/libfs_avb
790 "libfs_avb",
791
792 //system/core/fs_mgr
793 "libfs_mgr",
Yu Liubf7c03e2022-09-22 12:12:26 -0700794
Wonsik Kima5362872023-08-30 11:31:52 -0700795 "libcodec2_aidl",
Yu Liubf7c03e2022-09-22 12:12:26 -0700796 "libcodec2_hidl@1.0",
797 "libcodec2_hidl@1.1",
798 "libcodec2_hidl@1.2",
799 "libcodec2_hidl_plugin_stub",
800 "libcodec2_hidl_plugin",
Yu Liu41a58a92023-07-24 23:31:48 +0000801 "libcodec2_hal_common",
Yu Liubf7c03e2022-09-22 12:12:26 -0700802 "libstagefright_bufferqueue_helper_novndk",
Yu Liubf7c03e2022-09-22 12:12:26 -0700803 "libGLESv2",
804 "libEGL",
805 "libcodec2_vndk",
806 "libnativeloader_lazy",
807 "libnativeloader",
808 "libEGL_getProcAddress",
809 "libEGL_blobCache",
Vinh Tran32a98a52022-09-23 13:08:34 -0400810
Yu Liu8c981532022-09-27 12:47:26 -0700811 "mediaswcodec",
812 "libmedia_headers",
813 "libmedia_codecserviceregistrant",
814 "libsfplugin_ccodec_utils",
815 "libcodec2_soft_aacenc",
816 "libcodec2_soft_amrnbdec",
817 "libcodec2_soft_amrnbenc",
818 "libcodec2_soft_amrwbdec",
819 "libcodec2_soft_amrwbenc",
820 "libcodec2_soft_hevcdec",
821 "libcodec2_soft_hevcenc",
822 "libcodec2_soft_g711alawdec",
823 "libcodec2_soft_g711mlawdec",
824 "libcodec2_soft_mpeg2dec",
825 "libcodec2_soft_h263dec",
826 "libcodec2_soft_h263enc",
827 "libcodec2_soft_mpeg4dec",
828 "libcodec2_soft_mpeg4enc",
829 "libcodec2_soft_mp3dec",
830 "libcodec2_soft_vorbisdec",
831 "libcodec2_soft_opusdec",
832 "libcodec2_soft_opusenc",
833 "libcodec2_soft_vp8dec",
834 "libcodec2_soft_vp9dec",
835 "libcodec2_soft_av1dec_gav1",
836 "libcodec2_soft_vp8enc",
837 "libcodec2_soft_vp9enc",
838 "libcodec2_soft_rawdec",
839 "libcodec2_soft_flacdec",
840 "libcodec2_soft_flacenc",
841 "libcodec2_soft_gsmdec",
842 "libcodec2_soft_avcdec",
843 "libcodec2_soft_avcenc",
844 "libcodec2_soft_aacdec",
845 "libcodec2_soft_common",
Alix8062f4d2022-11-14 21:38:07 +0000846
847 // kotlin srcs in java libs
Alix8062f4d2022-11-14 21:38:07 +0000848 "kotlinx_atomicfu",
Alix7c8eaeb2022-11-16 15:44:55 +0000849
850 // kotlin srcs in java binary
851 "AnalyzerKt",
852 "trebuchet-core",
Alix36795a72023-01-20 16:10:52 +0000853
854 // kotlin srcs in android_library
855 "renderscript_toolkit",
Romain Jobredeaux0bffcb82023-02-03 10:15:47 -0500856
857 //kotlin srcs in android_binary
858 "MusicKotlin",
Zi Wang75a38e72023-02-15 22:52:47 -0800859
Romain Jobredeaux2eef2e12023-02-24 12:07:08 -0500860 // java_library with prebuilt sdk_version
861 "android-common",
862
Zi Wang75a38e72023-02-15 22:52:47 -0800863 // checked in current.txt for merged_txts
864 "non-updatable-current.txt",
865 "non-updatable-system-current.txt",
866 "non-updatable-module-lib-current.txt",
867 "non-updatable-system-server-current.txt",
Zi Wangb31a8332023-03-06 15:21:35 -0800868
869 // for api_fingerprint.txt generation
870 "api_fingerprint",
Alixf848bf82023-03-06 19:43:55 +0000871
Sam Delmerico9d71a842023-03-16 16:24:54 -0400872 // for building com.android.neuralnetworks
873 "libimapper_stablec",
874 "libimapper_providerutils",
Alixe5085eb2023-01-31 19:38:41 +0000875
876 // min_sdk_version in android_app
877 "CtsShimUpgrade",
Romain Jobredeauxaa6e25d2022-08-10 10:12:59 -0400878
Liz Kammerf0ab5462023-04-04 11:38:54 -0400879 "art_cmdlineparser_headers",
880
Romain Jobredeauxaa6e25d2022-08-10 10:12:59 -0400881 // Mainline Module Apps
882 "CaptivePortalLogin",
Romain Jobredeaux039fc062023-07-17 12:06:31 -0400883 "ModuleMetadata",
Sam Delmericobefbf052023-04-28 11:23:58 -0400884
885 "libstagefright_headers",
Spandan Dasebbea2a2023-05-10 02:05:43 +0000886
Romain Jobredeaux947dfa72023-06-12 15:40:35 -0400887 // Apps with JNI libs
888 "SimpleJNI",
889 "libsimplejni",
890
Spandan Dasebbea2a2023-05-10 02:05:43 +0000891 // aidl
892 "aidl",
893 "libaidl-common",
Alixb29a3cd2023-05-09 20:37:49 +0000894
Spandan Dasab5f1c52023-05-19 00:18:49 +0000895 // Used by xsd_config
896 "xsdc",
Yu Liu2c0b8902023-06-05 11:13:00 -0700897
898 // cc_test that can be run by b test
899 "binderRpcWireProtocolTest",
900 "binderUnitTest",
901 "cpu_features-bit_utils_test",
902 "liblp_test",
903 "android.hardware.audio.common.test.utility_tests",
904 "HalAudioStreamWorkerTest",
905 "libjavacore-unit-tests",
906 "NeuralNetworksTest_utils",
907 "NeuralNetworksTest_logtag",
908 "NeuralNetworksTest_operations",
909 "nanoapp_chqts_shared_tests",
910 "fakeservicemanager_test",
911 "tristate_test",
912 "binderUtilsHostTest",
913 "run_dex2oat_test",
914 "bluetooth-address-unit-tests",
Jihoon Kangc44be962023-06-06 16:35:29 +0000915
916 // for platform_compat_config
917 "process-compat-config",
Alixe2667872023-04-24 14:57:32 +0000918
919 // cc_* modules with rscript srcs
920 "rstest-latency",
921 "libRScpp_static",
922 "rs-headers",
923 "rs_script_api",
924 "libRSDispatch",
Spandan Das0766b4f2023-07-21 17:25:31 +0000925
926 // hal_unit_tests and deps
Spandan Das0766b4f2023-07-21 17:25:31 +0000927 "chre_flatbuffers",
928 "event_logger",
929 "hal_unit_tests",
yike1aaeea32023-07-26 22:19:09 +0000930
931 "merge_annotation_zips_test",
Alix289e9c62023-08-16 15:06:31 +0000932
933 // java_resources with multiple resource_dirs
934 "emma",
Spandan Das3d6ac192023-09-12 21:17:14 +0000935
936 // NDK STL
937 "ndk_libc++abi",
938 "ndk_libunwind",
939 "ndk_libc++_static",
940 "ndk_libc++_shared",
941 "ndk_system",
Jingwen Chene12c0832023-08-25 09:00:16 +0000942
943 // allowlist //prebuilts/common/misc/androidx-test/...
944 "androidx.test.runner",
945 "androidx.test.runner-nodeps",
946 "androidx.test.services.storage",
947 "androidx.test.services.storage-nodeps",
948 "androidx.test.monitor",
949 "androidx.test.monitor-nodeps",
950 "androidx.test.annotation",
951 "androidx.test.annotation-nodeps",
Spandan Das1262f352023-09-19 17:48:00 +0000952
953 // jni deps of an internal android_test (b/297405812)
Spandan Das1262f352023-09-19 17:48:00 +0000954 "libopenjdkjvmti_headers",
Zi Wang63fc0f62023-09-18 10:00:46 -0700955
956 // tradefed deps
Romain Jobredeaux3fe1edd2023-09-29 15:08:55 -0400957 "apache-commons-compress",
Zi Wang63fc0f62023-09-18 10:00:46 -0700958 "tradefed-protos",
959 "grpc-java",
960 "grpc-java-api",
961 "grpc-java-auth",
962 "grpc-java-context",
963 "grpc-java-core",
964 "grpc-java-core-inprocess",
965 "grpc-java-core-internal",
966 "grpc-java-core-util",
967 "grpc-java-protobuf",
968 "grpc-java-protobuf-lite",
969 "grpc-java-stub",
970 "grpc-java-annotation-stubs",
971 "grpc-java-annotation-stubs-srcjar",
972 "gen_annotations",
973 "opencensus-java-contrib-grpc-metrics",
974 "opencensus-java-api",
975 "gson",
976 "GsonBuildConfig.java",
977 "gson_version_generator",
Zi Wang4dbd0e82023-09-21 16:00:45 -0700978 "lab-resource-grpc",
Zi Wangaa516c52023-09-25 11:52:41 -0700979 "blueprint-deptools",
980 "protoc-gen-grpc-java-plugin",
Zi Wangaa516c52023-09-25 11:52:41 -0700981 "tf-remote-client",
Zi Wangaa516c52023-09-25 11:52:41 -0700982 "tradefed-lite",
983 "tradefed-isolation-protos",
984 "snakeyaml_patched_src_files",
985 "asuite_proto_java",
986 "tradefed-service-grpc-lib",
987 "tradefed-invocation-grpc",
988 "tradefed-external-dependencies",
989 "tradefed-dynamic-sharding-grpc",
990 "tradefed-device-manager-grpc",
991 "statsd_internal_protos",
992 "snakeyaml",
993 "loganalysis",
994 "junit-params",
995 "grpc-java-testing",
996 "grpc-java-netty-shaded",
997 "aoa-helper",
998 "test-services.apk",
999 "test-composers",
1000 "py3-stdlib-prebuilt-srcs",
1001 "platformprotos",
Zi Wangaa516c52023-09-25 11:52:41 -07001002 "test-services-normalized.apk",
Zi Wang22609332023-10-02 09:56:34 -07001003 "tradefed-common-util",
1004 "tradefed-clearcut-client",
1005 "tradefed-result-interfaces",
1006 "tradefed-device-build-interfaces",
1007 "tradefed-invocation-interfaces",
Zi Wangdbaf6a92023-10-03 09:58:34 -07001008 "tradefed-lib-core",
Spandan Dasef3fbfe2023-10-05 22:28:59 +00001009
1010 "libandroid_net_connectivity_com_android_net_module_util_jni",
1011 "libservice-connectivity",
Jingwen Chen390d4ca2023-10-12 10:00:55 +00001012
1013 "mainline_modules_sdks_test",
Yu Liu873ad352023-10-13 18:19:48 +00001014
1015 "fake_device_config",
Sam Delmerico24c56032022-03-28 19:53:03 +00001016 }
1017
1018 Bp2buildModuleTypeAlwaysConvertList = []string{
Liz Kammer01de3ac2023-09-18 13:39:06 -04001019 // go/keep-sorted start
Liz Kammer4fc71ff2023-09-18 09:11:18 -04001020 "aconfig_declarations",
1021 "aconfig_value_set",
1022 "aconfig_values",
Spandan Dasd58630f2022-09-08 01:04:22 +00001023 "aidl_interface_headers",
Zi Wangb2179e32023-01-31 15:53:30 -08001024 "bpf",
Yu Liu855cfc22023-09-14 15:10:03 -07001025 "cc_aconfig_library",
Liz Kammere0cbc982023-09-18 09:12:41 -04001026 "cc_prebuilt_library",
Liz Kammer86a407f2023-09-18 09:23:38 -04001027 "cc_prebuilt_library_headers",
Liz Kammere0cbc982023-09-18 09:12:41 -04001028 "cc_prebuilt_library_shared",
1029 "cc_prebuilt_library_static",
Zi Wang75a38e72023-02-15 22:52:47 -08001030 "combined_apis",
usta72c6c6c2023-08-30 17:18:01 -04001031 "droiddoc_exported_dir",
Yu Liuf2b94012023-09-19 15:09:10 -07001032 "java_aconfig_library",
Sam Delmerico24c56032022-03-28 19:53:03 +00001033 "java_import",
1034 "java_import_host",
Zi Wangb2179e32023-01-31 15:53:30 -08001035 "java_sdk_library",
Liz Kammer9a97a8f2023-09-18 13:36:41 -04001036 "java_sdk_library_import",
Liz Kammer4fc71ff2023-09-18 09:11:18 -04001037 "license",
1038 "linker_config",
Spandan Das319711b2023-09-19 19:04:41 +00001039 "ndk_headers",
Zi Wang4dbd0e82023-09-21 16:00:45 -07001040 "ndk_library",
Trevor Radcliffead3d1232022-09-01 16:25:10 +00001041 "sysprop_library",
Spandan Dasa7da3f02023-09-28 19:30:51 +00001042 "versioned_ndk_headers",
Spandan Das8d6bf5e2023-05-19 00:18:49 +00001043 "xsd_config",
Liz Kammer01de3ac2023-09-18 13:39:06 -04001044 // go/keep-sorted end
Sam Delmerico24c56032022-03-28 19:53:03 +00001045 }
1046
Jingwen Chen4a7bf602022-09-21 06:36:37 +00001047 // Add the names of modules that bp2build should never convert, if it is
1048 // in the package allowlist. An error will be thrown if a module must
1049 // not be here and in the alwaysConvert lists.
1050 //
1051 // For prebuilt modules (e.g. android_library_import), remember to add
1052 // the "prebuilt_" prefix to the name, so that it's differentiable from
1053 // the source versions within Soong's module graph.
Sam Delmerico24c56032022-03-28 19:53:03 +00001054 Bp2buildModuleDoNotConvertList = []string{
Spandan Das6d463cf2023-10-05 22:11:16 +00001055
Vinh Tranbcb5f572023-08-24 11:10:01 -04001056 // rust modules that have cc deps
1057 "liblogger",
1058 "libbssl_ffi",
1059 "libbssl_ffi_nostd",
1060 "pull_rust",
1061 "libstatslog_rust",
1062 "libstatslog_rust_header",
1063 "libflatbuffers",
1064 "liblog_event_list",
1065 "libminijail_rust",
1066 "libminijail_sys",
1067 "libfsverity_rs",
1068 "libtombstoned_client_rust",
1069
yike1aaeea32023-07-26 22:19:09 +00001070 // TODO(b/263326760): Failed already.
1071 "minijail_compiler_unittest",
1072 "minijail_parser_unittest",
1073
Sam Delmerico24c56032022-03-28 19:53:03 +00001074 // cc bugs
Jingwen Chenf0616002022-09-01 14:28:55 +00001075
1076 // TODO(b/198619163) module has same name as source
Jingwen Chenf0616002022-09-01 14:28:55 +00001077 "logtagd.rc",
1078
Sam Delmerico24c56032022-03-28 19:53:03 +00001079 "libgtest_ndk_c++", "libgtest_main_ndk_c++", // TODO(b/201816222): Requires sdk_version support.
Jingwen Chen537242c2022-08-24 11:53:27 +00001080
1081 // TODO(b/202876379): has arch-variant static_executable
1082 "linkerconfig",
1083 "mdnsd",
1084 "libcutils_test_static",
1085 "KernelLibcutilsTest",
1086
Liz Kammerf0ab5462023-04-04 11:38:54 -04001087 "linker", // TODO(b/228316882): cc_binary uses link_crt
1088 "versioner", // TODO(b/228313961): depends on prebuilt shared library libclang-cpp_host as a shared library, which does not supply expected providers for a shared library
Liz Kammerf0ab5462023-04-04 11:38:54 -04001089
1090 // requires host tools for apexer
Jason Wu25c69ee2023-08-24 15:40:10 -04001091 "apexer_test", "apexer_test_host_tools", "host_apex_verifier", "host-apex-verifier",
Sam Delmerico24c56032022-03-28 19:53:03 +00001092
1093 // java bugs
Jihoon Kangb06d8a52023-08-22 17:13:26 +00001094 "libbase_ndk", // TODO(b/186826477): fails to link libctscamera2_jni for device (required for CtsCameraTestCases)
1095 "bouncycastle", // TODO(b/274474005): Need support for custom system_modules.
1096 "bouncycastle-test-lib", // TODO(b/274474005): Reverse dependency of bouncycastle
Sam Delmerico24c56032022-03-28 19:53:03 +00001097
Sam Delmerico24c56032022-03-28 19:53:03 +00001098 // genrule incompatibilities
1099 "brotli-fuzzer-corpus", // TODO(b/202015218): outputs are in location incompatible with bazel genrule handling.
1100 "platform_tools_properties", "build_tools_source_properties", // TODO(b/203369847): multiple genrules in the same package creating the same file
1101
1102 // aar support
Chris Parsons9f0e5522022-12-08 14:12:54 -05001103 "prebuilt_car-ui-androidx-core-common", // TODO(b/224773339), genrule dependency creates an .aar, not a .jar
Jingwen Chen4a7bf602022-09-21 06:36:37 +00001104 // ERROR: The dependencies for the following 1 jar(s) are not complete.
1105 // 1.bazel-out/android_target-fastbuild/bin/prebuilts/tools/common/m2/_aar/robolectric-monitor-1.0.2-alpha1/classes_and_libs_merged.jar
1106 "prebuilt_robolectric-monitor-1.0.2-alpha1",
Sam Delmerico24c56032022-03-28 19:53:03 +00001107
1108 // path property for filegroups
1109 "conscrypt", // TODO(b/210751803), we don't handle path property for filegroups
1110 "conscrypt-for-host", // TODO(b/210751803), we don't handle path property for filegroups
1111 "host-libprotobuf-java-full", // TODO(b/210751803), we don't handle path property for filegroups
Sam Delmerico24c56032022-03-28 19:53:03 +00001112 "libprotobuf-internal-python-srcs", // TODO(b/210751803), we don't handle path property for filegroups
Sam Delmerico24c56032022-03-28 19:53:03 +00001113
Chris Parsonsefaa09b2023-10-13 15:25:10 +00001114 // go deps.
1115 // TODO: b/305091740 - Rely on bp2build_deps to remove these dependencies.
Jingwen Chenf50817d2022-09-21 06:46:08 +00001116 "analyze_bcpf", // depends on bpmodify a blueprint_go_binary.
Cole Faustd82f0362023-04-12 17:32:19 -07001117 "analyze_bcpf_test", // depends on bpmodify a blueprint_go_binary.
Jingwen Chenf50817d2022-09-21 06:46:08 +00001118 "host_bionic_linker_asm", // depends on extract_linker, a go binary.
1119 "host_bionic_linker_script", // depends on extract_linker, a go binary.
Jingwen Chen4a7bf602022-09-21 06:36:37 +00001120
Sam Delmerico24c56032022-03-28 19:53:03 +00001121 // rust support
1122 "libtombstoned_client_rust_bridge_code", "libtombstoned_client_wrapper", // rust conversions are not supported
1123
Liz Kammer90bfe3a2023-09-15 10:56:08 -04001124 // TODO: b/303474748 - aidl rules for java are incompatible with parcelable declarations
1125 "modules-utils-list-slice",
1126 "modules-utils-os",
1127 "modules-utils-synchronous-result-receiver",
1128
Liz Kammer09d831e2022-09-16 09:02:26 -04001129 // aidl files not created
1130 "overlayable_policy_aidl_interface",
1131
Jingwen Chen537242c2022-08-24 11:53:27 +00001132 // cc_test related.
Jingwen Chenb5edbf92023-03-20 13:17:49 +00001133 // b/274164834 "Could not open Configuration file test.cfg"
1134 "svcenc", "svcdec",
1135
Jingwen Chen537242c2022-08-24 11:53:27 +00001136 // Failing host cc_tests
Jingwen Chen537242c2022-08-24 11:53:27 +00001137 "gtest_isolated_tests",
1138 "libunwindstack_unit_test",
Jingwen Chen537242c2022-08-24 11:53:27 +00001139 "power_tests", // failing test on server, but not on host
1140
1141 // reflect: call of reflect.Value.NumField on interface Value
1142 // affects all cc_tests that depend on art_defaults
1143 "libnativebridge-tests",
1144 "libnativeloader_test",
1145 "art_libnativebridge_cts_tests",
1146 "art_standalone_libdexfile_external_tests",
1147 "art_standalone_libdexfile_support_tests",
1148 "libnativebridge-lazy-tests",
1149 "libnativebridge-test-case",
1150 "libnativebridge2-test-case",
1151 "libnativebridge3-test-case",
1152 "libnativebridge6-test-case",
1153 "libnativebridge6prezygotefork",
1154
Yu Liu9cb66d02023-07-21 17:23:35 -07001155 "libandroidfw_tests", // failing due to data path issues
Liz Kammer09d831e2022-09-16 09:02:26 -04001156
Jingwen Chena485d092023-04-20 12:34:08 +00001157 // error: overriding commands for target
1158 // `out/host/linux-x86/nativetest64/gmock_tests/gmock_tests__cc_runner_test',
1159 // previously defined at out/soong/installs-aosp_arm.mk:64919`
1160 "gmock_tests",
1161
Jingwen Chen537242c2022-08-24 11:53:27 +00001162 // cc_test with unconverted deps, or are device-only (and not verified to pass yet)
1163 "AMRWBEncTest",
Jingwen Chen537242c2022-08-24 11:53:27 +00001164 "avcdec",
1165 "avcenc",
Yu Liu1d03d172023-07-19 21:33:33 +00001166 "boringssl_test_support", //b/244431896
Jingwen Chen537242c2022-08-24 11:53:27 +00001167 "cfi_test_helper",
Jingwen Chen537242c2022-08-24 11:53:27 +00001168 "cintltst32",
1169 "cintltst64",
1170 "compare",
1171 "cpuid",
Jingwen Chen537242c2022-08-24 11:53:27 +00001172 "elftls_dlopen_ie_error_helper",
Jingwen Chen537242c2022-08-24 11:53:27 +00001173 "fdtrack_test",
1174 "google-benchmark-test",
Jingwen Chen537242c2022-08-24 11:53:27 +00001175 "gtest-typed-test_test",
Jingwen Chen537242c2022-08-24 11:53:27 +00001176 "gtest_tests",
1177 "gtest_tests_no_main",
1178 "gwp_asan_unittest",
1179 "half_test",
1180 "hashcombine_test",
1181 "hevcdec",
1182 "hevcenc",
Jingwen Chen537242c2022-08-24 11:53:27 +00001183 "i444tonv12_eg",
1184 "icu4c_sample_break",
1185 "intltest32",
1186 "intltest64",
1187 "ion-unit-tests",
1188 "jemalloc5_integrationtests",
1189 "jemalloc5_unittests",
Yu Liucb916322023-08-10 10:58:01 -07001190 "jemalloc5_stresstests", // run by run_jemalloc_tests.sh and will be deleted after V
Jingwen Chen537242c2022-08-24 11:53:27 +00001191 "libcutils_sockets_test",
Jingwen Chen537242c2022-08-24 11:53:27 +00001192 "libhwbinder_latency",
Jingwen Chenf0616002022-09-01 14:28:55 +00001193 "liblog-host-test", // failing tests
Jingwen Chen537242c2022-08-24 11:53:27 +00001194 "libminijail_test",
1195 "libminijail_unittest_gtest",
1196 "libpackagelistparser_test",
1197 "libprotobuf_vendor_suffix_test",
Jingwen Chen537242c2022-08-24 11:53:27 +00001198 "libstagefright_amrnbenc_test",
Chris Parsonsefaa09b2023-10-13 15:25:10 +00001199 "libstagefright_amrwbdec_test", // error: did not report any run
Jingwen Chen537242c2022-08-24 11:53:27 +00001200 "libstagefright_m4vh263enc_test",
Jingwen Chen537242c2022-08-24 11:53:27 +00001201 "libvndksupport-tests",
1202 "libyuv_unittest",
1203 "linker-unit-tests",
1204 "malloc_debug_system_tests",
1205 "malloc_debug_unit_tests",
1206 "malloc_hooks_system_tests",
1207 "mat_test",
1208 "mathtest",
Jingwen Chen537242c2022-08-24 11:53:27 +00001209 "memunreachable_test",
1210 "metadata_tests",
Jingwen Chen537242c2022-08-24 11:53:27 +00001211 "mpeg2dec",
1212 "mvcdec",
Jingwen Chen537242c2022-08-24 11:53:27 +00001213 "pngtest",
1214 "preinit_getauxval_test_helper",
1215 "preinit_syscall_test_helper",
1216 "psnr",
1217 "quat_test",
Jingwen Chen537242c2022-08-24 11:53:27 +00001218 "scudo_unit_tests",
Jingwen Chen537242c2022-08-24 11:53:27 +00001219 "thread_exit_cb_helper",
Jingwen Chen537242c2022-08-24 11:53:27 +00001220 "ulp",
1221 "vec_test",
1222 "yuvconstants",
1223 "yuvconvert",
Jingwen Chen537242c2022-08-24 11:53:27 +00001224
1225 // cc_test_library
1226 "clang_diagnostic_tests",
1227 "exec_linker_helper_lib",
1228 "fortify_disabled_for_tidy",
1229 "ld_config_test_helper_lib1",
1230 "ld_config_test_helper_lib2",
1231 "ld_config_test_helper_lib3",
1232 "ld_preload_test_helper_lib1",
1233 "ld_preload_test_helper_lib2",
1234 "libBionicElfTlsLoaderTests",
1235 "libBionicElfTlsTests",
1236 "libBionicElfTlsTests",
1237 "libBionicFramePointerTests",
1238 "libBionicFramePointerTests",
1239 "libBionicStandardTests",
1240 "libBionicStandardTests",
1241 "libBionicTests",
1242 "libart-broken",
1243 "libatest_simple_zip",
1244 "libcfi-test",
1245 "libcfi-test-bad",
1246 "libcrash_test",
Liz Kammerf6275092023-04-11 11:06:07 -04001247 "libcrypto_fuzz_unsafe",
Jingwen Chen537242c2022-08-24 11:53:27 +00001248 "libdl_preempt_test_1",
1249 "libdl_preempt_test_2",
1250 "libdl_test_df_1_global",
1251 "libdlext_test",
1252 "libdlext_test_different_soname",
1253 "libdlext_test_fd",
1254 "libdlext_test_norelro",
1255 "libdlext_test_recursive",
1256 "libdlext_test_zip",
Vinh Tran220fb8b2022-10-04 12:04:17 -04001257 "libdvrcommon_test",
Jingwen Chen537242c2022-08-24 11:53:27 +00001258 "libfortify1-new-tests-clang",
1259 "libfortify1-new-tests-clang",
1260 "libfortify1-tests-clang",
1261 "libfortify1-tests-clang",
1262 "libfortify2-new-tests-clang",
1263 "libfortify2-new-tests-clang",
1264 "libfortify2-tests-clang",
1265 "libfortify2-tests-clang",
1266 "libgnu-hash-table-library",
1267 "libicutest_static",
1268 "liblinker_reloc_bench_000",
1269 "liblinker_reloc_bench_001",
1270 "liblinker_reloc_bench_002",
1271 "liblinker_reloc_bench_003",
1272 "liblinker_reloc_bench_004",
1273 "liblinker_reloc_bench_005",
1274 "liblinker_reloc_bench_006",
1275 "liblinker_reloc_bench_007",
1276 "liblinker_reloc_bench_008",
1277 "liblinker_reloc_bench_009",
1278 "liblinker_reloc_bench_010",
1279 "liblinker_reloc_bench_011",
1280 "liblinker_reloc_bench_012",
1281 "liblinker_reloc_bench_013",
1282 "liblinker_reloc_bench_014",
1283 "liblinker_reloc_bench_015",
1284 "liblinker_reloc_bench_016",
1285 "liblinker_reloc_bench_017",
1286 "liblinker_reloc_bench_018",
1287 "liblinker_reloc_bench_019",
1288 "liblinker_reloc_bench_020",
1289 "liblinker_reloc_bench_021",
1290 "liblinker_reloc_bench_022",
1291 "liblinker_reloc_bench_023",
1292 "liblinker_reloc_bench_024",
1293 "liblinker_reloc_bench_025",
1294 "liblinker_reloc_bench_026",
1295 "liblinker_reloc_bench_027",
1296 "liblinker_reloc_bench_028",
1297 "liblinker_reloc_bench_029",
1298 "liblinker_reloc_bench_030",
1299 "liblinker_reloc_bench_031",
1300 "liblinker_reloc_bench_032",
1301 "liblinker_reloc_bench_033",
1302 "liblinker_reloc_bench_034",
1303 "liblinker_reloc_bench_035",
1304 "liblinker_reloc_bench_036",
1305 "liblinker_reloc_bench_037",
1306 "liblinker_reloc_bench_038",
1307 "liblinker_reloc_bench_039",
1308 "liblinker_reloc_bench_040",
1309 "liblinker_reloc_bench_041",
1310 "liblinker_reloc_bench_042",
1311 "liblinker_reloc_bench_043",
1312 "liblinker_reloc_bench_044",
1313 "liblinker_reloc_bench_045",
1314 "liblinker_reloc_bench_046",
1315 "liblinker_reloc_bench_047",
1316 "liblinker_reloc_bench_048",
1317 "liblinker_reloc_bench_049",
1318 "liblinker_reloc_bench_050",
1319 "liblinker_reloc_bench_051",
1320 "liblinker_reloc_bench_052",
1321 "liblinker_reloc_bench_053",
1322 "liblinker_reloc_bench_054",
1323 "liblinker_reloc_bench_055",
1324 "liblinker_reloc_bench_056",
1325 "liblinker_reloc_bench_057",
1326 "liblinker_reloc_bench_058",
1327 "liblinker_reloc_bench_059",
1328 "liblinker_reloc_bench_060",
1329 "liblinker_reloc_bench_061",
1330 "liblinker_reloc_bench_062",
1331 "liblinker_reloc_bench_063",
1332 "liblinker_reloc_bench_064",
1333 "liblinker_reloc_bench_065",
1334 "liblinker_reloc_bench_066",
1335 "liblinker_reloc_bench_067",
1336 "liblinker_reloc_bench_068",
1337 "liblinker_reloc_bench_069",
1338 "liblinker_reloc_bench_070",
1339 "liblinker_reloc_bench_071",
1340 "liblinker_reloc_bench_072",
1341 "liblinker_reloc_bench_073",
1342 "liblinker_reloc_bench_074",
1343 "liblinker_reloc_bench_075",
1344 "liblinker_reloc_bench_076",
1345 "liblinker_reloc_bench_077",
1346 "liblinker_reloc_bench_078",
1347 "liblinker_reloc_bench_079",
1348 "liblinker_reloc_bench_080",
1349 "liblinker_reloc_bench_081",
1350 "liblinker_reloc_bench_082",
1351 "liblinker_reloc_bench_083",
1352 "liblinker_reloc_bench_084",
1353 "liblinker_reloc_bench_085",
1354 "liblinker_reloc_bench_086",
1355 "liblinker_reloc_bench_087",
1356 "liblinker_reloc_bench_088",
1357 "liblinker_reloc_bench_089",
1358 "liblinker_reloc_bench_090",
1359 "liblinker_reloc_bench_091",
1360 "liblinker_reloc_bench_092",
1361 "liblinker_reloc_bench_093",
1362 "liblinker_reloc_bench_094",
1363 "liblinker_reloc_bench_095",
1364 "liblinker_reloc_bench_096",
1365 "liblinker_reloc_bench_097",
1366 "liblinker_reloc_bench_098",
1367 "liblinker_reloc_bench_099",
1368 "liblinker_reloc_bench_100",
1369 "liblinker_reloc_bench_101",
1370 "liblinker_reloc_bench_102",
1371 "liblinker_reloc_bench_103",
1372 "liblinker_reloc_bench_104",
1373 "liblinker_reloc_bench_105",
1374 "liblinker_reloc_bench_106",
1375 "liblinker_reloc_bench_107",
1376 "liblinker_reloc_bench_108",
1377 "liblinker_reloc_bench_109",
1378 "liblinker_reloc_bench_110",
1379 "liblinker_reloc_bench_111",
1380 "liblinker_reloc_bench_112",
1381 "liblinker_reloc_bench_113",
1382 "liblinker_reloc_bench_114",
1383 "liblinker_reloc_bench_115",
1384 "liblinker_reloc_bench_116",
1385 "liblinker_reloc_bench_117",
1386 "liblinker_reloc_bench_118",
1387 "liblinker_reloc_bench_119",
1388 "liblinker_reloc_bench_120",
1389 "liblinker_reloc_bench_121",
1390 "liblinker_reloc_bench_122",
1391 "liblinker_reloc_bench_123",
1392 "liblinker_reloc_bench_124",
1393 "liblinker_reloc_bench_125",
1394 "liblinker_reloc_bench_126",
1395 "liblinker_reloc_bench_127",
1396 "liblinker_reloc_bench_128",
1397 "liblinker_reloc_bench_129",
1398 "liblinker_reloc_bench_130",
1399 "liblinker_reloc_bench_131",
1400 "liblinker_reloc_bench_132",
1401 "liblinker_reloc_bench_133",
1402 "liblinker_reloc_bench_134",
1403 "liblinker_reloc_bench_135",
1404 "liblinker_reloc_bench_136",
1405 "liblinker_reloc_bench_137",
1406 "liblinker_reloc_bench_138",
1407 "liblinker_reloc_bench_139",
1408 "liblinker_reloc_bench_140",
1409 "liblinker_reloc_bench_141",
1410 "liblinker_reloc_bench_142",
1411 "liblinker_reloc_bench_143",
1412 "liblinker_reloc_bench_144",
1413 "liblinker_reloc_bench_145",
1414 "liblinker_reloc_bench_146",
1415 "liblinker_reloc_bench_147",
1416 "liblinker_reloc_bench_148",
1417 "liblinker_reloc_bench_149",
1418 "liblinker_reloc_bench_150",
1419 "liblinker_reloc_bench_151",
1420 "liblinker_reloc_bench_152",
1421 "liblinker_reloc_bench_153",
1422 "liblinker_reloc_bench_154",
1423 "liblinker_reloc_bench_155",
1424 "liblinker_reloc_bench_156",
1425 "liblinker_reloc_bench_157",
1426 "liblinker_reloc_bench_158",
1427 "liblinker_reloc_bench_159",
1428 "liblinker_reloc_bench_160",
1429 "liblinker_reloc_bench_161",
1430 "liblinker_reloc_bench_162",
1431 "liblinker_reloc_bench_163",
1432 "liblinker_reloc_bench_164",
1433 "liblinker_reloc_bench_165",
1434 "liblinker_reloc_bench_166",
1435 "liblinker_reloc_bench_167",
1436 "liblinker_reloc_bench_168",
1437 "libns_hidden_child_app",
1438 "libns_hidden_child_global",
1439 "libns_hidden_child_internal",
1440 "libns_hidden_child_public",
1441 "libnstest_dlopened",
1442 "libnstest_ns_a_public1",
1443 "libnstest_ns_a_public1_internal",
1444 "libnstest_ns_b_public2",
1445 "libnstest_ns_b_public3",
1446 "libnstest_private",
1447 "libnstest_private_external",
1448 "libnstest_public",
1449 "libnstest_public_internal",
1450 "libnstest_root",
1451 "libnstest_root_not_isolated",
1452 "librelocations-ANDROID_REL",
1453 "librelocations-ANDROID_RELR",
1454 "librelocations-RELR",
1455 "librelocations-fat",
1456 "libsegment_gap_inner",
1457 "libsegment_gap_outer",
Liz Kammerf6275092023-04-11 11:06:07 -04001458 "libssl_fuzz_unsafe",
Jingwen Chen537242c2022-08-24 11:53:27 +00001459 "libstatssocket_private",
1460 "libsysv-hash-table-library",
1461 "libtest_atexit",
1462 "libtest_check_order_dlsym",
1463 "libtest_check_order_dlsym_1_left",
1464 "libtest_check_order_dlsym_2_right",
1465 "libtest_check_order_dlsym_3_c",
1466 "libtest_check_order_dlsym_a",
1467 "libtest_check_order_dlsym_b",
1468 "libtest_check_order_dlsym_d",
1469 "libtest_check_order_reloc_root",
1470 "libtest_check_order_reloc_root_1",
1471 "libtest_check_order_reloc_root_2",
1472 "libtest_check_order_reloc_siblings",
1473 "libtest_check_order_reloc_siblings_1",
1474 "libtest_check_order_reloc_siblings_2",
1475 "libtest_check_order_reloc_siblings_3",
1476 "libtest_check_order_reloc_siblings_a",
1477 "libtest_check_order_reloc_siblings_b",
1478 "libtest_check_order_reloc_siblings_c",
1479 "libtest_check_order_reloc_siblings_c_1",
1480 "libtest_check_order_reloc_siblings_c_2",
1481 "libtest_check_order_reloc_siblings_d",
1482 "libtest_check_order_reloc_siblings_e",
1483 "libtest_check_order_reloc_siblings_f",
1484 "libtest_check_rtld_next_from_library",
1485 "libtest_dlopen_df_1_global",
1486 "libtest_dlopen_from_ctor",
1487 "libtest_dlopen_from_ctor_main",
1488 "libtest_dlopen_weak_undefined_func",
1489 "libtest_dlsym_df_1_global",
1490 "libtest_dlsym_from_this",
1491 "libtest_dlsym_from_this_child",
1492 "libtest_dlsym_from_this_grandchild",
1493 "libtest_dlsym_weak_func",
1494 "libtest_dt_runpath_a",
1495 "libtest_dt_runpath_b",
1496 "libtest_dt_runpath_c",
1497 "libtest_dt_runpath_d",
1498 "libtest_dt_runpath_d_zip",
1499 "libtest_dt_runpath_x",
1500 "libtest_dt_runpath_y",
1501 "libtest_elftls_dynamic",
1502 "libtest_elftls_dynamic_filler_1",
1503 "libtest_elftls_dynamic_filler_2",
1504 "libtest_elftls_dynamic_filler_3",
1505 "libtest_elftls_shared_var",
1506 "libtest_elftls_shared_var_ie",
1507 "libtest_elftls_tprel",
1508 "libtest_empty",
1509 "libtest_ifunc",
1510 "libtest_ifunc_variable",
1511 "libtest_ifunc_variable_impl",
1512 "libtest_indirect_thread_local_dtor",
1513 "libtest_init_fini_order_child",
1514 "libtest_init_fini_order_grand_child",
1515 "libtest_init_fini_order_root",
1516 "libtest_init_fini_order_root2",
1517 "libtest_missing_symbol",
1518 "libtest_missing_symbol_child_private",
1519 "libtest_missing_symbol_child_public",
1520 "libtest_missing_symbol_root",
1521 "libtest_nodelete_1",
1522 "libtest_nodelete_2",
1523 "libtest_nodelete_dt_flags_1",
1524 "libtest_pthread_atfork",
1525 "libtest_relo_check_dt_needed_order",
1526 "libtest_relo_check_dt_needed_order_1",
1527 "libtest_relo_check_dt_needed_order_2",
1528 "libtest_simple",
1529 "libtest_thread_local_dtor",
1530 "libtest_thread_local_dtor2",
1531 "libtest_two_parents_child",
1532 "libtest_two_parents_parent1",
1533 "libtest_two_parents_parent2",
1534 "libtest_versioned_lib",
1535 "libtest_versioned_libv1",
1536 "libtest_versioned_libv2",
1537 "libtest_versioned_otherlib",
1538 "libtest_versioned_otherlib_empty",
1539 "libtest_versioned_uselibv1",
1540 "libtest_versioned_uselibv2",
1541 "libtest_versioned_uselibv2_other",
1542 "libtest_versioned_uselibv3_other",
1543 "libtest_with_dependency",
1544 "libtest_with_dependency_loop",
1545 "libtest_with_dependency_loop_a",
1546 "libtest_with_dependency_loop_b",
1547 "libtest_with_dependency_loop_b_tmp",
1548 "libtest_with_dependency_loop_c",
1549 "libtestshared",
Vinh Tran583a07d2022-09-20 17:25:34 -04001550
Wei Li7d8f6182022-10-11 14:38:16 -07001551 // releasetools
Wei Li7d8f6182022-10-11 14:38:16 -07001552 "verity_utils",
1553 "check_ota_package_signature",
1554 "check_target_files_vintf",
1555 "releasetools_check_target_files_vintf",
Wei Li7d8f6182022-10-11 14:38:16 -07001556 "ota_from_target_files",
1557 "releasetools_ota_from_target_files",
Wei Li7d8f6182022-10-11 14:38:16 -07001558 "add_img_to_target_files",
1559 "releasetools_add_img_to_target_files",
1560 "fsverity_metadata_generator",
1561 "sign_target_files_apks",
1562
1563 // depends on the support of yacc file
1564 "libapplypatch",
1565 "libapplypatch_modes",
1566 "applypatch",
Yu Liu6c999ef2022-10-19 16:41:10 +00001567
1568 // TODO(b/254476335): disable the following due to this bug
1569 "libapexinfo",
1570 "libapexinfo_tests",
Colin Cross20c89f12022-12-05 16:47:44 -08001571
1572 // uses glob in $(locations)
1573 "libc_musl_sysroot",
Kevin Dagostino2c3be412023-02-07 04:10:27 +00001574
1575 // TODO(b/266459895): depends on libunwindstack
1576 "libutils_test",
Romain Jobredeaux2eef2e12023-02-24 12:07:08 -05001577
Cole Faustd82f0362023-04-12 17:32:19 -07001578 // Has dependencies on other tools like ziptool, bp2build'd data properties don't work with these tests atm
1579 "ziparchive_tests_large",
1580 "mkbootimg_test",
1581 "certify_bootimg_test",
1582
1583 // Despite being _host module types, these require devices to run
1584 "logd_integration_test",
1585 "mobly-hello-world-test",
1586 "mobly-multidevice-test",
1587
Romain Jobredeaux2eef2e12023-02-24 12:07:08 -05001588 // TODO(b/274805756): Support core_platform and current java APIs
1589 "fake-framework",
1590
1591 // TODO(b/277616982): These modules depend on private java APIs, but maybe they don't need to.
1592 "StreamingProtoTest",
1593 "textclassifierprotoslite",
1594 "styleprotoslite",
1595 "CtsPkgInstallerConstants",
1596 "guava-android-testlib",
Sam Delmericobefbf052023-04-28 11:23:58 -04001597
Wei Li74e3e002023-04-26 12:15:55 -07001598 // python_test_host with test data
1599 "sbom_writers_test",
Liz Kammer0db75202023-09-11 15:12:27 -04001600 "hidl_test",
Zi Wang65b36722023-05-23 15:18:33 -07001601
Chris Parsonsefaa09b2023-10-13 15:25:10 +00001602 // TODO(B/283193845): Remove tradefed from this list.
Zi Wang65b36722023-05-23 15:18:33 -07001603 "tradefed",
Zi Wang65b36722023-05-23 15:18:33 -07001604
Sam Delmericoa8a10862023-06-12 14:37:56 -04001605 "libprotobuf-full-test", // TODO(b/246997908): cannot convert proto_libraries which implicitly include other srcs in the same directory
1606 "libprotobuf-lite-test", // TODO(b/246997908): cannot convert proto_libraries which implicitly include other srcs in the same directory
Sam Delmerico96c15502023-06-12 16:09:09 -04001607
Jason Wu5d5a3bb2023-06-14 13:24:24 -04001608 "logcat", // TODO(b/246997908): cannot convert proto_libraries which implicitly include other srcs in the same directory
1609
Jason Wuee51c542023-06-13 14:54:56 -04001610 "expresscatalogvalidator", // TODO(b/246997908): cannot convert proto_libraries which implicitly include other srcs in the same directory
1611
Romain Jobredeaux890d6ea2023-08-23 10:53:07 -04001612 // r8 is a java_binary, which creates an implicit "r8.jar" target, but the
1613 // same package contains a "r8.jar" file which gets overshadowed by the implicit target.
1614 // We don't need this target as we're not using the Soong wrapper for now
1615 "r8",
Jihoon Kang04b7d802023-08-23 22:10:15 +00001616
Vinh Tran92260512023-09-11 10:30:13 -04001617 // TODO(b/299924782): Fix linking error
1618 "libbinder_on_trusty_mock",
1619
1620 // TODO(b/299943581): Depends on aidl filegroups with implicit headers
1621 "libdataloader_aidl-cpp",
1622 "libincremental_manager_aidl-cpp",
1623
1624 // TODO(b/299974637) Fix linking error
1625 "libbinder_rpc_unstable",
Jingwen Chene12c0832023-08-25 09:00:16 +00001626
1627 // TODO(b/297356704) sdk_version is unset.
1628 "VendorAtomCodeGenJavaTest",
1629
Chris Parsonsefaa09b2023-10-13 15:25:10 +00001630 // TODO: b/305223367 - Missing dep on android.test.base-neverlink
Jingwen Chene12c0832023-08-25 09:00:16 +00001631 "ObjenesisTck",
Spandan Das6d463cf2023-10-05 22:11:16 +00001632
1633 // TODO - b/306197073: Sets different STL for host and device variants
1634 "trace_processor_shell",
1635
1636 // TODO - b/303713102: duplicate deps added by cc_lite_proto_library
1637 "perfetto_unittests",
1638 "perfetto_integrationtests",
1639
1640 // TODO - b/306194966: Depends on an empty filegroup
1641 "libperfetto_c",
Sam Delmerico24c56032022-03-28 19:53:03 +00001642 }
1643
Chris Parsons66fc7452022-11-04 13:26:17 -04001644 // Bazel prod-mode allowlist. Modules in this list are built by Bazel
1645 // in either prod mode or staging mode.
Jingwen Chen889f2f22022-12-16 08:16:01 +00001646 ProdMixedBuildsEnabledList = []string{
Jingwen Chen01addfc2023-03-13 12:49:52 +00001647 // M5: tzdata launch
Jingwen Chen889f2f22022-12-16 08:16:01 +00001648 "com.android.tzdata",
1649 "test1_com.android.tzdata",
Jingwen Chen61342112023-04-11 08:49:01 +00001650 "test3_com.android.tzdata",
Jingwen Chen01addfc2023-03-13 12:49:52 +00001651 // M7: adbd launch
Jingwen Chen98bf5cc2022-12-14 13:27:25 +00001652 "com.android.adbd",
1653 "test_com.android.adbd",
1654 "adbd_test",
1655 "adb_crypto_test",
1656 "adb_pairing_auth_test",
1657 "adb_pairing_connection_test",
1658 "adb_tls_connection_test",
Jingwen Chen01addfc2023-03-13 12:49:52 +00001659 // M9: mixed builds for mainline trains launch
1660 "api_fingerprint",
Sam Delmerico96e53702023-04-07 15:09:37 -04001661 // M11: neuralnetworks launch
1662 "com.android.neuralnetworks",
1663 "test_com.android.neuralnetworks",
1664 "libneuralnetworks",
1665 "libneuralnetworks_static",
Trevor Radcliffe06101242023-06-29 22:30:18 +00001666 // M13: media.swcodec launch
1667 "com.android.media.swcodec",
1668 "test_com.android.media.swcodec",
1669 "libstagefright_foundation",
1670 "libcodec2_hidl@1.0",
1671 }
Yu Liub1274232023-06-21 22:37:32 +00001672
Trevor Radcliffee3c6a292023-07-07 19:29:04 +00001673 // Staging-mode allowlist. Modules in this list are only built
1674 // by Bazel with --bazel-mode-staging. This list should contain modules
1675 // which will soon be added to the prod allowlist.
1676 // It is implicit that all modules in ProdMixedBuildsEnabledList will
1677 // also be built - do not add them to this list.
1678 StagingMixedBuildsEnabledList = []string{}
1679
Yu Liue4312402023-01-18 09:15:31 -08001680 // These should be the libs that are included by the apexes in the ProdMixedBuildsEnabledList
Jingwen Chen01addfc2023-03-13 12:49:52 +00001681 ProdDclaMixedBuildsEnabledList = []string{
Yu Liue4312402023-01-18 09:15:31 -08001682 "libbase",
1683 "libc++",
1684 "libcrypto",
1685 "libcutils",
Trevor Radcliffe06101242023-06-29 22:30:18 +00001686 "libstagefright_flacdec",
1687 "libutils",
1688 }
Yu Liub1274232023-06-21 22:37:32 +00001689
Trevor Radcliffee3c6a292023-07-07 19:29:04 +00001690 // These should be the libs that are included by the apexes in the StagingMixedBuildsEnabledList
1691 StagingDclaMixedBuildsEnabledList = []string{}
1692
Yu Liue4312402023-01-18 09:15:31 -08001693 // TODO(b/269342245): Enable the rest of the DCLA libs
1694 // "libssl",
Jeongik Chae114e602023-03-19 00:12:39 +09001695
Jeongik Chab745e2e2023-04-11 14:28:43 +09001696 // The list of module types which are expected to spend lots of build time.
1697 // With `--ninja_weight_source=soong`, ninja builds these module types and deps first.
1698 HugeModuleTypePrefixMap = map[string]int{
1699 "rust_": HIGH_PRIORITIZED_WEIGHT,
1700 "droidstubs": DEFAULT_PRIORITIZED_WEIGHT,
1701 "art_": DEFAULT_PRIORITIZED_WEIGHT,
1702 "ndk_library": DEFAULT_PRIORITIZED_WEIGHT,
Jeongik Chae114e602023-03-19 00:12:39 +09001703 }
Sam Delmerico24c56032022-03-28 19:53:03 +00001704)