allowlists.go 55 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244
  1. // 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. package allowlists
  15. // Configuration to decide if modules in a directory should default to true/false for bp2build_available
  16. type Bp2BuildConfig map[string]BazelConversionConfigEntry
  17. type BazelConversionConfigEntry int
  18. const (
  19. // iota + 1 ensures that the int value is not 0 when used in the Bp2buildAllowlist map,
  20. // which can also mean that the key doesn't exist in a lookup.
  21. // all modules in this package and subpackages default to bp2build_available: true.
  22. // allows modules to opt-out.
  23. Bp2BuildDefaultTrueRecursively BazelConversionConfigEntry = iota + 1
  24. // all modules in this package (not recursively) default to bp2build_available: true.
  25. // allows modules to opt-out.
  26. Bp2BuildDefaultTrue
  27. // all modules in this package (not recursively) default to bp2build_available: false.
  28. // allows modules to opt-in.
  29. Bp2BuildDefaultFalse
  30. )
  31. var (
  32. Bp2buildDefaultConfig = Bp2BuildConfig{
  33. "art": Bp2BuildDefaultTrue,
  34. "art/libartbase": Bp2BuildDefaultTrueRecursively,
  35. "art/libartpalette": Bp2BuildDefaultTrueRecursively,
  36. "art/libdexfile": Bp2BuildDefaultTrueRecursively,
  37. "art/libnativebridge": Bp2BuildDefaultTrueRecursively,
  38. "art/runtime": Bp2BuildDefaultTrueRecursively,
  39. "art/tools": Bp2BuildDefaultTrue,
  40. "bionic": Bp2BuildDefaultTrueRecursively,
  41. "bootable/recovery/tools/recovery_l10n": Bp2BuildDefaultTrue,
  42. "build/bazel": Bp2BuildDefaultTrueRecursively,
  43. "build/make/target/product/security": Bp2BuildDefaultTrue,
  44. "build/make/tools/signapk": Bp2BuildDefaultTrue,
  45. "build/make/tools/zipalign": Bp2BuildDefaultTrueRecursively,
  46. "build/soong": Bp2BuildDefaultTrue,
  47. "build/soong/cc/libbuildversion": Bp2BuildDefaultTrue, // Skip tests subdir
  48. "build/soong/cc/ndkstubgen": Bp2BuildDefaultTrue,
  49. "build/soong/cc/symbolfile": Bp2BuildDefaultTrue,
  50. "build/soong/licenses": Bp2BuildDefaultTrue,
  51. "build/soong/linkerconfig": Bp2BuildDefaultTrueRecursively,
  52. "build/soong/scripts": Bp2BuildDefaultTrueRecursively,
  53. "cts/common/device-side/nativetesthelper/jni": Bp2BuildDefaultTrueRecursively,
  54. "development/apps/DevelopmentSettings": Bp2BuildDefaultTrue,
  55. "development/apps/Fallback": Bp2BuildDefaultTrue,
  56. "development/apps/WidgetPreview": Bp2BuildDefaultTrue,
  57. "development/samples/BasicGLSurfaceView": Bp2BuildDefaultTrue,
  58. "development/samples/BluetoothChat": Bp2BuildDefaultTrue,
  59. "development/samples/BrokenKeyDerivation": Bp2BuildDefaultTrue,
  60. "development/samples/Compass": Bp2BuildDefaultTrue,
  61. "development/samples/ContactManager": Bp2BuildDefaultTrue,
  62. "development/samples/FixedGridLayout": Bp2BuildDefaultTrue,
  63. "development/samples/HelloEffects": Bp2BuildDefaultTrue,
  64. "development/samples/Home": Bp2BuildDefaultTrue,
  65. "development/samples/HoneycombGallery": Bp2BuildDefaultTrue,
  66. "development/samples/JetBoy": Bp2BuildDefaultTrue,
  67. "development/samples/KeyChainDemo": Bp2BuildDefaultTrue,
  68. "development/samples/LceDemo": Bp2BuildDefaultTrue,
  69. "development/samples/LunarLander": Bp2BuildDefaultTrue,
  70. "development/samples/MultiResolution": Bp2BuildDefaultTrue,
  71. "development/samples/MultiWindow": Bp2BuildDefaultTrue,
  72. "development/samples/NotePad": Bp2BuildDefaultTrue,
  73. "development/samples/Obb": Bp2BuildDefaultTrue,
  74. "development/samples/RSSReader": Bp2BuildDefaultTrue,
  75. "development/samples/ReceiveShareDemo": Bp2BuildDefaultTrue,
  76. "development/samples/SearchableDictionary": Bp2BuildDefaultTrue,
  77. "development/samples/SipDemo": Bp2BuildDefaultTrue,
  78. "development/samples/SkeletonApp": Bp2BuildDefaultTrue,
  79. "development/samples/Snake": Bp2BuildDefaultTrue,
  80. "development/samples/SpellChecker/": Bp2BuildDefaultTrueRecursively,
  81. "development/samples/ThemedNavBarKeyboard": Bp2BuildDefaultTrue,
  82. "development/samples/ToyVpn": Bp2BuildDefaultTrue,
  83. "development/samples/TtsEngine": Bp2BuildDefaultTrue,
  84. "development/samples/USB/AdbTest": Bp2BuildDefaultTrue,
  85. "development/samples/USB/MissileLauncher": Bp2BuildDefaultTrue,
  86. "development/samples/VoiceRecognitionService": Bp2BuildDefaultTrue,
  87. "development/samples/VoicemailProviderDemo": Bp2BuildDefaultTrue,
  88. "development/samples/WiFiDirectDemo": Bp2BuildDefaultTrue,
  89. "development/sdk": Bp2BuildDefaultTrueRecursively,
  90. "external/aac": Bp2BuildDefaultTrueRecursively,
  91. "external/arm-optimized-routines": Bp2BuildDefaultTrueRecursively,
  92. "external/auto/android-annotation-stubs": Bp2BuildDefaultTrueRecursively,
  93. "external/auto": Bp2BuildDefaultTrue,
  94. "external/auto/common": Bp2BuildDefaultTrueRecursively,
  95. "external/auto/service": Bp2BuildDefaultTrueRecursively,
  96. "external/boringssl": Bp2BuildDefaultTrueRecursively,
  97. "external/bouncycastle": Bp2BuildDefaultTrue,
  98. "external/brotli": Bp2BuildDefaultTrue,
  99. "external/conscrypt": Bp2BuildDefaultTrue,
  100. "external/e2fsprogs": Bp2BuildDefaultTrueRecursively,
  101. "external/eigen": Bp2BuildDefaultTrueRecursively,
  102. "external/erofs-utils": Bp2BuildDefaultTrueRecursively,
  103. "external/error_prone": Bp2BuildDefaultTrueRecursively,
  104. "external/expat": Bp2BuildDefaultTrueRecursively,
  105. "external/f2fs-tools": Bp2BuildDefaultTrue,
  106. "external/flac": Bp2BuildDefaultTrueRecursively,
  107. "external/fmtlib": Bp2BuildDefaultTrueRecursively,
  108. "external/google-benchmark": Bp2BuildDefaultTrueRecursively,
  109. "external/googletest": Bp2BuildDefaultTrueRecursively,
  110. "external/gwp_asan": Bp2BuildDefaultTrueRecursively,
  111. "external/hamcrest": Bp2BuildDefaultTrueRecursively,
  112. "external/icu": Bp2BuildDefaultTrueRecursively,
  113. "external/icu/android_icu4j": Bp2BuildDefaultFalse, // java rules incomplete
  114. "external/icu/icu4j": Bp2BuildDefaultFalse, // java rules incomplete
  115. "external/jacoco": Bp2BuildDefaultTrueRecursively,
  116. "external/jarjar": Bp2BuildDefaultTrueRecursively,
  117. "external/javassist": Bp2BuildDefaultTrueRecursively,
  118. "external/javaparser": Bp2BuildDefaultTrueRecursively,
  119. "external/javapoet": Bp2BuildDefaultTrueRecursively,
  120. "external/jemalloc_new": Bp2BuildDefaultTrueRecursively,
  121. "external/jsoncpp": Bp2BuildDefaultTrueRecursively,
  122. "external/junit": Bp2BuildDefaultTrueRecursively,
  123. "external/libavc": Bp2BuildDefaultTrueRecursively,
  124. "external/libcap": Bp2BuildDefaultTrueRecursively,
  125. "external/libcxx": Bp2BuildDefaultTrueRecursively,
  126. "external/libcxxabi": Bp2BuildDefaultTrueRecursively,
  127. "external/libevent": Bp2BuildDefaultTrueRecursively,
  128. "external/libgav1": Bp2BuildDefaultTrueRecursively,
  129. "external/libhevc": Bp2BuildDefaultTrueRecursively,
  130. "external/libjpeg-turbo": Bp2BuildDefaultTrueRecursively,
  131. "external/libmpeg2": Bp2BuildDefaultTrueRecursively,
  132. "external/libpng": Bp2BuildDefaultTrueRecursively,
  133. "external/libvpx": Bp2BuildDefaultTrueRecursively,
  134. "external/libyuv": Bp2BuildDefaultTrueRecursively,
  135. "external/lz4/lib": Bp2BuildDefaultTrue,
  136. "external/lzma/C": Bp2BuildDefaultTrueRecursively,
  137. "external/mdnsresponder": Bp2BuildDefaultTrueRecursively,
  138. "external/minijail": Bp2BuildDefaultTrueRecursively,
  139. "external/openscreen": Bp2BuildDefaultTrueRecursively,
  140. "external/objenesis": Bp2BuildDefaultTrueRecursively,
  141. "external/pcre": Bp2BuildDefaultTrueRecursively,
  142. "external/protobuf": Bp2BuildDefaultTrueRecursively,
  143. "external/python/six": Bp2BuildDefaultTrueRecursively,
  144. "external/rappor": Bp2BuildDefaultTrueRecursively,
  145. "external/scudo": Bp2BuildDefaultTrueRecursively,
  146. "external/selinux/libselinux": Bp2BuildDefaultTrueRecursively,
  147. "external/selinux/libsepol": Bp2BuildDefaultTrueRecursively,
  148. "external/speex": Bp2BuildDefaultTrueRecursively,
  149. "external/toybox": Bp2BuildDefaultTrueRecursively,
  150. "external/zlib": Bp2BuildDefaultTrueRecursively,
  151. "external/zopfli": Bp2BuildDefaultTrueRecursively,
  152. "external/zstd": Bp2BuildDefaultTrueRecursively,
  153. "frameworks/av": Bp2BuildDefaultTrue,
  154. "frameworks/av/media/codecs": Bp2BuildDefaultTrueRecursively,
  155. "frameworks/av/media/liberror": Bp2BuildDefaultTrueRecursively,
  156. "frameworks/av/services/minijail": Bp2BuildDefaultTrueRecursively,
  157. "frameworks/av/media/module/minijail": Bp2BuildDefaultTrueRecursively,
  158. "frameworks/base/libs/androidfw": Bp2BuildDefaultTrue,
  159. "frameworks/base/media/tests/MediaDump": Bp2BuildDefaultTrue,
  160. "frameworks/base/services/tests/servicestests/aidl": Bp2BuildDefaultTrue,
  161. "frameworks/base/startop/apps/test": Bp2BuildDefaultTrue,
  162. "frameworks/base/tests/appwidgets/AppWidgetHostTest": Bp2BuildDefaultTrueRecursively,
  163. "frameworks/base/tools/aapt2": Bp2BuildDefaultTrue,
  164. "frameworks/native/libs/adbd_auth": Bp2BuildDefaultTrueRecursively,
  165. "frameworks/native/libs/arect": Bp2BuildDefaultTrueRecursively,
  166. "frameworks/native/libs/math": Bp2BuildDefaultTrueRecursively,
  167. "frameworks/native/libs/nativebase": Bp2BuildDefaultTrueRecursively,
  168. "frameworks/native/opengl/tests/gl2_cameraeye": Bp2BuildDefaultTrue,
  169. "frameworks/native/opengl/tests/gl2_java": Bp2BuildDefaultTrue,
  170. "frameworks/native/opengl/tests/testLatency": Bp2BuildDefaultTrue,
  171. "frameworks/native/opengl/tests/testPauseResume": Bp2BuildDefaultTrue,
  172. "frameworks/native/opengl/tests/testViewport": Bp2BuildDefaultTrue,
  173. "frameworks/proto_logging/stats/stats_log_api_gen": Bp2BuildDefaultTrueRecursively,
  174. "hardware/interfaces": Bp2BuildDefaultTrue,
  175. "hardware/interfaces/common/aidl": Bp2BuildDefaultTrue,
  176. "hardware/interfaces/configstore/1.0": Bp2BuildDefaultTrue,
  177. "hardware/interfaces/configstore/1.1": Bp2BuildDefaultTrue,
  178. "hardware/interfaces/configstore/utils": Bp2BuildDefaultTrue,
  179. "hardware/interfaces/graphics/allocator/aidl": Bp2BuildDefaultTrue,
  180. "hardware/interfaces/graphics/allocator/2.0": Bp2BuildDefaultTrue,
  181. "hardware/interfaces/graphics/allocator/3.0": Bp2BuildDefaultTrue,
  182. "hardware/interfaces/graphics/allocator/4.0": Bp2BuildDefaultTrue,
  183. "hardware/interfaces/graphics/bufferqueue/1.0": Bp2BuildDefaultTrue,
  184. "hardware/interfaces/graphics/bufferqueue/2.0": Bp2BuildDefaultTrue,
  185. "hardware/interfaces/graphics/common/1.0": Bp2BuildDefaultTrue,
  186. "hardware/interfaces/graphics/common/1.1": Bp2BuildDefaultTrue,
  187. "hardware/interfaces/graphics/common/1.2": Bp2BuildDefaultTrue,
  188. "hardware/interfaces/graphics/common/aidl": Bp2BuildDefaultTrue,
  189. "hardware/interfaces/graphics/mapper/2.0": Bp2BuildDefaultTrue,
  190. "hardware/interfaces/graphics/mapper/2.1": Bp2BuildDefaultTrue,
  191. "hardware/interfaces/graphics/mapper/3.0": Bp2BuildDefaultTrue,
  192. "hardware/interfaces/graphics/mapper/4.0": Bp2BuildDefaultTrue,
  193. "hardware/interfaces/media/1.0": Bp2BuildDefaultTrue,
  194. "hardware/interfaces/media/bufferpool/2.0": Bp2BuildDefaultTrue,
  195. "hardware/interfaces/media/c2/1.0": Bp2BuildDefaultTrue,
  196. "hardware/interfaces/media/c2/1.1": Bp2BuildDefaultTrue,
  197. "hardware/interfaces/media/c2/1.2": Bp2BuildDefaultTrue,
  198. "hardware/interfaces/media/omx/1.0": Bp2BuildDefaultTrue,
  199. "hardware/interfaces/neuralnetworks/1.0": Bp2BuildDefaultTrue,
  200. "hardware/interfaces/neuralnetworks/1.1": Bp2BuildDefaultTrue,
  201. "hardware/interfaces/neuralnetworks/1.2": Bp2BuildDefaultTrue,
  202. "hardware/interfaces/neuralnetworks/1.3": Bp2BuildDefaultTrue,
  203. "hardware/interfaces/neuralnetworks/aidl": Bp2BuildDefaultTrue,
  204. "libnativehelper": Bp2BuildDefaultTrueRecursively,
  205. "packages/apps/DevCamera": Bp2BuildDefaultTrue,
  206. "packages/apps/HTMLViewer": Bp2BuildDefaultTrue,
  207. "packages/apps/Protips": Bp2BuildDefaultTrue,
  208. "packages/apps/SafetyRegulatoryInfo": Bp2BuildDefaultTrue,
  209. "packages/apps/WallpaperPicker": Bp2BuildDefaultTrue,
  210. "packages/modules/StatsD/lib/libstatssocket": Bp2BuildDefaultTrueRecursively,
  211. "packages/modules/adb": Bp2BuildDefaultTrue,
  212. "packages/modules/adb/apex": Bp2BuildDefaultTrue,
  213. "packages/modules/adb/crypto": Bp2BuildDefaultTrueRecursively,
  214. "packages/modules/adb/libs": Bp2BuildDefaultTrueRecursively,
  215. "packages/modules/adb/pairing_auth": Bp2BuildDefaultTrueRecursively,
  216. "packages/modules/adb/pairing_connection": Bp2BuildDefaultTrueRecursively,
  217. "packages/modules/adb/proto": Bp2BuildDefaultTrueRecursively,
  218. "packages/modules/adb/tls": Bp2BuildDefaultTrueRecursively,
  219. "packages/providers/MediaProvider/tools/dialogs": Bp2BuildDefaultFalse, // TODO(b/242834374)
  220. "packages/modules/NeuralNetworks/driver/cache": Bp2BuildDefaultTrueRecursively,
  221. "packages/screensavers/Basic": Bp2BuildDefaultTrue,
  222. "packages/services/Car/tests/SampleRearViewCamera": Bp2BuildDefaultFalse, // TODO(b/242834321)
  223. "platform_testing/tests/example": Bp2BuildDefaultTrueRecursively,
  224. "prebuilts/clang/host/linux-x86": Bp2BuildDefaultTrueRecursively,
  225. "prebuilts/runtime/mainline/platform/sdk": Bp2BuildDefaultTrueRecursively,
  226. "prebuilts/sdk/current/extras/app-toolkit": Bp2BuildDefaultTrue,
  227. "prebuilts/sdk/current/support": Bp2BuildDefaultTrue,
  228. "prebuilts/tools": Bp2BuildDefaultTrue,
  229. "prebuilts/tools/common/m2": Bp2BuildDefaultTrue,
  230. "system/apex": Bp2BuildDefaultFalse, // TODO(b/207466993): flaky failures
  231. "system/apex/apexer": Bp2BuildDefaultTrue,
  232. "system/apex/libs": Bp2BuildDefaultTrueRecursively,
  233. "system/apex/proto": Bp2BuildDefaultTrueRecursively,
  234. "system/apex/tools": Bp2BuildDefaultTrueRecursively,
  235. "system/core/debuggerd": Bp2BuildDefaultTrueRecursively,
  236. "system/core/diagnose_usb": Bp2BuildDefaultTrueRecursively,
  237. "system/core/libasyncio": Bp2BuildDefaultTrue,
  238. "system/core/libcrypto_utils": Bp2BuildDefaultTrueRecursively,
  239. "system/core/libcutils": Bp2BuildDefaultTrueRecursively,
  240. "system/core/libpackagelistparser": Bp2BuildDefaultTrueRecursively,
  241. "system/core/libprocessgroup": Bp2BuildDefaultTrue,
  242. "system/core/libprocessgroup/cgrouprc": Bp2BuildDefaultTrue,
  243. "system/core/libprocessgroup/cgrouprc_format": Bp2BuildDefaultTrue,
  244. "system/core/libsystem": Bp2BuildDefaultTrueRecursively,
  245. "system/core/libsysutils": Bp2BuildDefaultTrueRecursively,
  246. "system/core/libutils": Bp2BuildDefaultTrueRecursively,
  247. "system/core/libvndksupport": Bp2BuildDefaultTrueRecursively,
  248. "system/core/property_service/libpropertyinfoparser": Bp2BuildDefaultTrueRecursively,
  249. "system/core/property_service/libpropertyinfoserializer": Bp2BuildDefaultTrueRecursively,
  250. "system/incremental_delivery/incfs": Bp2BuildDefaultTrue,
  251. "system/libartpalette": Bp2BuildDefaultTrueRecursively,
  252. "system/libbase": Bp2BuildDefaultTrueRecursively,
  253. "system/libfmq": Bp2BuildDefaultTrue,
  254. "system/libhidl/libhidlmemory": Bp2BuildDefaultTrue,
  255. "system/libhidl/transport": Bp2BuildDefaultTrue,
  256. "system/libhidl/transport/allocator/1.0": Bp2BuildDefaultTrue,
  257. "system/libhidl/transport/base/1.0": Bp2BuildDefaultTrue,
  258. "system/libhidl/transport/manager/1.0": Bp2BuildDefaultTrue,
  259. "system/libhidl/transport/manager/1.1": Bp2BuildDefaultTrue,
  260. "system/libhidl/transport/manager/1.2": Bp2BuildDefaultTrue,
  261. "system/libhidl/transport/memory/1.0": Bp2BuildDefaultTrue,
  262. "system/libhidl/transport/memory/token/1.0": Bp2BuildDefaultTrue,
  263. "system/libhidl/transport/safe_union/1.0": Bp2BuildDefaultTrue,
  264. "system/libhidl/transport/token/1.0": Bp2BuildDefaultTrue,
  265. "system/libhidl/transport/token/1.0/utils": Bp2BuildDefaultTrue,
  266. "system/libhwbinder": Bp2BuildDefaultTrueRecursively,
  267. "system/libprocinfo": Bp2BuildDefaultTrue,
  268. "system/libziparchive": Bp2BuildDefaultTrueRecursively,
  269. "system/logging": Bp2BuildDefaultTrueRecursively,
  270. "system/media": Bp2BuildDefaultTrue,
  271. "system/media/audio": Bp2BuildDefaultTrueRecursively,
  272. "system/media/audio_utils": Bp2BuildDefaultTrueRecursively,
  273. "system/memory/libion": Bp2BuildDefaultTrueRecursively,
  274. "system/memory/libmemunreachable": Bp2BuildDefaultTrueRecursively,
  275. "system/sepolicy/apex": Bp2BuildDefaultTrueRecursively,
  276. "system/testing/gtest_extras": Bp2BuildDefaultTrueRecursively,
  277. "system/timezone/apex": Bp2BuildDefaultTrueRecursively,
  278. "system/timezone/output_data": Bp2BuildDefaultTrueRecursively,
  279. "system/tools/aidl/build/tests_bp2build": Bp2BuildDefaultTrue,
  280. "system/tools/sysprop": Bp2BuildDefaultTrue,
  281. "system/unwinding/libunwindstack": Bp2BuildDefaultTrueRecursively,
  282. "frameworks/proto_logging/stats": Bp2BuildDefaultTrueRecursively,
  283. "tools/apksig": Bp2BuildDefaultTrue,
  284. "tools/platform-compat/java/android/compat": Bp2BuildDefaultTrueRecursively,
  285. "tools/tradefederation/prebuilts/filegroups": Bp2BuildDefaultTrueRecursively,
  286. }
  287. Bp2buildKeepExistingBuildFile = map[string]bool{
  288. // This is actually build/bazel/build.BAZEL symlinked to ./BUILD
  289. ".":/*recursive = */ false,
  290. "build/bazel":/* recursive = */ true,
  291. "build/bazel_common_rules":/* recursive = */ true,
  292. // build/make/tools/signapk BUILD file is generated, so build/make/tools is not recursive.
  293. "build/make/tools":/* recursive = */ false,
  294. "build/pesto":/* recursive = */ true,
  295. "build/soong":/* recursive = */ true,
  296. // external/bazelbuild-rules_android/... is needed by mixed builds, otherwise mixed builds analysis fails
  297. // e.g. ERROR: Analysis of target '@soong_injection//mixed_builds:buildroot' failed
  298. "external/bazelbuild-rules_android":/* recursive = */ true,
  299. "external/bazelbuild-rules_license":/* recursive = */ true,
  300. "external/bazelbuild-kotlin-rules":/* recursive = */ true,
  301. "external/bazel-skylib":/* recursive = */ true,
  302. "external/guava":/* recursive = */ true,
  303. "external/jsr305":/* recursive = */ true,
  304. "external/protobuf":/* recursive = */ false,
  305. // this BUILD file is globbed by //external/icu/icu4c/source:icu4c_test_data's "data/**/*".
  306. "external/icu/icu4c/source/data/unidata/norm2":/* recursive = */ false,
  307. "frameworks/base/tools/codegen":/* recursive = */ true,
  308. "frameworks/ex/common":/* recursive = */ true,
  309. "packages/apps/Music":/* recursive = */ true,
  310. "packages/apps/QuickSearchBox":/* recursive = */ true,
  311. "prebuilts/bazel":/* recursive = */ true,
  312. "prebuilts/bundletool":/* recursive = */ true,
  313. "prebuilts/clang/host/linux-x86":/* recursive = */ false,
  314. "prebuilts/gcc":/* recursive = */ true,
  315. "prebuilts/build-tools":/* recursive = */ true,
  316. "prebuilts/jdk/jdk11":/* recursive = */ false,
  317. "prebuilts/misc":/* recursive = */ false, // not recursive because we need bp2build converted build files in prebuilts/misc/common/asm
  318. "prebuilts/sdk":/* recursive = */ false,
  319. "prebuilts/sdk/tools":/* recursive = */ false,
  320. "prebuilts/r8":/* recursive = */ false,
  321. }
  322. Bp2buildModuleAlwaysConvertList = []string{
  323. "libidmap2_policies",
  324. "libSurfaceFlingerProp",
  325. // cc mainline modules
  326. "code_coverage.policy",
  327. "code_coverage.policy.other",
  328. "codec2_soft_exports",
  329. "codecs_g711dec",
  330. "com.android.media.swcodec-androidManifest",
  331. "com.android.media.swcodec-ld.config.txt",
  332. "com.android.media.swcodec-mediaswcodec.rc",
  333. "com.android.media.swcodec.certificate",
  334. "com.android.media.swcodec.key",
  335. "com.android.neuralnetworks",
  336. "com.android.neuralnetworks-androidManifest",
  337. "com.android.neuralnetworks.certificate",
  338. "com.android.neuralnetworks.key",
  339. "flatbuffer_headers",
  340. "gemmlowp_headers",
  341. "gl_headers",
  342. "libaidlcommonsupport",
  343. "libandroid_runtime_lazy",
  344. "libandroid_runtime_vm_headers",
  345. "libaudioclient_aidl_conversion_util",
  346. "libbinder",
  347. "libbinder_device_interface_sources",
  348. "libbinder_aidl",
  349. "libbinder_headers",
  350. "libbinder_headers_platform_shared",
  351. "libbinderthreadstateutils",
  352. "libbluetooth-types-header",
  353. "libbufferhub_headers",
  354. "libcodec2",
  355. "libcodec2_headers",
  356. "libcodec2_internal",
  357. "libdmabufheap",
  358. "libdvr_headers",
  359. "libgsm",
  360. "libgui_bufferqueue_sources",
  361. "libgrallocusage",
  362. "libgralloctypes",
  363. "libnativewindow",
  364. "libneuralnetworks",
  365. "libgraphicsenv",
  366. "libhardware",
  367. "libhardware_headers",
  368. "libnativeloader-headers",
  369. "libnativewindow_headers",
  370. "libneuralnetworks_headers",
  371. "libneuralnetworks_packageinfo",
  372. "libopus",
  373. "libpdx_headers",
  374. "libprocpartition",
  375. "libruy_static",
  376. "libandroidio",
  377. "libandroidio_srcs",
  378. "libserviceutils",
  379. "libstagefright_amrnbenc",
  380. "libstagefright_amrnbdec",
  381. "libstagefright_amrwbdec",
  382. "libstagefright_amrwbenc",
  383. "libstagefright_amrnb_common",
  384. "libstagefright_enc_common",
  385. "libstagefright_flacdec",
  386. "libstagefright_foundation",
  387. "libstagefright_foundation_headers",
  388. "libstagefright_headers",
  389. "libstagefright_m4vh263dec",
  390. "libstagefright_m4vh263enc",
  391. "libstagefright_mp3dec",
  392. "libstagefright_mp3dec_headers",
  393. "libsurfaceflinger_headers",
  394. "libsync",
  395. "libtextclassifier_hash_headers",
  396. "libtextclassifier_hash_static",
  397. "libtflite_kernel_utils",
  398. "libtinyxml2",
  399. "libgui_aidl",
  400. "libui",
  401. "libui-types",
  402. "libui_headers",
  403. "libvorbisidec",
  404. "media_ndk_headers",
  405. "media_plugin_headers",
  406. "mediaswcodec.policy",
  407. "mediaswcodec.xml",
  408. "neuralnetworks_types",
  409. "neuralnetworks_utils_hal_aidl",
  410. "neuralnetworks_utils_hal_common",
  411. "neuralnetworks_utils_hal_service",
  412. "neuralnetworks_utils_hal_1_0",
  413. "neuralnetworks_utils_hal_1_1",
  414. "neuralnetworks_utils_hal_1_2",
  415. "neuralnetworks_utils_hal_1_3",
  416. "libneuralnetworks_common",
  417. // packagemanager_aidl_interface is created implicitly in packagemanager_aidl module
  418. "packagemanager_aidl_interface",
  419. "philox_random",
  420. "philox_random_headers",
  421. "server_configurable_flags",
  422. "statslog_neuralnetworks.cpp",
  423. "statslog_neuralnetworks.h",
  424. "tensorflow_headers",
  425. "libgui_headers",
  426. "libstagefright_bufferpool@2.0",
  427. "libstagefright_bufferpool@2.0.1",
  428. "libSurfaceFlingerProp",
  429. // fastboot
  430. "bootimg_headers",
  431. "fastboot",
  432. "libfastboot",
  433. "liblp",
  434. "libstorage_literals_headers",
  435. //external/avb
  436. "avbtool",
  437. "libavb",
  438. "avb_headers",
  439. //external/libxml2
  440. "xmllint",
  441. "libxml2",
  442. //external/fec
  443. "libfec_rs",
  444. //system/core/libsparse
  445. "libsparse",
  446. //system/extras/ext4_utils
  447. "libext4_utils",
  448. "mke2fs_conf",
  449. //system/extras/libfec
  450. "libfec",
  451. //system/extras/squashfs_utils
  452. "libsquashfs_utils",
  453. //system/extras/verity/fec
  454. "fec",
  455. //packages/apps/Car/libs/car-ui-lib/car-ui-androidx
  456. // genrule dependencies for java_imports
  457. "car-ui-androidx-annotation-nodeps",
  458. "car-ui-androidx-collection-nodeps",
  459. "car-ui-androidx-core-common-nodeps",
  460. "car-ui-androidx-lifecycle-common-nodeps",
  461. "car-ui-androidx-constraintlayout-solver-nodeps",
  462. //system/libhidl
  463. // needed by cc_hidl_library
  464. "libhidlbase",
  465. //frameworks/native
  466. "framework_native_aidl_binder",
  467. "framework_native_aidl_gui",
  468. //frameworks/native/libs/input
  469. "inputconstants_aidl",
  470. // needed for aidl_interface's ndk backend
  471. "libbinder_ndk",
  472. "libusb",
  473. // needed by liblogd
  474. "ILogcatManagerService_aidl",
  475. "libincremental_aidl-cpp",
  476. "incremental_aidl",
  477. //frameworks/native/cmds/cmd
  478. "libcmd",
  479. //system/core/fs_mgr/libdm
  480. "libdm",
  481. //system/core/fs_mgr/libfiemap
  482. "libfiemap_headers",
  483. "libfiemap_passthrough_srcs",
  484. "libfiemap_srcs",
  485. //system/gsid
  486. "libgsi",
  487. "libgsi_headers",
  488. //system/core/libkeyutils
  489. "libkeyutils",
  490. //bootable/recovery/minadbd
  491. "libminadbd_headers",
  492. //bootable/recovery/otautil
  493. "libotautil",
  494. //system/vold
  495. "libvold_headers",
  496. //system/extras/libfscrypt
  497. "libfscrypt",
  498. //system/core/fs_mgr
  499. "libfstab",
  500. //bootable/recovery/fuse_sideload
  501. "libfusesideload",
  502. //system/core/fs_mgr/libfs_avb
  503. "libfs_avb",
  504. //system/core/fs_mgr
  505. "libfs_mgr",
  506. "libcodec2_hidl@1.0",
  507. "libcodec2_hidl@1.1",
  508. "libcodec2_hidl@1.2",
  509. "libcodec2_hidl_plugin_stub",
  510. "libcodec2_hidl_plugin",
  511. "libstagefright_bufferqueue_helper_novndk",
  512. "libgui_bufferqueue_static",
  513. "libGLESv2",
  514. "libEGL",
  515. "libcodec2_vndk",
  516. "libnativeloader_lazy",
  517. "libnativeloader",
  518. "libEGL_getProcAddress",
  519. "libEGL_blobCache",
  520. "protoc-gen-cppstream",
  521. }
  522. Bp2buildModuleTypeAlwaysConvertList = []string{
  523. "aidl_interface_headers",
  524. "api_domain",
  525. "license",
  526. "linker_config",
  527. "java_import",
  528. "java_import_host",
  529. "ndk_headers",
  530. "ndk_library",
  531. "sysprop_library",
  532. "bpf",
  533. }
  534. // Add the names of modules that bp2build should never convert, if it is
  535. // in the package allowlist. An error will be thrown if a module must
  536. // not be here and in the alwaysConvert lists.
  537. //
  538. // For prebuilt modules (e.g. android_library_import), remember to add
  539. // the "prebuilt_" prefix to the name, so that it's differentiable from
  540. // the source versions within Soong's module graph.
  541. Bp2buildModuleDoNotConvertList = []string{
  542. // cc bugs
  543. "libactivitymanager_aidl", // TODO(b/207426160): Unsupported use of aidl sources (via Dactivity_manager_procstate_aidl) in a cc_library
  544. // TODO(b/198619163) module has same name as source
  545. "logtagd.rc",
  546. "libgtest_ndk_c++", "libgtest_main_ndk_c++", // TODO(b/201816222): Requires sdk_version support.
  547. // TODO(b/202876379): has arch-variant static_executable
  548. "linkerconfig",
  549. "mdnsd",
  550. "libcutils_test_static",
  551. "KernelLibcutilsTest",
  552. "linker", // TODO(b/228316882): cc_binary uses link_crt
  553. "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
  554. "art_libartbase_headers", // TODO(b/236268577): Header libraries do not support export_shared_libs_headers
  555. "apexer_test", // Requires aapt2
  556. "apexer_test_host_tools",
  557. "host_apex_verifier",
  558. "tjbench", // TODO(b/240563612): Stem property
  559. // java bugs
  560. "libbase_ndk", // TODO(b/186826477): fails to link libctscamera2_jni for device (required for CtsCameraTestCases)
  561. // python protos
  562. "libprotobuf-python", // Has a handcrafted alternative
  563. // genrule incompatibilities
  564. "brotli-fuzzer-corpus", // TODO(b/202015218): outputs are in location incompatible with bazel genrule handling.
  565. "platform_tools_properties", "build_tools_source_properties", // TODO(b/203369847): multiple genrules in the same package creating the same file
  566. // aar support
  567. "prebuilt_car-ui-androidx-core-common", // TODO(b/224773339), genrule dependency creates an .aar, not a .jar
  568. "prebuilt_platform-robolectric-4.4-prebuilt", // aosp/1999250, needs .aar support in Jars
  569. "prebuilt_platform-robolectric-4.5.1-prebuilt", // aosp/1999250, needs .aar support in Jars
  570. // ERROR: The dependencies for the following 1 jar(s) are not complete.
  571. // 1.bazel-out/android_target-fastbuild/bin/prebuilts/tools/common/m2/_aar/robolectric-monitor-1.0.2-alpha1/classes_and_libs_merged.jar
  572. "prebuilt_robolectric-monitor-1.0.2-alpha1",
  573. // path property for filegroups
  574. "conscrypt", // TODO(b/210751803), we don't handle path property for filegroups
  575. "conscrypt-for-host", // TODO(b/210751803), we don't handle path property for filegroups
  576. "host-libprotobuf-java-full", // TODO(b/210751803), we don't handle path property for filegroups
  577. "libprotobuf-internal-python-srcs", // TODO(b/210751803), we don't handle path property for filegroups
  578. "libprotobuf-java-full", // TODO(b/210751803), we don't handle path property for filegroups
  579. "libprotobuf-java-util-full", // TODO(b/210751803), we don't handle path property for filegroups
  580. "auto_value_plugin_resources", // TODO(b/210751803), we don't handle path property for filegroups
  581. // go deps:
  582. "analyze_bcpf", // depends on bpmodify a blueprint_go_binary.
  583. "host_bionic_linker_asm", // depends on extract_linker, a go binary.
  584. "host_bionic_linker_script", // depends on extract_linker, a go binary.
  585. // 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
  586. "robolectric_tzdata",
  587. // rust support
  588. "libtombstoned_client_rust_bridge_code", "libtombstoned_client_wrapper", // rust conversions are not supported
  589. // unconverted deps
  590. "CarHTMLViewer", // depends on unconverted modules android.car-stubs, car-ui-lib
  591. "adb", // depends on unconverted modules: AdbWinApi, libandroidfw, libopenscreen-discovery, libopenscreen-platform-impl, libusb, bin2c_fastdeployagent, AdbWinUsbApi
  592. "android_icu4j_srcgen", // depends on unconverted modules: currysrc
  593. "android_icu4j_srcgen_binary", // depends on unconverted modules: android_icu4j_srcgen, currysrc
  594. "apex_manifest_proto_java", // b/210751803, depends on libprotobuf-java-full
  595. "art-script", // depends on unconverted modules: dalvikvm, dex2oat
  596. "bin2c_fastdeployagent", // depends on unconverted modules: deployagent
  597. "com.android.runtime", // depends on unconverted modules: bionic-linker-config, linkerconfig
  598. "currysrc", // depends on unconverted modules: currysrc_org.eclipse, guavalib, jopt-simple-4.9
  599. "dex2oat-script", // depends on unconverted modules: dex2oat
  600. "generated_android_icu4j_resources", // depends on unconverted modules: android_icu4j_srcgen_binary
  601. "generated_android_icu4j_test_resources", // depends on unconverted modules: android_icu4j_srcgen_binary
  602. "host-libprotobuf-java-nano", // b/220869005, depends on libprotobuf-java-nano
  603. "jacoco-stubs", // b/245767077, depends on droidstubs
  604. "libapexutil", // depends on unconverted modules: apex-info-list-tinyxml
  605. "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
  606. "libart-runtime-gtest", // depends on unconverted modules: libgtest_isolated, libart-compiler, libdexfile, libprofile, libartbase, libartbase-art-gtest
  607. "libart_headers", // depends on unconverted modules: art_libartbase_headers
  608. "libartbase-art-gtest", // depends on unconverted modules: libgtest_isolated, libart, libart-compiler, libdexfile, libprofile
  609. "libartbased-art-gtest", // depends on unconverted modules: libgtest_isolated, libartd, libartd-compiler, libdexfiled, libprofiled
  610. "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
  611. "libartd-runtime-gtest", // depends on unconverted modules: libgtest_isolated, libartd-compiler, libdexfiled, libprofiled, libartbased, libartbased-art-gtest
  612. "libdebuggerd", // depends on unconverted module: libdexfile
  613. "libdebuggerd_handler", // depends on unconverted module libdebuggerd_handler_core
  614. "libdebuggerd_handler_core", "libdebuggerd_handler_fallback", // depends on unconverted module libdebuggerd
  615. "libdexfiled", // depends on unconverted modules: dexfile_operator_srcs, libartbased, libartpalette
  616. "libfastdeploy_host", // depends on unconverted modules: libandroidfw, libusb, AdbWinApi
  617. "libgmock_main_ndk", // depends on unconverted modules: libgtest_ndk_c++
  618. "libgmock_ndk", // depends on unconverted modules: libgtest_ndk_c++
  619. "libnativehelper_lazy_mts_jni", "libnativehelper_mts_jni", // depends on unconverted modules: libnativetesthelper_jni, libgmock_ndk
  620. "libnativetesthelper_jni", // depends on unconverted modules: libgtest_ndk_c++
  621. "libprotobuf-java-nano", // b/220869005, depends on non-public_current SDK
  622. "libstatslog", // depends on unconverted modules: libstatspull, statsd-aidl-ndk
  623. "libstatslog_art", // depends on unconverted modules: statslog_art.cpp, statslog_art.h
  624. "linker_reloc_bench_main", // depends on unconverted modules: liblinker_reloc_bench_*
  625. "pbtombstone", "crash_dump", // depends on libdebuggerd, libunwindstack
  626. "robolectric-sqlite4java-0.282", // depends on unconverted modules: robolectric-sqlite4java-import, robolectric-sqlite4java-native
  627. "static_crasher", // depends on unconverted modules: libdebuggerd_handler
  628. "test_fips", // depends on unconverted modules: adb
  629. "timezone-host", // depends on unconverted modules: art.module.api.annotations
  630. "truth-host-prebuilt", // depends on unconverted modules: truth-prebuilt
  631. "truth-prebuilt", // depends on unconverted modules: asm-7.0, guava
  632. // '//bionic/libc:libc_bp2build_cc_library_static' is duplicated in the 'deps' attribute of rule
  633. "toybox-static",
  634. // aidl files not created
  635. "overlayable_policy_aidl_interface",
  636. //prebuilts/tools/common/m2
  637. // depends on //external/okio:okio-lib, which uses kotlin
  638. "wire-runtime",
  639. // cc_test related.
  640. // Failing host cc_tests
  641. "memunreachable_unit_test",
  642. "libprocinfo_test",
  643. "ziparchive-tests",
  644. "gtest_isolated_tests",
  645. "libunwindstack_unit_test",
  646. "task_profiles_test",
  647. "power_tests", // failing test on server, but not on host
  648. // reflect: call of reflect.Value.NumField on interface Value
  649. // affects all cc_tests that depend on art_defaults
  650. "libnativebridge-tests",
  651. "libnativeloader_test",
  652. "art_libnativebridge_cts_tests",
  653. "art_standalone_libdexfile_external_tests",
  654. "art_standalone_libdexfile_support_tests",
  655. "libnativebridge-lazy-tests",
  656. "libnativebridge-test-case",
  657. "libnativebridge2-test-case",
  658. "libnativebridge3-test-case",
  659. "libnativebridge6-test-case",
  660. "libnativebridge6prezygotefork",
  661. "libandroidfw_tests", "aapt2_tests", // failing due to data path issues
  662. // cc_test with unconverted deps, or are device-only (and not verified to pass yet)
  663. "AMRWBEncTest",
  664. "AmrnbDecoderTest", // depends on unconverted modules: libaudioutils, libsndfile
  665. "AmrnbEncoderTest", // depends on unconverted modules: libaudioutils, libsndfile
  666. "AmrwbDecoderTest", // depends on unconverted modules: libsndfile, libaudioutils
  667. "AmrwbEncoderTest", // depends on unconverted modules: libaudioutils, libsndfile
  668. "Mp3DecoderTest", // depends on unconverted modules: libsndfile, libaudioutils
  669. "Mpeg4H263DecoderTest", // depends on unconverted modules: libstagefright_foundation
  670. "Mpeg4H263EncoderTest",
  671. "avcdec",
  672. "avcenc",
  673. "bionic-benchmarks-tests",
  674. "bionic-fortify-runtime-asan-test",
  675. "bionic-stress-tests",
  676. "bionic-unit-tests",
  677. "bionic-unit-tests-glibc",
  678. "bionic-unit-tests-static",
  679. "boringssl_crypto_test",
  680. "boringssl_ssl_test",
  681. "cfi_test_helper",
  682. "cfi_test_helper2",
  683. "cintltst32",
  684. "cintltst64",
  685. "compare",
  686. "cpuid",
  687. "debuggerd_test", // depends on unconverted modules: libdebuggerd
  688. "elftls_dlopen_ie_error_helper",
  689. "exec_linker_helper",
  690. "fastdeploy_test", // depends on unconverted modules: AdbWinApi, libadb_host, libandroidfw, libfastdeploy_host, libopenscreen-discovery, libopenscreen-platform-impl, libusb
  691. "fdtrack_test",
  692. "google-benchmark-test",
  693. "googletest-param-test-test_ndk", // depends on unconverted modules: libgtest_ndk_c++
  694. "gtest-typed-test_test",
  695. "gtest-typed-test_test_ndk", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
  696. "gtest_ndk_tests", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
  697. "gtest_ndk_tests_no_main", // depends on unconverted modules: libgtest_ndk_c++
  698. "gtest_prod_test_ndk", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
  699. "gtest_tests",
  700. "gtest_tests_no_main",
  701. "gwp_asan_unittest",
  702. "half_test",
  703. "hashcombine_test",
  704. "hevcdec",
  705. "hevcenc",
  706. "hwbinderThroughputTest", // depends on unconverted modules: android.hardware.tests.libhwbinder@1.0-impl.test, android.hardware.tests.libhwbinder@1.0
  707. "i444tonv12_eg",
  708. "icu4c_sample_break",
  709. "intltest32",
  710. "intltest64",
  711. "ion-unit-tests",
  712. "jemalloc5_integrationtests",
  713. "jemalloc5_unittests",
  714. "ld_config_test_helper",
  715. "ld_preload_test_helper",
  716. "libBionicCtsGtestMain", // depends on unconverted modules: libgtest_isolated
  717. "libBionicLoaderTests", // depends on unconverted modules: libmeminfo
  718. "libapexutil_tests", // depends on unconverted modules: apex-info-list-tinyxml, libapexutil
  719. "libcutils_sockets_test",
  720. "libexpectedutils_test",
  721. "libhwbinder_latency",
  722. "liblog-host-test", // failing tests
  723. "libminijail_test",
  724. "libminijail_unittest_gtest",
  725. "libpackagelistparser_test",
  726. "libprotobuf_vendor_suffix_test",
  727. "libstagefright_amrnbdec_test", // depends on unconverted modules: libsndfile, libaudioutils
  728. "libstagefright_amrnbenc_test",
  729. "libstagefright_amrwbdec_test", // depends on unconverted modules: libsndfile, libaudioutils
  730. "libstagefright_m4vh263enc_test",
  731. "libstagefright_mp3dec_test", // depends on unconverted modules: libsndfile, libaudioutils
  732. "libstatssocket_test",
  733. "libvndksupport-tests",
  734. "libyuv_unittest",
  735. "linker-unit-tests",
  736. "malloc_debug_system_tests",
  737. "malloc_debug_unit_tests",
  738. "malloc_hooks_system_tests",
  739. "mat_test",
  740. "mathtest",
  741. "memunreachable_binder_test", // depends on unconverted modules: libbinder
  742. "memunreachable_test",
  743. "metadata_tests",
  744. "minijail0_cli_unittest_gtest",
  745. "mpeg2dec",
  746. "mvcdec",
  747. "ns_hidden_child_helper",
  748. "pngtest",
  749. "preinit_getauxval_test_helper",
  750. "preinit_syscall_test_helper",
  751. "psnr",
  752. "quat_test",
  753. "rappor-tests", // depends on unconverted modules: jsr305, guava
  754. "scudo_unit_tests",
  755. "stats-log-api-gen-test", // depends on unconverted modules: libstats_proto_host
  756. "syscall_filter_unittest_gtest",
  757. "sysprop_test", // depends on unconverted modules: libcom.android.sysprop.tests
  758. "thread_exit_cb_helper",
  759. "tls_properties_helper",
  760. "ulp",
  761. "vec_test",
  762. "yuvconstants",
  763. "yuvconvert",
  764. "zipalign_tests",
  765. // cc_test_library
  766. "clang_diagnostic_tests",
  767. "exec_linker_helper_lib",
  768. "fortify_disabled_for_tidy",
  769. "ld_config_test_helper_lib1",
  770. "ld_config_test_helper_lib2",
  771. "ld_config_test_helper_lib3",
  772. "ld_preload_test_helper_lib1",
  773. "ld_preload_test_helper_lib2",
  774. "libBionicElfTlsLoaderTests",
  775. "libBionicElfTlsTests",
  776. "libBionicElfTlsTests",
  777. "libBionicFramePointerTests",
  778. "libBionicFramePointerTests",
  779. "libBionicStandardTests",
  780. "libBionicStandardTests",
  781. "libBionicTests",
  782. "libart-broken",
  783. "libatest_simple_zip",
  784. "libcfi-test",
  785. "libcfi-test-bad",
  786. "libcrash_test",
  787. // "libcrypto_fuzz_unsafe",
  788. "libdl_preempt_test_1",
  789. "libdl_preempt_test_2",
  790. "libdl_test_df_1_global",
  791. "libdlext_test",
  792. "libdlext_test_different_soname",
  793. "libdlext_test_fd",
  794. "libdlext_test_norelro",
  795. "libdlext_test_recursive",
  796. "libdlext_test_zip",
  797. "libfortify1-new-tests-clang",
  798. "libfortify1-new-tests-clang",
  799. "libfortify1-tests-clang",
  800. "libfortify1-tests-clang",
  801. "libfortify2-new-tests-clang",
  802. "libfortify2-new-tests-clang",
  803. "libfortify2-tests-clang",
  804. "libfortify2-tests-clang",
  805. "libgnu-hash-table-library",
  806. "libicutest_static",
  807. "liblinker_reloc_bench_000",
  808. "liblinker_reloc_bench_001",
  809. "liblinker_reloc_bench_002",
  810. "liblinker_reloc_bench_003",
  811. "liblinker_reloc_bench_004",
  812. "liblinker_reloc_bench_005",
  813. "liblinker_reloc_bench_006",
  814. "liblinker_reloc_bench_007",
  815. "liblinker_reloc_bench_008",
  816. "liblinker_reloc_bench_009",
  817. "liblinker_reloc_bench_010",
  818. "liblinker_reloc_bench_011",
  819. "liblinker_reloc_bench_012",
  820. "liblinker_reloc_bench_013",
  821. "liblinker_reloc_bench_014",
  822. "liblinker_reloc_bench_015",
  823. "liblinker_reloc_bench_016",
  824. "liblinker_reloc_bench_017",
  825. "liblinker_reloc_bench_018",
  826. "liblinker_reloc_bench_019",
  827. "liblinker_reloc_bench_020",
  828. "liblinker_reloc_bench_021",
  829. "liblinker_reloc_bench_022",
  830. "liblinker_reloc_bench_023",
  831. "liblinker_reloc_bench_024",
  832. "liblinker_reloc_bench_025",
  833. "liblinker_reloc_bench_026",
  834. "liblinker_reloc_bench_027",
  835. "liblinker_reloc_bench_028",
  836. "liblinker_reloc_bench_029",
  837. "liblinker_reloc_bench_030",
  838. "liblinker_reloc_bench_031",
  839. "liblinker_reloc_bench_032",
  840. "liblinker_reloc_bench_033",
  841. "liblinker_reloc_bench_034",
  842. "liblinker_reloc_bench_035",
  843. "liblinker_reloc_bench_036",
  844. "liblinker_reloc_bench_037",
  845. "liblinker_reloc_bench_038",
  846. "liblinker_reloc_bench_039",
  847. "liblinker_reloc_bench_040",
  848. "liblinker_reloc_bench_041",
  849. "liblinker_reloc_bench_042",
  850. "liblinker_reloc_bench_043",
  851. "liblinker_reloc_bench_044",
  852. "liblinker_reloc_bench_045",
  853. "liblinker_reloc_bench_046",
  854. "liblinker_reloc_bench_047",
  855. "liblinker_reloc_bench_048",
  856. "liblinker_reloc_bench_049",
  857. "liblinker_reloc_bench_050",
  858. "liblinker_reloc_bench_051",
  859. "liblinker_reloc_bench_052",
  860. "liblinker_reloc_bench_053",
  861. "liblinker_reloc_bench_054",
  862. "liblinker_reloc_bench_055",
  863. "liblinker_reloc_bench_056",
  864. "liblinker_reloc_bench_057",
  865. "liblinker_reloc_bench_058",
  866. "liblinker_reloc_bench_059",
  867. "liblinker_reloc_bench_060",
  868. "liblinker_reloc_bench_061",
  869. "liblinker_reloc_bench_062",
  870. "liblinker_reloc_bench_063",
  871. "liblinker_reloc_bench_064",
  872. "liblinker_reloc_bench_065",
  873. "liblinker_reloc_bench_066",
  874. "liblinker_reloc_bench_067",
  875. "liblinker_reloc_bench_068",
  876. "liblinker_reloc_bench_069",
  877. "liblinker_reloc_bench_070",
  878. "liblinker_reloc_bench_071",
  879. "liblinker_reloc_bench_072",
  880. "liblinker_reloc_bench_073",
  881. "liblinker_reloc_bench_074",
  882. "liblinker_reloc_bench_075",
  883. "liblinker_reloc_bench_076",
  884. "liblinker_reloc_bench_077",
  885. "liblinker_reloc_bench_078",
  886. "liblinker_reloc_bench_079",
  887. "liblinker_reloc_bench_080",
  888. "liblinker_reloc_bench_081",
  889. "liblinker_reloc_bench_082",
  890. "liblinker_reloc_bench_083",
  891. "liblinker_reloc_bench_084",
  892. "liblinker_reloc_bench_085",
  893. "liblinker_reloc_bench_086",
  894. "liblinker_reloc_bench_087",
  895. "liblinker_reloc_bench_088",
  896. "liblinker_reloc_bench_089",
  897. "liblinker_reloc_bench_090",
  898. "liblinker_reloc_bench_091",
  899. "liblinker_reloc_bench_092",
  900. "liblinker_reloc_bench_093",
  901. "liblinker_reloc_bench_094",
  902. "liblinker_reloc_bench_095",
  903. "liblinker_reloc_bench_096",
  904. "liblinker_reloc_bench_097",
  905. "liblinker_reloc_bench_098",
  906. "liblinker_reloc_bench_099",
  907. "liblinker_reloc_bench_100",
  908. "liblinker_reloc_bench_101",
  909. "liblinker_reloc_bench_102",
  910. "liblinker_reloc_bench_103",
  911. "liblinker_reloc_bench_104",
  912. "liblinker_reloc_bench_105",
  913. "liblinker_reloc_bench_106",
  914. "liblinker_reloc_bench_107",
  915. "liblinker_reloc_bench_108",
  916. "liblinker_reloc_bench_109",
  917. "liblinker_reloc_bench_110",
  918. "liblinker_reloc_bench_111",
  919. "liblinker_reloc_bench_112",
  920. "liblinker_reloc_bench_113",
  921. "liblinker_reloc_bench_114",
  922. "liblinker_reloc_bench_115",
  923. "liblinker_reloc_bench_116",
  924. "liblinker_reloc_bench_117",
  925. "liblinker_reloc_bench_118",
  926. "liblinker_reloc_bench_119",
  927. "liblinker_reloc_bench_120",
  928. "liblinker_reloc_bench_121",
  929. "liblinker_reloc_bench_122",
  930. "liblinker_reloc_bench_123",
  931. "liblinker_reloc_bench_124",
  932. "liblinker_reloc_bench_125",
  933. "liblinker_reloc_bench_126",
  934. "liblinker_reloc_bench_127",
  935. "liblinker_reloc_bench_128",
  936. "liblinker_reloc_bench_129",
  937. "liblinker_reloc_bench_130",
  938. "liblinker_reloc_bench_131",
  939. "liblinker_reloc_bench_132",
  940. "liblinker_reloc_bench_133",
  941. "liblinker_reloc_bench_134",
  942. "liblinker_reloc_bench_135",
  943. "liblinker_reloc_bench_136",
  944. "liblinker_reloc_bench_137",
  945. "liblinker_reloc_bench_138",
  946. "liblinker_reloc_bench_139",
  947. "liblinker_reloc_bench_140",
  948. "liblinker_reloc_bench_141",
  949. "liblinker_reloc_bench_142",
  950. "liblinker_reloc_bench_143",
  951. "liblinker_reloc_bench_144",
  952. "liblinker_reloc_bench_145",
  953. "liblinker_reloc_bench_146",
  954. "liblinker_reloc_bench_147",
  955. "liblinker_reloc_bench_148",
  956. "liblinker_reloc_bench_149",
  957. "liblinker_reloc_bench_150",
  958. "liblinker_reloc_bench_151",
  959. "liblinker_reloc_bench_152",
  960. "liblinker_reloc_bench_153",
  961. "liblinker_reloc_bench_154",
  962. "liblinker_reloc_bench_155",
  963. "liblinker_reloc_bench_156",
  964. "liblinker_reloc_bench_157",
  965. "liblinker_reloc_bench_158",
  966. "liblinker_reloc_bench_159",
  967. "liblinker_reloc_bench_160",
  968. "liblinker_reloc_bench_161",
  969. "liblinker_reloc_bench_162",
  970. "liblinker_reloc_bench_163",
  971. "liblinker_reloc_bench_164",
  972. "liblinker_reloc_bench_165",
  973. "liblinker_reloc_bench_166",
  974. "liblinker_reloc_bench_167",
  975. "liblinker_reloc_bench_168",
  976. "libns_hidden_child_app",
  977. "libns_hidden_child_global",
  978. "libns_hidden_child_internal",
  979. "libns_hidden_child_public",
  980. "libnstest_dlopened",
  981. "libnstest_ns_a_public1",
  982. "libnstest_ns_a_public1_internal",
  983. "libnstest_ns_b_public2",
  984. "libnstest_ns_b_public3",
  985. "libnstest_private",
  986. "libnstest_private_external",
  987. "libnstest_public",
  988. "libnstest_public_internal",
  989. "libnstest_root",
  990. "libnstest_root_not_isolated",
  991. "librelocations-ANDROID_REL",
  992. "librelocations-ANDROID_RELR",
  993. "librelocations-RELR",
  994. "librelocations-fat",
  995. "libsegment_gap_inner",
  996. "libsegment_gap_outer",
  997. // "libssl_fuzz_unsafe",
  998. "libstatssocket_private",
  999. "libsysv-hash-table-library",
  1000. "libtest_atexit",
  1001. "libtest_check_order_dlsym",
  1002. "libtest_check_order_dlsym_1_left",
  1003. "libtest_check_order_dlsym_2_right",
  1004. "libtest_check_order_dlsym_3_c",
  1005. "libtest_check_order_dlsym_a",
  1006. "libtest_check_order_dlsym_b",
  1007. "libtest_check_order_dlsym_d",
  1008. "libtest_check_order_reloc_root",
  1009. "libtest_check_order_reloc_root_1",
  1010. "libtest_check_order_reloc_root_2",
  1011. "libtest_check_order_reloc_siblings",
  1012. "libtest_check_order_reloc_siblings_1",
  1013. "libtest_check_order_reloc_siblings_2",
  1014. "libtest_check_order_reloc_siblings_3",
  1015. "libtest_check_order_reloc_siblings_a",
  1016. "libtest_check_order_reloc_siblings_b",
  1017. "libtest_check_order_reloc_siblings_c",
  1018. "libtest_check_order_reloc_siblings_c_1",
  1019. "libtest_check_order_reloc_siblings_c_2",
  1020. "libtest_check_order_reloc_siblings_d",
  1021. "libtest_check_order_reloc_siblings_e",
  1022. "libtest_check_order_reloc_siblings_f",
  1023. "libtest_check_rtld_next_from_library",
  1024. "libtest_dlopen_df_1_global",
  1025. "libtest_dlopen_from_ctor",
  1026. "libtest_dlopen_from_ctor_main",
  1027. "libtest_dlopen_weak_undefined_func",
  1028. "libtest_dlsym_df_1_global",
  1029. "libtest_dlsym_from_this",
  1030. "libtest_dlsym_from_this_child",
  1031. "libtest_dlsym_from_this_grandchild",
  1032. "libtest_dlsym_weak_func",
  1033. "libtest_dt_runpath_a",
  1034. "libtest_dt_runpath_b",
  1035. "libtest_dt_runpath_c",
  1036. "libtest_dt_runpath_d",
  1037. "libtest_dt_runpath_d_zip",
  1038. "libtest_dt_runpath_x",
  1039. "libtest_dt_runpath_y",
  1040. "libtest_elftls_dynamic",
  1041. "libtest_elftls_dynamic_filler_1",
  1042. "libtest_elftls_dynamic_filler_2",
  1043. "libtest_elftls_dynamic_filler_3",
  1044. "libtest_elftls_shared_var",
  1045. "libtest_elftls_shared_var_ie",
  1046. "libtest_elftls_tprel",
  1047. "libtest_empty",
  1048. "libtest_ifunc",
  1049. "libtest_ifunc_variable",
  1050. "libtest_ifunc_variable_impl",
  1051. "libtest_indirect_thread_local_dtor",
  1052. "libtest_init_fini_order_child",
  1053. "libtest_init_fini_order_grand_child",
  1054. "libtest_init_fini_order_root",
  1055. "libtest_init_fini_order_root2",
  1056. "libtest_missing_symbol",
  1057. "libtest_missing_symbol_child_private",
  1058. "libtest_missing_symbol_child_public",
  1059. "libtest_missing_symbol_root",
  1060. "libtest_nodelete_1",
  1061. "libtest_nodelete_2",
  1062. "libtest_nodelete_dt_flags_1",
  1063. "libtest_pthread_atfork",
  1064. "libtest_relo_check_dt_needed_order",
  1065. "libtest_relo_check_dt_needed_order_1",
  1066. "libtest_relo_check_dt_needed_order_2",
  1067. "libtest_simple",
  1068. "libtest_thread_local_dtor",
  1069. "libtest_thread_local_dtor2",
  1070. "libtest_two_parents_child",
  1071. "libtest_two_parents_parent1",
  1072. "libtest_two_parents_parent2",
  1073. "libtest_versioned_lib",
  1074. "libtest_versioned_libv1",
  1075. "libtest_versioned_libv2",
  1076. "libtest_versioned_otherlib",
  1077. "libtest_versioned_otherlib_empty",
  1078. "libtest_versioned_uselibv1",
  1079. "libtest_versioned_uselibv2",
  1080. "libtest_versioned_uselibv2_other",
  1081. "libtest_versioned_uselibv3_other",
  1082. "libtest_with_dependency",
  1083. "libtest_with_dependency_loop",
  1084. "libtest_with_dependency_loop_a",
  1085. "libtest_with_dependency_loop_b",
  1086. "libtest_with_dependency_loop_b_tmp",
  1087. "libtest_with_dependency_loop_c",
  1088. "libtestshared",
  1089. // depends on unconverted libprotobuf-java-nano
  1090. "dnsresolverprotosnano",
  1091. "launcherprotosnano",
  1092. "datastallprotosnano",
  1093. "devicepolicyprotosnano",
  1094. }
  1095. Bp2buildCcLibraryStaticOnlyList = []string{}
  1096. MixedBuildsDisabledList = []string{
  1097. "libruy_static", "libtflite_kernel_utils", // TODO(b/237315968); Depend on prebuilt stl, not from source
  1098. "art_libdexfile_dex_instruction_list_header", // breaks libart_mterp.armng, header not found
  1099. "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
  1100. "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.
  1101. "cap_names.h", // TODO(b/204913827) runfiles need to be handled in mixed builds
  1102. "libcap", // TODO(b/204913827) runfiles need to be handled in mixed builds
  1103. "libprotobuf-cpp-full", "libprotobuf-cpp-lite", // Unsupported product&vendor suffix. b/204811222 and b/204810610.
  1104. // Depends on libprotobuf-cpp-*
  1105. "libadb_pairing_connection",
  1106. "libadb_pairing_connection_static",
  1107. "libadb_pairing_server", "libadb_pairing_server_static",
  1108. // TODO(b/240563612) Needing `stem` selection support for cc_binary
  1109. "crasher",
  1110. // java_import[_host] issues
  1111. // tradefed prebuilts depend on libprotobuf
  1112. "prebuilt_tradefed",
  1113. "prebuilt_tradefed-test-framework",
  1114. // handcrafted BUILD.bazel files in //prebuilts/...
  1115. "prebuilt_r8lib-prebuilt",
  1116. "prebuilt_sdk-core-lambda-stubs",
  1117. "prebuilt_android-support-collections-nodeps",
  1118. "prebuilt_android-arch-core-common-nodeps",
  1119. "prebuilt_android-arch-lifecycle-common-java8-nodeps",
  1120. "prebuilt_android-arch-lifecycle-common-nodeps",
  1121. "prebuilt_android-support-annotations-nodeps",
  1122. "prebuilt_android-arch-paging-common-nodeps",
  1123. "prebuilt_android-arch-room-common-nodeps",
  1124. // TODO(b/217750501) exclude_dirs property not supported
  1125. "prebuilt_kotlin-reflect",
  1126. "prebuilt_kotlin-stdlib",
  1127. "prebuilt_kotlin-stdlib-jdk7",
  1128. "prebuilt_kotlin-stdlib-jdk8",
  1129. "prebuilt_kotlin-test",
  1130. // TODO(b/217750501) exclude_files property not supported
  1131. "prebuilt_platform-robolectric-4.4-prebuilt",
  1132. "prebuilt_platform-robolectric-4.5.1-prebuilt",
  1133. "prebuilt_currysrc_org.eclipse",
  1134. // TODO(b/247782695 and/or b/242847534) Fix mixed build between unconverted gensrcs and converted filegroup
  1135. "libstats_atom_enum_protos",
  1136. "data_stall_event_proto",
  1137. "device_policy_proto",
  1138. "dns_resolver_proto",
  1139. "launcher_proto",
  1140. "network_stack_proto",
  1141. "srcs_bluetooth_protos",
  1142. "srcs_bluetooth_leaudio_protos",
  1143. "style_proto",
  1144. "tethering_proto",
  1145. "text_classifier_proto",
  1146. "libstats_atom_message_protos",
  1147. }
  1148. ProdMixedBuildsEnabledList = []string{
  1149. "com.android.adbd",
  1150. }
  1151. )