allowlists.go 55 KB

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