allowlists.go 57 KB

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