blob: a9e9427947507ef48de327691cc5f988c9e1b2be [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
Sam Delmerico24c56032022-03-28 19:53:03 +000040)
41
42var (
43 Bp2buildDefaultConfig = Bp2BuildConfig{
Sasha Smundak8bea2672022-08-04 13:31:14 -070044 "art": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040045 "art/libartbase": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +000046 "art/libartpalette": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040047 "art/libdexfile": Bp2BuildDefaultTrueRecursively,
48 "art/libnativebridge": Bp2BuildDefaultTrueRecursively,
49 "art/runtime": Bp2BuildDefaultTrueRecursively,
50 "art/tools": Bp2BuildDefaultTrue,
51 "bionic": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux77488af2022-11-07 16:53:19 +000052 "bootable/recovery/applypatch": Bp2BuildDefaultTrue,
Jingwen Chena0519422022-09-28 08:01:57 +000053 "bootable/recovery/minadbd": Bp2BuildDefaultTrue,
54 "bootable/recovery/minui": Bp2BuildDefaultTrue,
55 "bootable/recovery/recovery_utils": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040056 "bootable/recovery/tools/recovery_l10n": Bp2BuildDefaultTrue,
57
Cole Faust324a92e2022-08-23 15:29:05 -070058 "build/bazel": Bp2BuildDefaultTrueRecursively,
59 "build/make/target/product/security": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -070060 "build/make/tools/releasetools": Bp2BuildDefaultTrue,
Cole Faust324a92e2022-08-23 15:29:05 -070061 "build/make/tools/signapk": Bp2BuildDefaultTrue,
62 "build/make/tools/zipalign": Bp2BuildDefaultTrueRecursively,
63 "build/soong": Bp2BuildDefaultTrue,
64 "build/soong/cc/libbuildversion": Bp2BuildDefaultTrue, // Skip tests subdir
65 "build/soong/cc/ndkstubgen": Bp2BuildDefaultTrue,
66 "build/soong/cc/symbolfile": Bp2BuildDefaultTrue,
Sasha Smundak8bea2672022-08-04 13:31:14 -070067 "build/soong/licenses": Bp2BuildDefaultTrue,
Cole Faust324a92e2022-08-23 15:29:05 -070068 "build/soong/linkerconfig": Bp2BuildDefaultTrueRecursively,
69 "build/soong/scripts": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040070
71 "cts/common/device-side/nativetesthelper/jni": Bp2BuildDefaultTrueRecursively,
Jingwen Chen1ec77852022-11-07 14:36:12 +000072
73 "dalvik/tools/dexdeps": Bp2BuildDefaultTrueRecursively,
74
Romain Jobredeaux5a634d32022-07-27 10:50:12 -040075 "development/apps/DevelopmentSettings": Bp2BuildDefaultTrue,
76 "development/apps/Fallback": Bp2BuildDefaultTrue,
77 "development/apps/WidgetPreview": Bp2BuildDefaultTrue,
78 "development/samples/BasicGLSurfaceView": Bp2BuildDefaultTrue,
79 "development/samples/BluetoothChat": Bp2BuildDefaultTrue,
80 "development/samples/BrokenKeyDerivation": Bp2BuildDefaultTrue,
81 "development/samples/Compass": Bp2BuildDefaultTrue,
82 "development/samples/ContactManager": Bp2BuildDefaultTrue,
83 "development/samples/FixedGridLayout": Bp2BuildDefaultTrue,
84 "development/samples/HelloEffects": Bp2BuildDefaultTrue,
85 "development/samples/Home": Bp2BuildDefaultTrue,
86 "development/samples/HoneycombGallery": Bp2BuildDefaultTrue,
87 "development/samples/JetBoy": Bp2BuildDefaultTrue,
88 "development/samples/KeyChainDemo": Bp2BuildDefaultTrue,
89 "development/samples/LceDemo": Bp2BuildDefaultTrue,
90 "development/samples/LunarLander": Bp2BuildDefaultTrue,
91 "development/samples/MultiResolution": Bp2BuildDefaultTrue,
92 "development/samples/MultiWindow": Bp2BuildDefaultTrue,
93 "development/samples/NotePad": Bp2BuildDefaultTrue,
94 "development/samples/Obb": Bp2BuildDefaultTrue,
95 "development/samples/RSSReader": Bp2BuildDefaultTrue,
96 "development/samples/ReceiveShareDemo": Bp2BuildDefaultTrue,
97 "development/samples/SearchableDictionary": Bp2BuildDefaultTrue,
98 "development/samples/SipDemo": Bp2BuildDefaultTrue,
99 "development/samples/SkeletonApp": Bp2BuildDefaultTrue,
100 "development/samples/Snake": Bp2BuildDefaultTrue,
101 "development/samples/SpellChecker/": Bp2BuildDefaultTrueRecursively,
102 "development/samples/ThemedNavBarKeyboard": Bp2BuildDefaultTrue,
103 "development/samples/ToyVpn": Bp2BuildDefaultTrue,
104 "development/samples/TtsEngine": Bp2BuildDefaultTrue,
105 "development/samples/USB/AdbTest": Bp2BuildDefaultTrue,
106 "development/samples/USB/MissileLauncher": Bp2BuildDefaultTrue,
107 "development/samples/VoiceRecognitionService": Bp2BuildDefaultTrue,
108 "development/samples/VoicemailProviderDemo": Bp2BuildDefaultTrue,
109 "development/samples/WiFiDirectDemo": Bp2BuildDefaultTrue,
110 "development/sdk": Bp2BuildDefaultTrueRecursively,
111
112 "external/aac": Bp2BuildDefaultTrueRecursively,
113 "external/arm-optimized-routines": Bp2BuildDefaultTrueRecursively,
Sasha Smundak8bea2672022-08-04 13:31:14 -0700114 "external/auto": Bp2BuildDefaultTrue,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000115 "external/auto/android-annotation-stubs": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400116 "external/auto/common": Bp2BuildDefaultTrueRecursively,
117 "external/auto/service": Bp2BuildDefaultTrueRecursively,
118 "external/boringssl": Bp2BuildDefaultTrueRecursively,
119 "external/bouncycastle": Bp2BuildDefaultTrue,
120 "external/brotli": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -0700121 "external/bsdiff": Bp2BuildDefaultTrueRecursively,
122 "external/bzip2": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400123 "external/conscrypt": Bp2BuildDefaultTrue,
124 "external/e2fsprogs": Bp2BuildDefaultTrueRecursively,
125 "external/eigen": Bp2BuildDefaultTrueRecursively,
126 "external/erofs-utils": Bp2BuildDefaultTrueRecursively,
127 "external/error_prone": Bp2BuildDefaultTrueRecursively,
128 "external/expat": Bp2BuildDefaultTrueRecursively,
129 "external/f2fs-tools": Bp2BuildDefaultTrue,
130 "external/flac": Bp2BuildDefaultTrueRecursively,
131 "external/fmtlib": Bp2BuildDefaultTrueRecursively,
132 "external/google-benchmark": Bp2BuildDefaultTrueRecursively,
133 "external/googletest": Bp2BuildDefaultTrueRecursively,
134 "external/gwp_asan": Bp2BuildDefaultTrueRecursively,
135 "external/hamcrest": Bp2BuildDefaultTrueRecursively,
136 "external/icu": Bp2BuildDefaultTrueRecursively,
137 "external/icu/android_icu4j": Bp2BuildDefaultFalse, // java rules incomplete
138 "external/icu/icu4j": Bp2BuildDefaultFalse, // java rules incomplete
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400139 "external/jacoco": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400140 "external/jarjar": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400141 "external/javaparser": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400142 "external/javapoet": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000143 "external/javassist": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400144 "external/jemalloc_new": Bp2BuildDefaultTrueRecursively,
145 "external/jsoncpp": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux0bffcb82023-02-03 10:15:47 -0500146 "external/jsr305": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux47773342023-01-11 16:27:34 -0500147 "external/jsr330": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400148 "external/junit": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux47773342023-01-11 16:27:34 -0500149 "external/kotlinc": Bp2BuildDefaultTrueRecursively,
Vinh Tran1b6a4612022-09-30 16:36:59 -0400150 "external/libaom": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400151 "external/libavc": Bp2BuildDefaultTrueRecursively,
152 "external/libcap": Bp2BuildDefaultTrueRecursively,
153 "external/libcxx": Bp2BuildDefaultTrueRecursively,
154 "external/libcxxabi": Bp2BuildDefaultTrueRecursively,
Wei Li7d8f6182022-10-11 14:38:16 -0700155 "external/libdivsufsort": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000156 "external/libdrm": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400157 "external/libevent": Bp2BuildDefaultTrueRecursively,
158 "external/libgav1": Bp2BuildDefaultTrueRecursively,
159 "external/libhevc": Bp2BuildDefaultTrueRecursively,
160 "external/libjpeg-turbo": Bp2BuildDefaultTrueRecursively,
161 "external/libmpeg2": Bp2BuildDefaultTrueRecursively,
162 "external/libpng": Bp2BuildDefaultTrueRecursively,
Cole Faustc843b992022-08-02 18:06:50 -0700163 "external/libvpx": Bp2BuildDefaultTrueRecursively,
Cole Faust92e92e42022-08-26 16:12:42 -0700164 "external/libyuv": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400165 "external/lz4/lib": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -0700166 "external/lz4/programs": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400167 "external/lzma/C": Bp2BuildDefaultTrueRecursively,
168 "external/mdnsresponder": Bp2BuildDefaultTrueRecursively,
169 "external/minijail": Bp2BuildDefaultTrueRecursively,
Colin Cross20c89f12022-12-05 16:47:44 -0800170 "external/musl": Bp2BuildDefaultTrueRecursively,
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000171 "external/objenesis": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000172 "external/openscreen": Bp2BuildDefaultTrueRecursively,
Spandan Das6960ac12022-11-22 04:45:05 +0000173 "external/ow2-asm": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400174 "external/pcre": Bp2BuildDefaultTrueRecursively,
175 "external/protobuf": Bp2BuildDefaultTrueRecursively,
176 "external/python/six": Bp2BuildDefaultTrueRecursively,
177 "external/rappor": Bp2BuildDefaultTrueRecursively,
178 "external/scudo": Bp2BuildDefaultTrueRecursively,
179 "external/selinux/libselinux": Bp2BuildDefaultTrueRecursively,
180 "external/selinux/libsepol": Bp2BuildDefaultTrueRecursively,
Cole Faustfe2ab362022-08-26 16:55:11 -0700181 "external/speex": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400182 "external/toybox": Bp2BuildDefaultTrueRecursively,
183 "external/zlib": Bp2BuildDefaultTrueRecursively,
184 "external/zopfli": Bp2BuildDefaultTrueRecursively,
185 "external/zstd": Bp2BuildDefaultTrueRecursively,
186
Jingwen Chen1ec77852022-11-07 14:36:12 +0000187 "frameworks/av": Bp2BuildDefaultTrue,
Vinh Tran1b6a4612022-09-30 16:36:59 -0400188 "frameworks/av/media/codec2/components/aom": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000189 "frameworks/av/media/codecs": Bp2BuildDefaultTrueRecursively,
Jingwen Chenb2f584b2022-08-17 10:31:21 +0000190 "frameworks/av/media/liberror": Bp2BuildDefaultTrueRecursively,
Chris Parsons52b842a2022-12-19 11:45:23 -0500191 "frameworks/av/media/libshmem": Bp2BuildDefaultTrueRecursively,
192 "frameworks/av/media/audioaidlconversion": Bp2BuildDefaultTrueRecursively,
Jingwen Chen8ebc6202022-09-14 11:48:21 +0000193 "frameworks/av/media/module/minijail": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000194 "frameworks/av/services/minijail": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400195 "frameworks/base/libs/androidfw": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400196 "frameworks/base/media/tests/MediaDump": Bp2BuildDefaultTrue,
Sam Delmerico97bd1272022-08-25 14:45:31 -0400197 "frameworks/base/services/tests/servicestests/aidl": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400198 "frameworks/base/startop/apps/test": Bp2BuildDefaultTrue,
199 "frameworks/base/tests/appwidgets/AppWidgetHostTest": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400200 "frameworks/base/tools/aapt2": Bp2BuildDefaultTrue,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000201 "frameworks/base/tools/streaming_proto": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400202 "frameworks/native/libs/adbd_auth": Bp2BuildDefaultTrueRecursively,
203 "frameworks/native/libs/arect": Bp2BuildDefaultTrueRecursively,
Vinh Tran220fb8b2022-10-04 12:04:17 -0400204 "frameworks/native/libs/gui": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400205 "frameworks/native/libs/math": Bp2BuildDefaultTrueRecursively,
206 "frameworks/native/libs/nativebase": Bp2BuildDefaultTrueRecursively,
Vinh Tran220fb8b2022-10-04 12:04:17 -0400207 "frameworks/native/libs/vr": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400208 "frameworks/native/opengl/tests/gl2_cameraeye": Bp2BuildDefaultTrue,
209 "frameworks/native/opengl/tests/gl2_java": Bp2BuildDefaultTrue,
210 "frameworks/native/opengl/tests/testLatency": Bp2BuildDefaultTrue,
211 "frameworks/native/opengl/tests/testPauseResume": Bp2BuildDefaultTrue,
212 "frameworks/native/opengl/tests/testViewport": Bp2BuildDefaultTrue,
Chris Parsons52b842a2022-12-19 11:45:23 -0500213 "frameworks/native/libs/permission": Bp2BuildDefaultTrue,
Jingwen Chena0519422022-09-28 08:01:57 +0000214 "frameworks/native/services/batteryservice": Bp2BuildDefaultTrue,
Alex Márquez Pérez Muñíz Díaz Púras Thaureauxb12ff592022-09-01 15:04:04 +0000215 "frameworks/proto_logging/stats": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400216
Liz Kammer1c921162022-08-17 16:58:32 -0400217 "hardware/interfaces": Bp2BuildDefaultTrue,
Sam Delmericoa2cccc32023-01-05 16:53:56 -0500218 "hardware/interfaces/audio/aidl": Bp2BuildDefaultTrue,
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +0000219 "hardware/interfaces/common/aidl": Bp2BuildDefaultTrue,
Sam Delmericoa2cccc32023-01-05 16:53:56 -0500220 "hardware/interfaces/common/fmq/aidl": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400221 "hardware/interfaces/configstore/1.0": Bp2BuildDefaultTrue,
222 "hardware/interfaces/configstore/1.1": Bp2BuildDefaultTrue,
223 "hardware/interfaces/configstore/utils": Bp2BuildDefaultTrue,
224 "hardware/interfaces/graphics/allocator/2.0": Bp2BuildDefaultTrue,
225 "hardware/interfaces/graphics/allocator/3.0": Bp2BuildDefaultTrue,
226 "hardware/interfaces/graphics/allocator/4.0": Bp2BuildDefaultTrue,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000227 "hardware/interfaces/graphics/allocator/aidl": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400228 "hardware/interfaces/graphics/bufferqueue/1.0": Bp2BuildDefaultTrue,
229 "hardware/interfaces/graphics/bufferqueue/2.0": Bp2BuildDefaultTrue,
230 "hardware/interfaces/graphics/common/1.0": Bp2BuildDefaultTrue,
231 "hardware/interfaces/graphics/common/1.1": Bp2BuildDefaultTrue,
232 "hardware/interfaces/graphics/common/1.2": Bp2BuildDefaultTrue,
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +0000233 "hardware/interfaces/graphics/common/aidl": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400234 "hardware/interfaces/graphics/mapper/2.0": Bp2BuildDefaultTrue,
235 "hardware/interfaces/graphics/mapper/2.1": Bp2BuildDefaultTrue,
236 "hardware/interfaces/graphics/mapper/3.0": Bp2BuildDefaultTrue,
237 "hardware/interfaces/graphics/mapper/4.0": Bp2BuildDefaultTrue,
Jingwen Chena0519422022-09-28 08:01:57 +0000238 "hardware/interfaces/health/1.0": Bp2BuildDefaultTrue,
239 "hardware/interfaces/health/1.0/default": Bp2BuildDefaultTrue,
240 "hardware/interfaces/health/2.0": Bp2BuildDefaultTrue,
241 "hardware/interfaces/health/2.0/default": Bp2BuildDefaultTrue,
242 "hardware/interfaces/health/2.0/utils": Bp2BuildDefaultTrueRecursively,
243 "hardware/interfaces/health/2.1": Bp2BuildDefaultTrue,
244 "hardware/interfaces/health/aidl": Bp2BuildDefaultTrue,
245 "hardware/interfaces/health/utils": Bp2BuildDefaultTrueRecursively,
Liz Kammer1c921162022-08-17 16:58:32 -0400246 "hardware/interfaces/media/1.0": Bp2BuildDefaultTrue,
247 "hardware/interfaces/media/bufferpool/2.0": Bp2BuildDefaultTrue,
248 "hardware/interfaces/media/c2/1.0": Bp2BuildDefaultTrue,
249 "hardware/interfaces/media/c2/1.1": Bp2BuildDefaultTrue,
250 "hardware/interfaces/media/c2/1.2": Bp2BuildDefaultTrue,
251 "hardware/interfaces/media/omx/1.0": Bp2BuildDefaultTrue,
252 "hardware/interfaces/neuralnetworks/1.0": Bp2BuildDefaultTrue,
253 "hardware/interfaces/neuralnetworks/1.1": Bp2BuildDefaultTrue,
254 "hardware/interfaces/neuralnetworks/1.2": Bp2BuildDefaultTrue,
255 "hardware/interfaces/neuralnetworks/1.3": Bp2BuildDefaultTrue,
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +0000256 "hardware/interfaces/neuralnetworks/aidl": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400257
258 "libnativehelper": Bp2BuildDefaultTrueRecursively,
259
Alix79f853d2023-02-10 15:57:01 +0000260 "packages/apps/DevCamera": Bp2BuildDefaultTrue,
261 "packages/apps/HTMLViewer": Bp2BuildDefaultTrue,
262 "packages/apps/Protips": Bp2BuildDefaultTrue,
263 "packages/apps/SafetyRegulatoryInfo": Bp2BuildDefaultTrue,
264 "packages/apps/WallpaperPicker": Bp2BuildDefaultTrue,
265 "packages/modules/NeuralNetworks/driver/cache": Bp2BuildDefaultTrueRecursively,
266 "packages/modules/StatsD/lib/libstatssocket": Bp2BuildDefaultTrueRecursively,
267 "packages/modules/adb": Bp2BuildDefaultTrue,
268 "packages/modules/adb/apex": Bp2BuildDefaultTrue,
269 "packages/modules/adb/crypto": Bp2BuildDefaultTrueRecursively,
270 "packages/modules/adb/libs": Bp2BuildDefaultTrueRecursively,
271 "packages/modules/adb/pairing_auth": Bp2BuildDefaultTrueRecursively,
272 "packages/modules/adb/pairing_connection": Bp2BuildDefaultTrueRecursively,
273 "packages/modules/adb/proto": Bp2BuildDefaultTrueRecursively,
274 "packages/modules/adb/tls": Bp2BuildDefaultTrueRecursively,
275 "packages/modules/NetworkStack/common/captiveportal": Bp2BuildDefaultTrue,
276 "packages/providers/MediaProvider/tools/dialogs": Bp2BuildDefaultFalse, // TODO(b/242834374)
277 "packages/screensavers/Basic": Bp2BuildDefaultTrue,
278 "packages/services/Car/tests/SampleRearViewCamera": Bp2BuildDefaultFalse, // TODO(b/242834321)
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400279
Romain Jobredeaux3d516cd2022-09-07 14:24:34 +0000280 "platform_testing/tests/example": Bp2BuildDefaultTrueRecursively,
281
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400282 "prebuilts/clang/host/linux-x86": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux47773342023-01-11 16:27:34 -0500283 "prebuilts/gradle-plugin": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400284 "prebuilts/runtime/mainline/platform/sdk": Bp2BuildDefaultTrueRecursively,
Alix79f853d2023-02-10 15:57:01 +0000285 "prebuilts/sdk/current/androidx": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400286 "prebuilts/sdk/current/extras/app-toolkit": Bp2BuildDefaultTrue,
287 "prebuilts/sdk/current/support": Bp2BuildDefaultTrue,
Sasha Smundak8bea2672022-08-04 13:31:14 -0700288 "prebuilts/tools": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400289 "prebuilts/tools/common/m2": Bp2BuildDefaultTrue,
290
Alixb4e09a02022-09-27 15:36:01 +0000291 "sdk/dumpeventlog": Bp2BuildDefaultTrue,
Romain Jobredeaux77488af2022-11-07 16:53:19 +0000292 "sdk/eventanalyzer": Bp2BuildDefaultTrue,
Alixb4e09a02022-09-27 15:36:01 +0000293
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000294 "system/apex": Bp2BuildDefaultFalse, // TODO(b/207466993): flaky failures
295 "system/apex/apexer": Bp2BuildDefaultTrue,
296 "system/apex/libs": Bp2BuildDefaultTrueRecursively,
297 "system/apex/proto": Bp2BuildDefaultTrueRecursively,
298 "system/apex/tools": Bp2BuildDefaultTrueRecursively,
299 "system/core/debuggerd": Bp2BuildDefaultTrueRecursively,
300 "system/core/diagnose_usb": Bp2BuildDefaultTrueRecursively,
Jingwen Chena0519422022-09-28 08:01:57 +0000301 "system/core/healthd": Bp2BuildDefaultTrue,
302 "system/core/healthd/testdata": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000303 "system/core/libasyncio": Bp2BuildDefaultTrue,
304 "system/core/libcrypto_utils": Bp2BuildDefaultTrueRecursively,
305 "system/core/libcutils": Bp2BuildDefaultTrueRecursively,
306 "system/core/libpackagelistparser": Bp2BuildDefaultTrueRecursively,
307 "system/core/libprocessgroup": Bp2BuildDefaultTrue,
308 "system/core/libprocessgroup/cgrouprc": Bp2BuildDefaultTrue,
309 "system/core/libprocessgroup/cgrouprc_format": Bp2BuildDefaultTrue,
Jingwen Chena0519422022-09-28 08:01:57 +0000310 "system/core/libsuspend": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000311 "system/core/libsystem": Bp2BuildDefaultTrueRecursively,
Jingwen Chenf0616002022-09-01 14:28:55 +0000312 "system/core/libsysutils": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000313 "system/core/libutils": Bp2BuildDefaultTrueRecursively,
314 "system/core/libvndksupport": Bp2BuildDefaultTrueRecursively,
Wei Li7d8f6182022-10-11 14:38:16 -0700315 "system/core/mkbootfs": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000316 "system/core/property_service/libpropertyinfoparser": Bp2BuildDefaultTrueRecursively,
317 "system/core/property_service/libpropertyinfoserializer": Bp2BuildDefaultTrueRecursively,
Yu Liuf27bb3b2022-10-03 14:15:01 -0700318 "system/extras/toolchain-extras": Bp2BuildDefaultTrue,
Chris Parsons52b842a2022-12-19 11:45:23 -0500319 "system/hardware/interfaces/media": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400320 "system/incremental_delivery/incfs": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000321 "system/libartpalette": Bp2BuildDefaultTrueRecursively,
322 "system/libbase": Bp2BuildDefaultTrueRecursively,
323 "system/libfmq": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400324 "system/libhidl/libhidlmemory": Bp2BuildDefaultTrue,
325 "system/libhidl/transport": Bp2BuildDefaultTrue,
326 "system/libhidl/transport/allocator/1.0": Bp2BuildDefaultTrue,
Yu Liudf4413a2022-07-23 21:24:30 -0700327 "system/libhidl/transport/base/1.0": Bp2BuildDefaultTrue,
328 "system/libhidl/transport/manager/1.0": Bp2BuildDefaultTrue,
329 "system/libhidl/transport/manager/1.1": Bp2BuildDefaultTrue,
330 "system/libhidl/transport/manager/1.2": Bp2BuildDefaultTrue,
Liz Kammer1c921162022-08-17 16:58:32 -0400331 "system/libhidl/transport/memory/1.0": Bp2BuildDefaultTrue,
332 "system/libhidl/transport/memory/token/1.0": Bp2BuildDefaultTrue,
333 "system/libhidl/transport/safe_union/1.0": Bp2BuildDefaultTrue,
334 "system/libhidl/transport/token/1.0": Bp2BuildDefaultTrue,
335 "system/libhidl/transport/token/1.0/utils": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000336 "system/libhwbinder": Bp2BuildDefaultTrueRecursively,
337 "system/libprocinfo": Bp2BuildDefaultTrue,
338 "system/libziparchive": Bp2BuildDefaultTrueRecursively,
Jingwen Chenf0616002022-09-01 14:28:55 +0000339 "system/logging": Bp2BuildDefaultTrueRecursively,
Sasha Smundak8bea2672022-08-04 13:31:14 -0700340 "system/media": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000341 "system/media/audio": Bp2BuildDefaultTrueRecursively,
Cole Faustfe2ab362022-08-26 16:55:11 -0700342 "system/media/audio_utils": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000343 "system/memory/libion": Bp2BuildDefaultTrueRecursively,
344 "system/memory/libmemunreachable": Bp2BuildDefaultTrueRecursively,
345 "system/sepolicy/apex": Bp2BuildDefaultTrueRecursively,
Jingwen Chen537242c2022-08-24 11:53:27 +0000346 "system/testing/gtest_extras": Bp2BuildDefaultTrueRecursively,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000347 "system/timezone/apex": Bp2BuildDefaultTrueRecursively,
348 "system/timezone/output_data": Bp2BuildDefaultTrueRecursively,
Sam Delmerico8dfa46a2022-08-30 15:09:36 -0400349 "system/tools/aidl/build/tests_bp2build": Bp2BuildDefaultTrue,
Wei Li7d8f6182022-10-11 14:38:16 -0700350 "system/tools/mkbootimg": Bp2BuildDefaultTrueRecursively,
Liz Kammer09d831e2022-09-16 09:02:26 -0400351 "system/tools/sysprop": Bp2BuildDefaultTrue,
Trevor Radcliffec7ceb432022-07-13 17:10:45 +0000352 "system/unwinding/libunwindstack": Bp2BuildDefaultTrueRecursively,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400353
Romain Jobredeaux47773342023-01-11 16:27:34 -0500354 "tools/apksig": Bp2BuildDefaultTrue,
355 "tools/metalava": Bp2BuildDefaultTrue,
Romain Jobredeaux5a634d32022-07-27 10:50:12 -0400356 "tools/platform-compat/java/android/compat": Bp2BuildDefaultTrueRecursively,
357 "tools/tradefederation/prebuilts/filegroups": Bp2BuildDefaultTrueRecursively,
Sam Delmerico24c56032022-03-28 19:53:03 +0000358 }
359
360 Bp2buildKeepExistingBuildFile = map[string]bool{
361 // This is actually build/bazel/build.BAZEL symlinked to ./BUILD
362 ".":/*recursive = */ false,
363
Cole Faust324a92e2022-08-23 15:29:05 -0700364 "build/bazel":/* recursive = */ true,
Kevin Dagostino92f33d92022-11-02 20:29:07 +0000365 "build/make/core":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000366 "build/bazel_common_rules":/* recursive = */ true,
367 // build/make/tools/signapk BUILD file is generated, so build/make/tools is not recursive.
368 "build/make/tools":/* recursive = */ false,
369 "build/pesto":/* recursive = */ true,
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000370 "build/soong":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000371
372 // external/bazelbuild-rules_android/... is needed by mixed builds, otherwise mixed builds analysis fails
373 // e.g. ERROR: Analysis of target '@soong_injection//mixed_builds:buildroot' failed
374 "external/bazelbuild-rules_android":/* recursive = */ true,
Sasha Smundak9d2f1742022-08-04 13:28:38 -0700375 "external/bazelbuild-rules_license":/* recursive = */ true,
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400376 "external/bazelbuild-kotlin-rules":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000377 "external/bazel-skylib":/* recursive = */ true,
378 "external/guava":/* recursive = */ true,
Cole Faustea602c52022-08-31 14:48:26 -0700379 "external/protobuf":/* recursive = */ false,
Cole Faustde12be32022-11-19 15:14:48 -0800380 "external/python/absl-py":/* recursive = */ true,
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000381
382 // this BUILD file is globbed by //external/icu/icu4c/source:icu4c_test_data's "data/**/*".
383 "external/icu/icu4c/source/data/unidata/norm2":/* recursive = */ false,
384
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400385 "frameworks/base/tools/codegen":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000386 "frameworks/ex/common":/* recursive = */ true,
387
Romain Jobredeaux0bffcb82023-02-03 10:15:47 -0500388 // Building manually due to b/179889880: resource files cross package boundary
Sam Delmerico24c56032022-03-28 19:53:03 +0000389 "packages/apps/Music":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000390
Yu Liu56ccb1a2022-11-12 10:47:07 -0800391 "prebuilts/abi-dumps/platform":/* recursive = */ true,
392 "prebuilts/abi-dumps/ndk":/* recursive = */ true,
Romain Jobredeaux29197972022-05-30 22:02:31 -0400393 "prebuilts/bazel":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000394 "prebuilts/bundletool":/* recursive = */ true,
Cole Faustea602c52022-08-31 14:48:26 -0700395 "prebuilts/clang/host/linux-x86":/* recursive = */ false,
Yu Liu56ccb1a2022-11-12 10:47:07 -0800396 "prebuilts/clang-tools":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000397 "prebuilts/gcc":/* recursive = */ true,
Jingwen Chen23ca2d22022-05-19 09:53:56 +0000398 "prebuilts/build-tools":/* recursive = */ true,
Sam Delmerico24c56032022-03-28 19:53:03 +0000399 "prebuilts/jdk/jdk11":/* recursive = */ false,
Cole Faust7071a052022-07-29 15:58:33 -0700400 "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 +0000401 "prebuilts/sdk":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000402 "prebuilts/sdk/tools":/* recursive = */ false,
403 "prebuilts/r8":/* recursive = */ false,
Kevin Dagostino3e2da942022-11-20 07:16:47 +0000404 "prebuilts/runtime":/* recursive = */ false,
Kevin Dagostino92f33d92022-11-02 20:29:07 +0000405
Kevin Dagostino3e2da942022-11-20 07:16:47 +0000406 // not recursive due to conflicting workspace paths in tools/atest/bazel/rules
407 "tools/asuite/atest":/* recursive = */ false,
408 "tools/asuite/atest/bazel/reporter":/* recursive = */ true,
Yu Liu828c4062023-01-23 20:56:46 +0000409
410 // TODO(b/266459895): remove this and the placeholder BUILD file after re-enabling libunwindstack
411 "external/rust/crates/rustc-demangle-capi":/* recursive = */ false,
Sam Delmerico24c56032022-03-28 19:53:03 +0000412 }
413
414 Bp2buildModuleAlwaysConvertList = []string{
Liz Kammer09d831e2022-09-16 09:02:26 -0400415 "libidmap2_policies",
416 "libSurfaceFlingerProp",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400417 // cc mainline modules
Liz Kammerbe1315e2022-05-10 09:15:31 -0400418 "code_coverage.policy",
419 "code_coverage.policy.other",
420 "codec2_soft_exports",
Vinh Tran99fd6502022-09-09 18:36:24 -0400421 "codecs_g711dec",
Vinh Tran2dbc7452022-09-29 10:49:07 -0400422 "com.android.media.swcodec",
Liz Kammer5068eae2022-05-11 17:24:29 -0400423 "com.android.media.swcodec-androidManifest",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400424 "com.android.media.swcodec-ld.config.txt",
Vinh Tran2dbc7452022-09-29 10:49:07 -0400425 "com.android.media.swcodec-mediaswcodec.32rc",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400426 "com.android.media.swcodec-mediaswcodec.rc",
Liz Kammer5068eae2022-05-11 17:24:29 -0400427 "com.android.media.swcodec.certificate",
428 "com.android.media.swcodec.key",
Vinh Tranfd446d62022-09-21 17:30:20 -0400429 "com.android.neuralnetworks",
Liz Kammer5068eae2022-05-11 17:24:29 -0400430 "com.android.neuralnetworks-androidManifest",
431 "com.android.neuralnetworks.certificate",
432 "com.android.neuralnetworks.key",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400433 "flatbuffer_headers",
Vinh Tran3cb9ade2022-10-20 12:17:42 -0400434 "framework-connectivity-protos",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400435 "gemmlowp_headers",
436 "gl_headers",
Vinh Tran3cb9ade2022-10-20 12:17:42 -0400437 "ipconnectivity-proto-src",
Vinh Tran99fd6502022-09-09 18:36:24 -0400438 "libaidlcommonsupport",
Liz Kammer63367e12022-06-13 19:35:12 +0000439 "libandroid_runtime_lazy",
Liz Kammer5068eae2022-05-11 17:24:29 -0400440 "libandroid_runtime_vm_headers",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400441 "libaudioclient_aidl_conversion_util",
Vinh Tran9f6796a2022-08-16 13:10:31 -0400442 "libbinder",
443 "libbinder_device_interface_sources",
Vinh Tran444154d2022-08-16 13:10:31 -0400444 "libbinder_aidl",
Liz Kammer63367e12022-06-13 19:35:12 +0000445 "libbinder_headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400446 "libbinder_headers_platform_shared",
Vinh Tran99fd6502022-09-09 18:36:24 -0400447 "libbinderthreadstateutils",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400448 "libbluetooth-types-header",
Liz Kammer63367e12022-06-13 19:35:12 +0000449 "libcodec2",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400450 "libcodec2_headers",
451 "libcodec2_internal",
452 "libdmabufheap",
Liz Kammer5068eae2022-05-11 17:24:29 -0400453 "libgsm",
Vinh Tran99fd6502022-09-09 18:36:24 -0400454 "libgrallocusage",
455 "libgralloctypes",
456 "libnativewindow",
Vinh Tranfd446d62022-09-21 17:30:20 -0400457 "libneuralnetworks",
Vinh Tran99fd6502022-09-09 18:36:24 -0400458 "libgraphicsenv",
Liz Kammer63367e12022-06-13 19:35:12 +0000459 "libhardware",
Liz Kammer5068eae2022-05-11 17:24:29 -0400460 "libhardware_headers",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400461 "libnativeloader-headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400462 "libnativewindow_headers",
463 "libneuralnetworks_headers",
Vinh Tran583a07d2022-09-20 17:25:34 -0400464 "libneuralnetworks_packageinfo",
Liz Kammer5068eae2022-05-11 17:24:29 -0400465 "libopus",
466 "libprocpartition",
Liz Kammer63367e12022-06-13 19:35:12 +0000467 "libruy_static",
Cole Faust6b29f592022-08-09 09:50:56 -0700468 "libandroidio",
469 "libandroidio_srcs",
Liz Kammer5068eae2022-05-11 17:24:29 -0400470 "libserviceutils",
Vinh Tran99fd6502022-09-09 18:36:24 -0400471 "libstagefright_amrnbenc",
472 "libstagefright_amrnbdec",
473 "libstagefright_amrwbdec",
474 "libstagefright_amrwbenc",
475 "libstagefright_amrnb_common",
Liz Kammer5068eae2022-05-11 17:24:29 -0400476 "libstagefright_enc_common",
Vinh Tran99fd6502022-09-09 18:36:24 -0400477 "libstagefright_flacdec",
478 "libstagefright_foundation",
Liz Kammer5068eae2022-05-11 17:24:29 -0400479 "libstagefright_foundation_headers",
480 "libstagefright_headers",
Vinh Tran99fd6502022-09-09 18:36:24 -0400481 "libstagefright_m4vh263dec",
482 "libstagefright_m4vh263enc",
483 "libstagefright_mp3dec",
484 "libstagefright_mp3dec_headers",
Liz Kammer63367e12022-06-13 19:35:12 +0000485 "libsurfaceflinger_headers",
Liz Kammerdfeb1202022-05-13 17:20:20 -0400486 "libsync",
Liz Kammer5068eae2022-05-11 17:24:29 -0400487 "libtextclassifier_hash_headers",
488 "libtextclassifier_hash_static",
Liz Kammer63367e12022-06-13 19:35:12 +0000489 "libtflite_kernel_utils",
490 "libtinyxml2",
Vinh Tran99fd6502022-09-09 18:36:24 -0400491 "libui",
Liz Kammer5068eae2022-05-11 17:24:29 -0400492 "libui-types",
Liz Kammer63367e12022-06-13 19:35:12 +0000493 "libui_headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400494 "libvorbisidec",
495 "media_ndk_headers",
Liz Kammer63367e12022-06-13 19:35:12 +0000496 "media_plugin_headers",
Liz Kammer5068eae2022-05-11 17:24:29 -0400497 "mediaswcodec.policy",
498 "mediaswcodec.xml",
Vinh Tran99fd6502022-09-09 18:36:24 -0400499 "neuralnetworks_types",
Vinh Tran38534232022-09-13 18:50:31 -0400500 "neuralnetworks_utils_hal_aidl",
Vinh Tran99fd6502022-09-09 18:36:24 -0400501 "neuralnetworks_utils_hal_common",
Vinh Tran583a07d2022-09-20 17:25:34 -0400502 "neuralnetworks_utils_hal_service",
Vinh Tran99fd6502022-09-09 18:36:24 -0400503 "neuralnetworks_utils_hal_1_0",
504 "neuralnetworks_utils_hal_1_1",
505 "neuralnetworks_utils_hal_1_2",
506 "neuralnetworks_utils_hal_1_3",
507 "libneuralnetworks_common",
Vinh Tran583a07d2022-09-20 17:25:34 -0400508 // packagemanager_aidl_interface is created implicitly in packagemanager_aidl module
509 "packagemanager_aidl_interface",
Liz Kammer63367e12022-06-13 19:35:12 +0000510 "philox_random",
Liz Kammer5068eae2022-05-11 17:24:29 -0400511 "philox_random_headers",
512 "server_configurable_flags",
Vinh Tran3cb9ade2022-10-20 12:17:42 -0400513 "service-permission-streaming-proto-sources",
Vinh Tranf19b6582022-09-21 17:01:49 -0400514 "statslog_neuralnetworks.cpp",
515 "statslog_neuralnetworks.h",
Liz Kammer5068eae2022-05-11 17:24:29 -0400516 "tensorflow_headers",
Liz Kammerbe1315e2022-05-10 09:15:31 -0400517
Vinh Tran99fd6502022-09-09 18:36:24 -0400518 "libstagefright_bufferpool@2.0",
519 "libstagefright_bufferpool@2.0.1",
Vinh Tranc169c542022-09-13 13:13:06 -0400520 "libSurfaceFlingerProp",
Vinh Tran99fd6502022-09-09 18:36:24 -0400521
Alex Márquez Pérez Muñíz Díaz Púras Thaureauxb12ff592022-09-01 15:04:04 +0000522 // prebuilts
523 "prebuilt_stats-log-api-gen",
524
Jingwen Chen9009dc22022-08-04 15:26:46 +0000525 // fastboot
Jingwen Chen9009dc22022-08-04 15:26:46 +0000526 "fastboot",
527 "libfastboot",
528 "liblp",
529 "libstorage_literals_headers",
530
Sam Delmerico24c56032022-03-28 19:53:03 +0000531 //external/avb
532 "avbtool",
533 "libavb",
534 "avb_headers",
535
Alix5918d642022-06-27 20:57:44 +0000536 //external/libxml2
537 "xmllint",
538 "libxml2",
539
Sam Delmerico24c56032022-03-28 19:53:03 +0000540 //external/fec
541 "libfec_rs",
542
543 //system/core/libsparse
544 "libsparse",
545
546 //system/extras/ext4_utils
547 "libext4_utils",
Cole Faust01243362022-06-02 12:11:12 -0700548 "mke2fs_conf",
Sam Delmerico24c56032022-03-28 19:53:03 +0000549
550 //system/extras/libfec
551 "libfec",
552
553 //system/extras/squashfs_utils
554 "libsquashfs_utils",
555
556 //system/extras/verity/fec
557 "fec",
Wei Li7d8f6182022-10-11 14:38:16 -0700558 "boot_signer",
Sam Delmerico24c56032022-03-28 19:53:03 +0000559
560 //packages/apps/Car/libs/car-ui-lib/car-ui-androidx
561 // genrule dependencies for java_imports
562 "car-ui-androidx-annotation-nodeps",
563 "car-ui-androidx-collection-nodeps",
564 "car-ui-androidx-core-common-nodeps",
565 "car-ui-androidx-lifecycle-common-nodeps",
566 "car-ui-androidx-constraintlayout-solver-nodeps",
Yu Liudf4413a2022-07-23 21:24:30 -0700567
568 //system/libhidl
569 // needed by cc_hidl_library
570 "libhidlbase",
Vinh Tran444154d2022-08-16 13:10:31 -0400571
572 //frameworks/native
573 "framework_native_aidl_binder",
574 "framework_native_aidl_gui",
575
576 //frameworks/native/libs/input
577 "inputconstants_aidl",
Vinh Tranc3873e82022-08-23 20:33:25 -0400578
579 // needed for aidl_interface's ndk backend
580 "libbinder_ndk",
Jingwen Chen537242c2022-08-24 11:53:27 +0000581
582 "libusb",
Jingwen Chenf0616002022-09-01 14:28:55 +0000583
584 // needed by liblogd
585 "ILogcatManagerService_aidl",
586 "libincremental_aidl-cpp",
587 "incremental_aidl",
Jingwen Chen2247aca2022-09-09 10:47:43 +0000588
589 //frameworks/native/cmds/cmd
590 "libcmd",
Jingwen Chenadc07fa2022-09-21 13:13:48 +0000591
592 //system/core/fs_mgr/libdm
593 "libdm",
594
595 //system/core/fs_mgr/libfiemap
596 "libfiemap_headers",
597 "libfiemap_passthrough_srcs",
598 "libfiemap_srcs",
599
600 //system/gsid
601 "libgsi",
602 "libgsi_headers",
603
604 //system/core/libkeyutils
605 "libkeyutils",
606
Jingwen Chenadc07fa2022-09-21 13:13:48 +0000607 //bootable/recovery/otautil
608 "libotautil",
609
610 //system/vold
611 "libvold_headers",
612
613 //system/extras/libfscrypt
614 "libfscrypt",
615
616 //system/core/fs_mgr
617 "libfstab",
618
619 //bootable/recovery/fuse_sideload
620 "libfusesideload",
621
622 //system/core/fs_mgr/libfs_avb
623 "libfs_avb",
624
625 //system/core/fs_mgr
626 "libfs_mgr",
Yu Liubf7c03e2022-09-22 12:12:26 -0700627
628 "libcodec2_hidl@1.0",
629 "libcodec2_hidl@1.1",
630 "libcodec2_hidl@1.2",
631 "libcodec2_hidl_plugin_stub",
632 "libcodec2_hidl_plugin",
633 "libstagefright_bufferqueue_helper_novndk",
Yu Liubf7c03e2022-09-22 12:12:26 -0700634 "libGLESv2",
635 "libEGL",
636 "libcodec2_vndk",
637 "libnativeloader_lazy",
638 "libnativeloader",
639 "libEGL_getProcAddress",
640 "libEGL_blobCache",
Vinh Tran32a98a52022-09-23 13:08:34 -0400641
Yu Liu8c981532022-09-27 12:47:26 -0700642 "mediaswcodec",
643 "libmedia_headers",
644 "libmedia_codecserviceregistrant",
645 "libsfplugin_ccodec_utils",
646 "libcodec2_soft_aacenc",
647 "libcodec2_soft_amrnbdec",
648 "libcodec2_soft_amrnbenc",
649 "libcodec2_soft_amrwbdec",
650 "libcodec2_soft_amrwbenc",
651 "libcodec2_soft_hevcdec",
652 "libcodec2_soft_hevcenc",
653 "libcodec2_soft_g711alawdec",
654 "libcodec2_soft_g711mlawdec",
655 "libcodec2_soft_mpeg2dec",
656 "libcodec2_soft_h263dec",
657 "libcodec2_soft_h263enc",
658 "libcodec2_soft_mpeg4dec",
659 "libcodec2_soft_mpeg4enc",
660 "libcodec2_soft_mp3dec",
661 "libcodec2_soft_vorbisdec",
662 "libcodec2_soft_opusdec",
663 "libcodec2_soft_opusenc",
664 "libcodec2_soft_vp8dec",
665 "libcodec2_soft_vp9dec",
666 "libcodec2_soft_av1dec_gav1",
667 "libcodec2_soft_vp8enc",
668 "libcodec2_soft_vp9enc",
669 "libcodec2_soft_rawdec",
670 "libcodec2_soft_flacdec",
671 "libcodec2_soft_flacenc",
672 "libcodec2_soft_gsmdec",
673 "libcodec2_soft_avcdec",
674 "libcodec2_soft_avcenc",
675 "libcodec2_soft_aacdec",
676 "libcodec2_soft_common",
Alix8062f4d2022-11-14 21:38:07 +0000677
678 // kotlin srcs in java libs
679 "CtsPkgInstallerConstants",
680 "kotlinx_atomicfu",
Alix7c8eaeb2022-11-16 15:44:55 +0000681
682 // kotlin srcs in java binary
683 "AnalyzerKt",
684 "trebuchet-core",
Alix36795a72023-01-20 16:10:52 +0000685
686 // kotlin srcs in android_library
687 "renderscript_toolkit",
Romain Jobredeaux0bffcb82023-02-03 10:15:47 -0500688
689 //kotlin srcs in android_binary
690 "MusicKotlin",
Sam Delmerico24c56032022-03-28 19:53:03 +0000691 }
692
693 Bp2buildModuleTypeAlwaysConvertList = []string{
Spandan Dasd58630f2022-09-08 01:04:22 +0000694 "aidl_interface_headers",
Zi Wangb2179e32023-01-31 15:53:30 -0800695 "bpf",
Sasha Smundak8bea2672022-08-04 13:31:14 -0700696 "license",
Liz Kammer45faf8f2022-06-02 16:00:54 -0400697 "linker_config",
Sam Delmerico24c56032022-03-28 19:53:03 +0000698 "java_import",
699 "java_import_host",
Zi Wangb2179e32023-01-31 15:53:30 -0800700 "java_sdk_library",
Trevor Radcliffead3d1232022-09-01 16:25:10 +0000701 "sysprop_library",
Sam Delmerico24c56032022-03-28 19:53:03 +0000702 }
703
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000704 // Add the names of modules that bp2build should never convert, if it is
705 // in the package allowlist. An error will be thrown if a module must
706 // not be here and in the alwaysConvert lists.
707 //
708 // For prebuilt modules (e.g. android_library_import), remember to add
709 // the "prebuilt_" prefix to the name, so that it's differentiable from
710 // the source versions within Soong's module graph.
Sam Delmerico24c56032022-03-28 19:53:03 +0000711 Bp2buildModuleDoNotConvertList = []string{
Vinh Tran220fb8b2022-10-04 12:04:17 -0400712 // TODO(b/250876486): Created cc_aidl_library doesn't have static libs from parent cc module
713 "libgui_window_info_static",
714 "libgui", // Depends on unconverted libgui_window_info_static
715 "libdisplay", // Depends on uncovnerted libgui
716 // Depends on unconverted libdisplay
717 "libdvr_static.google",
718 "libdvr.google",
719 "libvrsensor",
720 "dvr_api-test",
721 // Depends on unconverted libandroid, libgui
722 "dvr_buffer_queue-test",
723 "dvr_display-test",
724 // Depends on unconverted libchrome
725 "pdx_benchmarks",
726 "buffer_hub_queue-test",
727 "buffer_hub_queue_producer-test",
728
Sam Delmerico24c56032022-03-28 19:53:03 +0000729 // cc bugs
Jingwen Chenf0616002022-09-01 14:28:55 +0000730 "libactivitymanager_aidl", // TODO(b/207426160): Unsupported use of aidl sources (via Dactivity_manager_procstate_aidl) in a cc_library
731
732 // TODO(b/198619163) module has same name as source
Jingwen Chenf0616002022-09-01 14:28:55 +0000733 "logtagd.rc",
734
Sam Delmerico24c56032022-03-28 19:53:03 +0000735 "libgtest_ndk_c++", "libgtest_main_ndk_c++", // TODO(b/201816222): Requires sdk_version support.
Jingwen Chen537242c2022-08-24 11:53:27 +0000736
737 // TODO(b/202876379): has arch-variant static_executable
738 "linkerconfig",
739 "mdnsd",
740 "libcutils_test_static",
741 "KernelLibcutilsTest",
742
Cole Faust7071a052022-07-29 15:58:33 -0700743 "linker", // TODO(b/228316882): cc_binary uses link_crt
Cole Faust7071a052022-07-29 15:58:33 -0700744 "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 Kammer63367e12022-06-13 19:35:12 +0000745 "art_libartbase_headers", // TODO(b/236268577): Header libraries do not support export_shared_libs_headers
746 "apexer_test", // Requires aapt2
Cole Faust91a2e102022-05-31 14:56:48 -0700747 "apexer_test_host_tools",
748 "host_apex_verifier",
Cole Faust7071a052022-07-29 15:58:33 -0700749 "tjbench", // TODO(b/240563612): Stem property
Sam Delmerico24c56032022-03-28 19:53:03 +0000750
751 // java bugs
752 "libbase_ndk", // TODO(b/186826477): fails to link libctscamera2_jni for device (required for CtsCameraTestCases)
753
754 // python protos
Cole Faust53b62092022-05-12 15:37:02 -0700755 "libprotobuf-python", // Has a handcrafted alternative
Sam Delmerico24c56032022-03-28 19:53:03 +0000756
757 // genrule incompatibilities
758 "brotli-fuzzer-corpus", // TODO(b/202015218): outputs are in location incompatible with bazel genrule handling.
759 "platform_tools_properties", "build_tools_source_properties", // TODO(b/203369847): multiple genrules in the same package creating the same file
760
761 // aar support
Chris Parsons9f0e5522022-12-08 14:12:54 -0500762 "prebuilt_car-ui-androidx-core-common", // TODO(b/224773339), genrule dependency creates an .aar, not a .jar
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000763 // ERROR: The dependencies for the following 1 jar(s) are not complete.
764 // 1.bazel-out/android_target-fastbuild/bin/prebuilts/tools/common/m2/_aar/robolectric-monitor-1.0.2-alpha1/classes_and_libs_merged.jar
765 "prebuilt_robolectric-monitor-1.0.2-alpha1",
Sam Delmerico24c56032022-03-28 19:53:03 +0000766
767 // path property for filegroups
768 "conscrypt", // TODO(b/210751803), we don't handle path property for filegroups
769 "conscrypt-for-host", // TODO(b/210751803), we don't handle path property for filegroups
770 "host-libprotobuf-java-full", // TODO(b/210751803), we don't handle path property for filegroups
Sam Delmerico24c56032022-03-28 19:53:03 +0000771 "libprotobuf-internal-python-srcs", // TODO(b/210751803), we don't handle path property for filegroups
772 "libprotobuf-java-full", // TODO(b/210751803), we don't handle path property for filegroups
773 "libprotobuf-java-util-full", // TODO(b/210751803), we don't handle path property for filegroups
Sam Delmerico79985812022-03-23 20:20:42 +0000774 "auto_value_plugin_resources", // TODO(b/210751803), we don't handle path property for filegroups
Sam Delmerico24c56032022-03-28 19:53:03 +0000775
776 // go deps:
Jingwen Chenf50817d2022-09-21 06:46:08 +0000777 "analyze_bcpf", // depends on bpmodify a blueprint_go_binary.
778 "host_bionic_linker_asm", // depends on extract_linker, a go binary.
779 "host_bionic_linker_script", // depends on extract_linker, a go binary.
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000780
781 // in cmd attribute of genrule rule //system/timezone/output_data:robolectric_tzdata: label '//system/timezone/output_data:iana/tzdata' in $(location) expression is not a declared prerequisite of this rule
782 "robolectric_tzdata",
Sam Delmerico24c56032022-03-28 19:53:03 +0000783
784 // rust support
785 "libtombstoned_client_rust_bridge_code", "libtombstoned_client_wrapper", // rust conversions are not supported
786
787 // unconverted deps
Trevor Radcliffeef9c9002022-05-13 20:55:35 +0000788 "CarHTMLViewer", // depends on unconverted modules android.car-stubs, car-ui-lib
Trevor Radcliffeef9c9002022-05-13 20:55:35 +0000789 "adb", // depends on unconverted modules: AdbWinApi, libandroidfw, libopenscreen-discovery, libopenscreen-platform-impl, libusb, bin2c_fastdeployagent, AdbWinUsbApi
790 "android_icu4j_srcgen", // depends on unconverted modules: currysrc
791 "android_icu4j_srcgen_binary", // depends on unconverted modules: android_icu4j_srcgen, currysrc
792 "apex_manifest_proto_java", // b/210751803, depends on libprotobuf-java-full
793 "art-script", // depends on unconverted modules: dalvikvm, dex2oat
794 "bin2c_fastdeployagent", // depends on unconverted modules: deployagent
Sam Delmerico24c56032022-03-28 19:53:03 +0000795 "com.android.runtime", // depends on unconverted modules: bionic-linker-config, linkerconfig
Sam Delmerico24c56032022-03-28 19:53:03 +0000796 "currysrc", // depends on unconverted modules: currysrc_org.eclipse, guavalib, jopt-simple-4.9
797 "dex2oat-script", // depends on unconverted modules: dex2oat
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000798 "generated_android_icu4j_resources", // depends on unconverted modules: android_icu4j_srcgen_binary
799 "generated_android_icu4j_test_resources", // depends on unconverted modules: android_icu4j_srcgen_binary
Sam Delmerico24c56032022-03-28 19:53:03 +0000800 "host-libprotobuf-java-nano", // b/220869005, depends on libprotobuf-java-nano
Romain Jobredeaux0dfe8d32022-09-06 16:20:09 -0400801 "jacoco-stubs", // b/245767077, depends on droidstubs
Liz Kammer6a824f62022-08-09 13:23:01 -0400802 "libapexutil", // depends on unconverted modules: apex-info-list-tinyxml
Sam Delmerico24c56032022-03-28 19:53:03 +0000803 "libart", // depends on unconverted modules: apex-info-list-tinyxml, libtinyxml2, libnativeloader-headers, heapprofd_client_api, art_operator_srcs, libcpu_features, libodrstatslog, libelffile, art_cmdlineparser_headers, cpp-define-generator-definitions, libdexfile, libnativebridge, libnativeloader, libsigchain, libartbase, libprofile, cpp-define-generator-asm-support
804 "libart-runtime-gtest", // depends on unconverted modules: libgtest_isolated, libart-compiler, libdexfile, libprofile, libartbase, libartbase-art-gtest
805 "libart_headers", // depends on unconverted modules: art_libartbase_headers
Liz Kammer3d13adc2022-08-09 09:26:54 -0400806 "libartbase-art-gtest", // depends on unconverted modules: libgtest_isolated, libart, libart-compiler, libdexfile, libprofile
807 "libartbased-art-gtest", // depends on unconverted modules: libgtest_isolated, libartd, libartd-compiler, libdexfiled, libprofiled
Sam Delmerico24c56032022-03-28 19:53:03 +0000808 "libartd", // depends on unconverted modules: art_operator_srcs, libcpu_features, libodrstatslog, libelffiled, art_cmdlineparser_headers, cpp-define-generator-definitions, libdexfiled, libnativebridge, libnativeloader, libsigchain, libartbased, libprofiled, cpp-define-generator-asm-support, apex-info-list-tinyxml, libtinyxml2, libnativeloader-headers, heapprofd_client_api
809 "libartd-runtime-gtest", // depends on unconverted modules: libgtest_isolated, libartd-compiler, libdexfiled, libprofiled, libartbased, libartbased-art-gtest
Zi Wang0a8a1292022-08-30 06:27:01 +0000810 "libdebuggerd", // depends on unconverted module: libdexfile
Sam Delmerico24c56032022-03-28 19:53:03 +0000811 "libdebuggerd_handler", // depends on unconverted module libdebuggerd_handler_core
812 "libdebuggerd_handler_core", "libdebuggerd_handler_fallback", // depends on unconverted module libdebuggerd
Sam Delmerico24c56032022-03-28 19:53:03 +0000813 "libdexfiled", // depends on unconverted modules: dexfile_operator_srcs, libartbased, libartpalette
814 "libfastdeploy_host", // depends on unconverted modules: libandroidfw, libusb, AdbWinApi
815 "libgmock_main_ndk", // depends on unconverted modules: libgtest_ndk_c++
816 "libgmock_ndk", // depends on unconverted modules: libgtest_ndk_c++
817 "libnativehelper_lazy_mts_jni", "libnativehelper_mts_jni", // depends on unconverted modules: libnativetesthelper_jni, libgmock_ndk
818 "libnativetesthelper_jni", // depends on unconverted modules: libgtest_ndk_c++
819 "libprotobuf-java-nano", // b/220869005, depends on non-public_current SDK
Vinh Tranc3873e82022-08-23 20:33:25 -0400820 "libstatslog", // depends on unconverted modules: libstatspull, statsd-aidl-ndk
Sam Delmerico24c56032022-03-28 19:53:03 +0000821 "libstatslog_art", // depends on unconverted modules: statslog_art.cpp, statslog_art.h
822 "linker_reloc_bench_main", // depends on unconverted modules: liblinker_reloc_bench_*
Sam Delmerico847178f2022-12-15 09:36:35 -0500823 "malloc-rss-benchmark", // depends on unconverted modules: libmeminfo
Sam Delmerico24c56032022-03-28 19:53:03 +0000824 "pbtombstone", "crash_dump", // depends on libdebuggerd, libunwindstack
Vinh Tranf19b6582022-09-21 17:01:49 -0400825 "robolectric-sqlite4java-0.282", // depends on unconverted modules: robolectric-sqlite4java-import, robolectric-sqlite4java-native
826 "static_crasher", // depends on unconverted modules: libdebuggerd_handler
827 "test_fips", // depends on unconverted modules: adb
828 "timezone-host", // depends on unconverted modules: art.module.api.annotations
829 "truth-host-prebuilt", // depends on unconverted modules: truth-prebuilt
830 "truth-prebuilt", // depends on unconverted modules: asm-7.0, guava
Alex Márquez Pérez Muñíz Díaz Púras Thaureauxbff2e882022-04-20 18:44:54 +0000831
Jingwen Chen5012e072022-08-04 15:04:43 +0000832 // '//bionic/libc:libc_bp2build_cc_library_static' is duplicated in the 'deps' attribute of rule
833 "toybox-static",
Wei Li81852ca2022-07-27 00:22:06 -0700834
Liz Kammer09d831e2022-09-16 09:02:26 -0400835 // aidl files not created
836 "overlayable_policy_aidl_interface",
837
Jingwen Chen4a7bf602022-09-21 06:36:37 +0000838 //prebuilts/tools/common/m2
839 // depends on //external/okio:okio-lib, which uses kotlin
840 "wire-runtime",
841
Jingwen Chena0519422022-09-28 08:01:57 +0000842 // depends on adbd_system_api_recovery, which is a unconverted `phony` module type
843 "minadbd",
844
845 // depends on android.hardware.health-V2.0-java
846 "android.hardware.health-translate-java",
847
Jingwen Chen537242c2022-08-24 11:53:27 +0000848 // cc_test related.
849 // Failing host cc_tests
850 "memunreachable_unit_test",
851 "libprocinfo_test",
852 "ziparchive-tests",
853 "gtest_isolated_tests",
854 "libunwindstack_unit_test",
855 "task_profiles_test",
856 "power_tests", // failing test on server, but not on host
857
858 // reflect: call of reflect.Value.NumField on interface Value
859 // affects all cc_tests that depend on art_defaults
860 "libnativebridge-tests",
861 "libnativeloader_test",
862 "art_libnativebridge_cts_tests",
863 "art_standalone_libdexfile_external_tests",
864 "art_standalone_libdexfile_support_tests",
865 "libnativebridge-lazy-tests",
866 "libnativebridge-test-case",
867 "libnativebridge2-test-case",
868 "libnativebridge3-test-case",
869 "libnativebridge6-test-case",
870 "libnativebridge6prezygotefork",
871
Liz Kammer09d831e2022-09-16 09:02:26 -0400872 "libandroidfw_tests", "aapt2_tests", // failing due to data path issues
873
Jingwen Chen537242c2022-08-24 11:53:27 +0000874 // cc_test with unconverted deps, or are device-only (and not verified to pass yet)
875 "AMRWBEncTest",
Jingwen Chenf0616002022-09-01 14:28:55 +0000876 "AmrnbDecoderTest", // depends on unconverted modules: libaudioutils, libsndfile
877 "AmrnbEncoderTest", // depends on unconverted modules: libaudioutils, libsndfile
878 "AmrwbDecoderTest", // depends on unconverted modules: libsndfile, libaudioutils
879 "AmrwbEncoderTest", // depends on unconverted modules: libaudioutils, libsndfile
Jingwen Chen537242c2022-08-24 11:53:27 +0000880 "Mp3DecoderTest", // depends on unconverted modules: libsndfile, libaudioutils
881 "Mpeg4H263DecoderTest", // depends on unconverted modules: libstagefright_foundation
882 "Mpeg4H263EncoderTest",
Jingwen Chen537242c2022-08-24 11:53:27 +0000883 "avcdec",
884 "avcenc",
885 "bionic-benchmarks-tests",
886 "bionic-fortify-runtime-asan-test",
887 "bionic-stress-tests",
888 "bionic-unit-tests",
889 "bionic-unit-tests-glibc",
890 "bionic-unit-tests-static",
891 "boringssl_crypto_test",
892 "boringssl_ssl_test",
893 "cfi_test_helper",
894 "cfi_test_helper2",
895 "cintltst32",
896 "cintltst64",
897 "compare",
898 "cpuid",
899 "debuggerd_test", // depends on unconverted modules: libdebuggerd
900 "elftls_dlopen_ie_error_helper",
901 "exec_linker_helper",
902 "fastdeploy_test", // depends on unconverted modules: AdbWinApi, libadb_host, libandroidfw, libfastdeploy_host, libopenscreen-discovery, libopenscreen-platform-impl, libusb
903 "fdtrack_test",
904 "google-benchmark-test",
905 "googletest-param-test-test_ndk", // depends on unconverted modules: libgtest_ndk_c++
906 "gtest-typed-test_test",
907 "gtest-typed-test_test_ndk", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
908 "gtest_ndk_tests", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
909 "gtest_ndk_tests_no_main", // depends on unconverted modules: libgtest_ndk_c++
910 "gtest_prod_test_ndk", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
911 "gtest_tests",
912 "gtest_tests_no_main",
913 "gwp_asan_unittest",
914 "half_test",
915 "hashcombine_test",
916 "hevcdec",
917 "hevcenc",
918 "hwbinderThroughputTest", // depends on unconverted modules: android.hardware.tests.libhwbinder@1.0-impl.test, android.hardware.tests.libhwbinder@1.0
919 "i444tonv12_eg",
920 "icu4c_sample_break",
921 "intltest32",
922 "intltest64",
923 "ion-unit-tests",
924 "jemalloc5_integrationtests",
925 "jemalloc5_unittests",
926 "ld_config_test_helper",
927 "ld_preload_test_helper",
928 "libBionicCtsGtestMain", // depends on unconverted modules: libgtest_isolated
929 "libBionicLoaderTests", // depends on unconverted modules: libmeminfo
930 "libapexutil_tests", // depends on unconverted modules: apex-info-list-tinyxml, libapexutil
Jingwen Chen537242c2022-08-24 11:53:27 +0000931 "libcutils_sockets_test",
932 "libexpectedutils_test",
933 "libhwbinder_latency",
Jingwen Chenf0616002022-09-01 14:28:55 +0000934 "liblog-host-test", // failing tests
Jingwen Chen537242c2022-08-24 11:53:27 +0000935 "libminijail_test",
936 "libminijail_unittest_gtest",
937 "libpackagelistparser_test",
938 "libprotobuf_vendor_suffix_test",
939 "libstagefright_amrnbdec_test", // depends on unconverted modules: libsndfile, libaudioutils
940 "libstagefright_amrnbenc_test",
941 "libstagefright_amrwbdec_test", // depends on unconverted modules: libsndfile, libaudioutils
942 "libstagefright_m4vh263enc_test",
943 "libstagefright_mp3dec_test", // depends on unconverted modules: libsndfile, libaudioutils
944 "libstatssocket_test",
945 "libvndksupport-tests",
946 "libyuv_unittest",
947 "linker-unit-tests",
948 "malloc_debug_system_tests",
949 "malloc_debug_unit_tests",
950 "malloc_hooks_system_tests",
951 "mat_test",
952 "mathtest",
953 "memunreachable_binder_test", // depends on unconverted modules: libbinder
954 "memunreachable_test",
955 "metadata_tests",
956 "minijail0_cli_unittest_gtest",
957 "mpeg2dec",
958 "mvcdec",
959 "ns_hidden_child_helper",
960 "pngtest",
961 "preinit_getauxval_test_helper",
962 "preinit_syscall_test_helper",
963 "psnr",
964 "quat_test",
965 "rappor-tests", // depends on unconverted modules: jsr305, guava
966 "scudo_unit_tests",
967 "stats-log-api-gen-test", // depends on unconverted modules: libstats_proto_host
968 "syscall_filter_unittest_gtest",
969 "sysprop_test", // depends on unconverted modules: libcom.android.sysprop.tests
970 "thread_exit_cb_helper",
971 "tls_properties_helper",
972 "ulp",
973 "vec_test",
974 "yuvconstants",
975 "yuvconvert",
976 "zipalign_tests",
Jingwen Chen537242c2022-08-24 11:53:27 +0000977
978 // cc_test_library
979 "clang_diagnostic_tests",
980 "exec_linker_helper_lib",
981 "fortify_disabled_for_tidy",
982 "ld_config_test_helper_lib1",
983 "ld_config_test_helper_lib2",
984 "ld_config_test_helper_lib3",
985 "ld_preload_test_helper_lib1",
986 "ld_preload_test_helper_lib2",
987 "libBionicElfTlsLoaderTests",
988 "libBionicElfTlsTests",
989 "libBionicElfTlsTests",
990 "libBionicFramePointerTests",
991 "libBionicFramePointerTests",
992 "libBionicStandardTests",
993 "libBionicStandardTests",
994 "libBionicTests",
995 "libart-broken",
996 "libatest_simple_zip",
997 "libcfi-test",
998 "libcfi-test-bad",
999 "libcrash_test",
1000 // "libcrypto_fuzz_unsafe",
1001 "libdl_preempt_test_1",
1002 "libdl_preempt_test_2",
1003 "libdl_test_df_1_global",
1004 "libdlext_test",
1005 "libdlext_test_different_soname",
1006 "libdlext_test_fd",
1007 "libdlext_test_norelro",
1008 "libdlext_test_recursive",
1009 "libdlext_test_zip",
Vinh Tran220fb8b2022-10-04 12:04:17 -04001010 "libdvrcommon_test",
Jingwen Chen537242c2022-08-24 11:53:27 +00001011 "libfortify1-new-tests-clang",
1012 "libfortify1-new-tests-clang",
1013 "libfortify1-tests-clang",
1014 "libfortify1-tests-clang",
1015 "libfortify2-new-tests-clang",
1016 "libfortify2-new-tests-clang",
1017 "libfortify2-tests-clang",
1018 "libfortify2-tests-clang",
1019 "libgnu-hash-table-library",
1020 "libicutest_static",
1021 "liblinker_reloc_bench_000",
1022 "liblinker_reloc_bench_001",
1023 "liblinker_reloc_bench_002",
1024 "liblinker_reloc_bench_003",
1025 "liblinker_reloc_bench_004",
1026 "liblinker_reloc_bench_005",
1027 "liblinker_reloc_bench_006",
1028 "liblinker_reloc_bench_007",
1029 "liblinker_reloc_bench_008",
1030 "liblinker_reloc_bench_009",
1031 "liblinker_reloc_bench_010",
1032 "liblinker_reloc_bench_011",
1033 "liblinker_reloc_bench_012",
1034 "liblinker_reloc_bench_013",
1035 "liblinker_reloc_bench_014",
1036 "liblinker_reloc_bench_015",
1037 "liblinker_reloc_bench_016",
1038 "liblinker_reloc_bench_017",
1039 "liblinker_reloc_bench_018",
1040 "liblinker_reloc_bench_019",
1041 "liblinker_reloc_bench_020",
1042 "liblinker_reloc_bench_021",
1043 "liblinker_reloc_bench_022",
1044 "liblinker_reloc_bench_023",
1045 "liblinker_reloc_bench_024",
1046 "liblinker_reloc_bench_025",
1047 "liblinker_reloc_bench_026",
1048 "liblinker_reloc_bench_027",
1049 "liblinker_reloc_bench_028",
1050 "liblinker_reloc_bench_029",
1051 "liblinker_reloc_bench_030",
1052 "liblinker_reloc_bench_031",
1053 "liblinker_reloc_bench_032",
1054 "liblinker_reloc_bench_033",
1055 "liblinker_reloc_bench_034",
1056 "liblinker_reloc_bench_035",
1057 "liblinker_reloc_bench_036",
1058 "liblinker_reloc_bench_037",
1059 "liblinker_reloc_bench_038",
1060 "liblinker_reloc_bench_039",
1061 "liblinker_reloc_bench_040",
1062 "liblinker_reloc_bench_041",
1063 "liblinker_reloc_bench_042",
1064 "liblinker_reloc_bench_043",
1065 "liblinker_reloc_bench_044",
1066 "liblinker_reloc_bench_045",
1067 "liblinker_reloc_bench_046",
1068 "liblinker_reloc_bench_047",
1069 "liblinker_reloc_bench_048",
1070 "liblinker_reloc_bench_049",
1071 "liblinker_reloc_bench_050",
1072 "liblinker_reloc_bench_051",
1073 "liblinker_reloc_bench_052",
1074 "liblinker_reloc_bench_053",
1075 "liblinker_reloc_bench_054",
1076 "liblinker_reloc_bench_055",
1077 "liblinker_reloc_bench_056",
1078 "liblinker_reloc_bench_057",
1079 "liblinker_reloc_bench_058",
1080 "liblinker_reloc_bench_059",
1081 "liblinker_reloc_bench_060",
1082 "liblinker_reloc_bench_061",
1083 "liblinker_reloc_bench_062",
1084 "liblinker_reloc_bench_063",
1085 "liblinker_reloc_bench_064",
1086 "liblinker_reloc_bench_065",
1087 "liblinker_reloc_bench_066",
1088 "liblinker_reloc_bench_067",
1089 "liblinker_reloc_bench_068",
1090 "liblinker_reloc_bench_069",
1091 "liblinker_reloc_bench_070",
1092 "liblinker_reloc_bench_071",
1093 "liblinker_reloc_bench_072",
1094 "liblinker_reloc_bench_073",
1095 "liblinker_reloc_bench_074",
1096 "liblinker_reloc_bench_075",
1097 "liblinker_reloc_bench_076",
1098 "liblinker_reloc_bench_077",
1099 "liblinker_reloc_bench_078",
1100 "liblinker_reloc_bench_079",
1101 "liblinker_reloc_bench_080",
1102 "liblinker_reloc_bench_081",
1103 "liblinker_reloc_bench_082",
1104 "liblinker_reloc_bench_083",
1105 "liblinker_reloc_bench_084",
1106 "liblinker_reloc_bench_085",
1107 "liblinker_reloc_bench_086",
1108 "liblinker_reloc_bench_087",
1109 "liblinker_reloc_bench_088",
1110 "liblinker_reloc_bench_089",
1111 "liblinker_reloc_bench_090",
1112 "liblinker_reloc_bench_091",
1113 "liblinker_reloc_bench_092",
1114 "liblinker_reloc_bench_093",
1115 "liblinker_reloc_bench_094",
1116 "liblinker_reloc_bench_095",
1117 "liblinker_reloc_bench_096",
1118 "liblinker_reloc_bench_097",
1119 "liblinker_reloc_bench_098",
1120 "liblinker_reloc_bench_099",
1121 "liblinker_reloc_bench_100",
1122 "liblinker_reloc_bench_101",
1123 "liblinker_reloc_bench_102",
1124 "liblinker_reloc_bench_103",
1125 "liblinker_reloc_bench_104",
1126 "liblinker_reloc_bench_105",
1127 "liblinker_reloc_bench_106",
1128 "liblinker_reloc_bench_107",
1129 "liblinker_reloc_bench_108",
1130 "liblinker_reloc_bench_109",
1131 "liblinker_reloc_bench_110",
1132 "liblinker_reloc_bench_111",
1133 "liblinker_reloc_bench_112",
1134 "liblinker_reloc_bench_113",
1135 "liblinker_reloc_bench_114",
1136 "liblinker_reloc_bench_115",
1137 "liblinker_reloc_bench_116",
1138 "liblinker_reloc_bench_117",
1139 "liblinker_reloc_bench_118",
1140 "liblinker_reloc_bench_119",
1141 "liblinker_reloc_bench_120",
1142 "liblinker_reloc_bench_121",
1143 "liblinker_reloc_bench_122",
1144 "liblinker_reloc_bench_123",
1145 "liblinker_reloc_bench_124",
1146 "liblinker_reloc_bench_125",
1147 "liblinker_reloc_bench_126",
1148 "liblinker_reloc_bench_127",
1149 "liblinker_reloc_bench_128",
1150 "liblinker_reloc_bench_129",
1151 "liblinker_reloc_bench_130",
1152 "liblinker_reloc_bench_131",
1153 "liblinker_reloc_bench_132",
1154 "liblinker_reloc_bench_133",
1155 "liblinker_reloc_bench_134",
1156 "liblinker_reloc_bench_135",
1157 "liblinker_reloc_bench_136",
1158 "liblinker_reloc_bench_137",
1159 "liblinker_reloc_bench_138",
1160 "liblinker_reloc_bench_139",
1161 "liblinker_reloc_bench_140",
1162 "liblinker_reloc_bench_141",
1163 "liblinker_reloc_bench_142",
1164 "liblinker_reloc_bench_143",
1165 "liblinker_reloc_bench_144",
1166 "liblinker_reloc_bench_145",
1167 "liblinker_reloc_bench_146",
1168 "liblinker_reloc_bench_147",
1169 "liblinker_reloc_bench_148",
1170 "liblinker_reloc_bench_149",
1171 "liblinker_reloc_bench_150",
1172 "liblinker_reloc_bench_151",
1173 "liblinker_reloc_bench_152",
1174 "liblinker_reloc_bench_153",
1175 "liblinker_reloc_bench_154",
1176 "liblinker_reloc_bench_155",
1177 "liblinker_reloc_bench_156",
1178 "liblinker_reloc_bench_157",
1179 "liblinker_reloc_bench_158",
1180 "liblinker_reloc_bench_159",
1181 "liblinker_reloc_bench_160",
1182 "liblinker_reloc_bench_161",
1183 "liblinker_reloc_bench_162",
1184 "liblinker_reloc_bench_163",
1185 "liblinker_reloc_bench_164",
1186 "liblinker_reloc_bench_165",
1187 "liblinker_reloc_bench_166",
1188 "liblinker_reloc_bench_167",
1189 "liblinker_reloc_bench_168",
1190 "libns_hidden_child_app",
1191 "libns_hidden_child_global",
1192 "libns_hidden_child_internal",
1193 "libns_hidden_child_public",
1194 "libnstest_dlopened",
1195 "libnstest_ns_a_public1",
1196 "libnstest_ns_a_public1_internal",
1197 "libnstest_ns_b_public2",
1198 "libnstest_ns_b_public3",
1199 "libnstest_private",
1200 "libnstest_private_external",
1201 "libnstest_public",
1202 "libnstest_public_internal",
1203 "libnstest_root",
1204 "libnstest_root_not_isolated",
1205 "librelocations-ANDROID_REL",
1206 "librelocations-ANDROID_RELR",
1207 "librelocations-RELR",
1208 "librelocations-fat",
1209 "libsegment_gap_inner",
1210 "libsegment_gap_outer",
1211 // "libssl_fuzz_unsafe",
1212 "libstatssocket_private",
1213 "libsysv-hash-table-library",
1214 "libtest_atexit",
1215 "libtest_check_order_dlsym",
1216 "libtest_check_order_dlsym_1_left",
1217 "libtest_check_order_dlsym_2_right",
1218 "libtest_check_order_dlsym_3_c",
1219 "libtest_check_order_dlsym_a",
1220 "libtest_check_order_dlsym_b",
1221 "libtest_check_order_dlsym_d",
1222 "libtest_check_order_reloc_root",
1223 "libtest_check_order_reloc_root_1",
1224 "libtest_check_order_reloc_root_2",
1225 "libtest_check_order_reloc_siblings",
1226 "libtest_check_order_reloc_siblings_1",
1227 "libtest_check_order_reloc_siblings_2",
1228 "libtest_check_order_reloc_siblings_3",
1229 "libtest_check_order_reloc_siblings_a",
1230 "libtest_check_order_reloc_siblings_b",
1231 "libtest_check_order_reloc_siblings_c",
1232 "libtest_check_order_reloc_siblings_c_1",
1233 "libtest_check_order_reloc_siblings_c_2",
1234 "libtest_check_order_reloc_siblings_d",
1235 "libtest_check_order_reloc_siblings_e",
1236 "libtest_check_order_reloc_siblings_f",
1237 "libtest_check_rtld_next_from_library",
1238 "libtest_dlopen_df_1_global",
1239 "libtest_dlopen_from_ctor",
1240 "libtest_dlopen_from_ctor_main",
1241 "libtest_dlopen_weak_undefined_func",
1242 "libtest_dlsym_df_1_global",
1243 "libtest_dlsym_from_this",
1244 "libtest_dlsym_from_this_child",
1245 "libtest_dlsym_from_this_grandchild",
1246 "libtest_dlsym_weak_func",
1247 "libtest_dt_runpath_a",
1248 "libtest_dt_runpath_b",
1249 "libtest_dt_runpath_c",
1250 "libtest_dt_runpath_d",
1251 "libtest_dt_runpath_d_zip",
1252 "libtest_dt_runpath_x",
1253 "libtest_dt_runpath_y",
1254 "libtest_elftls_dynamic",
1255 "libtest_elftls_dynamic_filler_1",
1256 "libtest_elftls_dynamic_filler_2",
1257 "libtest_elftls_dynamic_filler_3",
1258 "libtest_elftls_shared_var",
1259 "libtest_elftls_shared_var_ie",
1260 "libtest_elftls_tprel",
1261 "libtest_empty",
1262 "libtest_ifunc",
1263 "libtest_ifunc_variable",
1264 "libtest_ifunc_variable_impl",
1265 "libtest_indirect_thread_local_dtor",
1266 "libtest_init_fini_order_child",
1267 "libtest_init_fini_order_grand_child",
1268 "libtest_init_fini_order_root",
1269 "libtest_init_fini_order_root2",
1270 "libtest_missing_symbol",
1271 "libtest_missing_symbol_child_private",
1272 "libtest_missing_symbol_child_public",
1273 "libtest_missing_symbol_root",
1274 "libtest_nodelete_1",
1275 "libtest_nodelete_2",
1276 "libtest_nodelete_dt_flags_1",
1277 "libtest_pthread_atfork",
1278 "libtest_relo_check_dt_needed_order",
1279 "libtest_relo_check_dt_needed_order_1",
1280 "libtest_relo_check_dt_needed_order_2",
1281 "libtest_simple",
1282 "libtest_thread_local_dtor",
1283 "libtest_thread_local_dtor2",
1284 "libtest_two_parents_child",
1285 "libtest_two_parents_parent1",
1286 "libtest_two_parents_parent2",
1287 "libtest_versioned_lib",
1288 "libtest_versioned_libv1",
1289 "libtest_versioned_libv2",
1290 "libtest_versioned_otherlib",
1291 "libtest_versioned_otherlib_empty",
1292 "libtest_versioned_uselibv1",
1293 "libtest_versioned_uselibv2",
1294 "libtest_versioned_uselibv2_other",
1295 "libtest_versioned_uselibv3_other",
1296 "libtest_with_dependency",
1297 "libtest_with_dependency_loop",
1298 "libtest_with_dependency_loop_a",
1299 "libtest_with_dependency_loop_b",
1300 "libtest_with_dependency_loop_b_tmp",
1301 "libtest_with_dependency_loop_c",
1302 "libtestshared",
Vinh Tran583a07d2022-09-20 17:25:34 -04001303
1304 // depends on unconverted libprotobuf-java-nano
1305 "dnsresolverprotosnano",
1306 "launcherprotosnano",
1307 "datastallprotosnano",
1308 "devicepolicyprotosnano",
Wei Li7d8f6182022-10-11 14:38:16 -07001309 "ota_metadata_proto_java",
1310 "merge_ota",
1311
1312 // releasetools
1313 "releasetools_fsverity_metadata_generator",
1314 "verity_utils",
1315 "check_ota_package_signature",
1316 "check_target_files_vintf",
1317 "releasetools_check_target_files_vintf",
1318 "releasetools_verity_utils",
1319 "build_image",
1320 "ota_from_target_files",
1321 "releasetools_ota_from_target_files",
1322 "releasetools_build_image",
1323 "add_img_to_target_files",
1324 "releasetools_add_img_to_target_files",
1325 "fsverity_metadata_generator",
1326 "sign_target_files_apks",
1327
1328 // depends on the support of yacc file
1329 "libapplypatch",
1330 "libapplypatch_modes",
1331 "applypatch",
Yu Liu6c999ef2022-10-19 16:41:10 +00001332
1333 // TODO(b/254476335): disable the following due to this bug
1334 "libapexinfo",
1335 "libapexinfo_tests",
Colin Cross20c89f12022-12-05 16:47:44 -08001336
1337 // uses glob in $(locations)
1338 "libc_musl_sysroot",
Kevin Dagostino2c3be412023-02-07 04:10:27 +00001339
1340 // TODO(b/266459895): depends on libunwindstack
1341 "libutils_test",
Sam Delmerico24c56032022-03-28 19:53:03 +00001342 }
1343
Sam Delmerico24c56032022-03-28 19:53:03 +00001344 MixedBuildsDisabledList = []string{
Liz Kammer63367e12022-06-13 19:35:12 +00001345 "libruy_static", "libtflite_kernel_utils", // TODO(b/237315968); Depend on prebuilt stl, not from source
1346
Sam Delmerico24c56032022-03-28 19:53:03 +00001347 "art_libdexfile_dex_instruction_list_header", // breaks libart_mterp.armng, header not found
1348
1349 "libbrotli", // http://b/198585397, ld.lld: error: bionic/libc/arch-arm64/generic/bionic/memmove.S:95:(.text+0x10): relocation R_AARCH64_CONDBR19 out of range: -1404176 is not in [-1048576, 1048575]; references __memcpy
1350 "minijail_constants_json", // http://b/200899432, bazel-built cc_genrule does not work in mixed build when it is a dependency of another soong module.
1351
1352 "cap_names.h", // TODO(b/204913827) runfiles need to be handled in mixed builds
1353 "libcap", // TODO(b/204913827) runfiles need to be handled in mixed builds
1354 "libprotobuf-cpp-full", "libprotobuf-cpp-lite", // Unsupported product&vendor suffix. b/204811222 and b/204810610.
1355
1356 // Depends on libprotobuf-cpp-*
1357 "libadb_pairing_connection",
1358 "libadb_pairing_connection_static",
1359 "libadb_pairing_server", "libadb_pairing_server_static",
1360
Alex Márquez Pérez Muñíz Díaz Púras Thaureauxa56e9702022-02-23 18:39:59 -05001361 // TODO(b/240563612) Needing `stem` selection support for cc_binary
Sam Delmerico24c56032022-03-28 19:53:03 +00001362 "crasher",
Sam Delmerico277795c2022-02-25 17:04:37 +00001363
1364 // java_import[_host] issues
1365 // tradefed prebuilts depend on libprotobuf
1366 "prebuilt_tradefed",
1367 "prebuilt_tradefed-test-framework",
1368 // handcrafted BUILD.bazel files in //prebuilts/...
1369 "prebuilt_r8lib-prebuilt",
1370 "prebuilt_sdk-core-lambda-stubs",
1371 "prebuilt_android-support-collections-nodeps",
1372 "prebuilt_android-arch-core-common-nodeps",
1373 "prebuilt_android-arch-lifecycle-common-java8-nodeps",
1374 "prebuilt_android-arch-lifecycle-common-nodeps",
1375 "prebuilt_android-support-annotations-nodeps",
1376 "prebuilt_android-arch-paging-common-nodeps",
1377 "prebuilt_android-arch-room-common-nodeps",
Sam Delmerico0b66fb22022-08-23 15:17:29 -04001378 // TODO(b/217750501) exclude_dirs property not supported
1379 "prebuilt_kotlin-reflect",
1380 "prebuilt_kotlin-stdlib",
1381 "prebuilt_kotlin-stdlib-jdk7",
1382 "prebuilt_kotlin-stdlib-jdk8",
1383 "prebuilt_kotlin-test",
1384 // TODO(b/217750501) exclude_files property not supported
Sam Delmerico0b66fb22022-08-23 15:17:29 -04001385 "prebuilt_currysrc_org.eclipse",
Yu Liu828c4062023-01-23 20:56:46 +00001386
1387 // TODO(b/266459895): re-enable libunwindstack
1388 "libunwindstack",
1389 "libunwindstack_stdout_log",
1390 "libunwindstack_no_dex",
1391 "libunwindstack_utils",
1392 "unwind_reg_info",
1393 "libunwindstack_local",
1394 "unwind_for_offline",
1395 "unwind",
1396 "unwind_info",
1397 "unwind_symbols",
1398 "libc_malloc_debug",
1399 "libfdtrack",
1400 "mediaswcodec",
1401 "libcodec2_hidl@1.0",
1402 "libEGL",
1403 "libstagefright_bufferqueue_helper_novndk",
1404 "libGLESv2",
1405 "libcodec2_hidl@1.1",
1406 "libmedia_codecserviceregistrant",
1407 "libcodec2_hidl@1.2",
1408 "libutils_test",
1409 "libutilscallstack",
Sam Delmerico24c56032022-03-28 19:53:03 +00001410 }
Chris Parsonsef615e52022-08-18 22:04:11 -04001411
Chris Parsons66fc7452022-11-04 13:26:17 -04001412 // Bazel prod-mode allowlist. Modules in this list are built by Bazel
1413 // in either prod mode or staging mode.
Jingwen Chen889f2f22022-12-16 08:16:01 +00001414 ProdMixedBuildsEnabledList = []string{
1415 "com.android.tzdata",
1416 "test1_com.android.tzdata",
Jingwen Chen98bf5cc2022-12-14 13:27:25 +00001417 "com.android.adbd",
1418 "test_com.android.adbd",
1419 "adbd_test",
1420 "adb_crypto_test",
1421 "adb_pairing_auth_test",
1422 "adb_pairing_connection_test",
1423 "adb_tls_connection_test",
Jingwen Chen889f2f22022-12-16 08:16:01 +00001424 }
MarkDacekb78465d2022-10-18 20:10:16 +00001425
Chris Parsons66fc7452022-11-04 13:26:17 -04001426 // Staging-mode allowlist. Modules in this list are only built
1427 // by Bazel with --bazel-mode-staging. This list should contain modules
1428 // which will soon be added to the prod allowlist.
MarkDacek421a4d62022-12-13 21:17:08 +00001429 // It is implicit that all modules in ProdMixedBuildsEnabledList will
1430 // also be built - do not add them to this list.
Jingwen Chen98bf5cc2022-12-14 13:27:25 +00001431 StagingMixedBuildsEnabledList = []string{}
Sam Delmerico24c56032022-03-28 19:53:03 +00001432)