allowlists.go 71 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636
  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. // all modules in this package and subpackages default to bp2build_available: false.
  31. // allows modules to opt-in.
  32. Bp2BuildDefaultFalseRecursively
  33. // Modules with build time of more than half a minute should have high priority.
  34. DEFAULT_PRIORITIZED_WEIGHT = 1000
  35. // Modules with build time of more than a few minute should have higher priority.
  36. HIGH_PRIORITIZED_WEIGHT = 10 * DEFAULT_PRIORITIZED_WEIGHT
  37. // Modules with inputs greater than the threshold should have high priority.
  38. // Adjust this threshold if there are lots of wrong predictions.
  39. INPUT_SIZE_THRESHOLD = 50
  40. )
  41. var (
  42. Bp2buildDefaultConfig = Bp2BuildConfig{
  43. "art": Bp2BuildDefaultTrue,
  44. "art/libartbase": Bp2BuildDefaultTrueRecursively,
  45. "art/libartpalette": Bp2BuildDefaultTrueRecursively,
  46. "art/libdexfile": Bp2BuildDefaultTrueRecursively,
  47. "art/libnativebridge": Bp2BuildDefaultTrueRecursively,
  48. "art/runtime": Bp2BuildDefaultTrueRecursively,
  49. "art/tools": Bp2BuildDefaultTrue,
  50. "bionic": Bp2BuildDefaultTrueRecursively,
  51. "bootable/recovery/applypatch": Bp2BuildDefaultTrue,
  52. "bootable/recovery/minadbd": Bp2BuildDefaultTrue,
  53. "bootable/recovery/minui": Bp2BuildDefaultTrue,
  54. "bootable/recovery/recovery_utils": Bp2BuildDefaultTrue,
  55. "bootable/recovery/tools/recovery_l10n": Bp2BuildDefaultTrue,
  56. "build/bazel": Bp2BuildDefaultTrueRecursively,
  57. "build/make/target/product/security": Bp2BuildDefaultTrue,
  58. "build/make/tools/protos": Bp2BuildDefaultTrue,
  59. "build/make/tools/releasetools": Bp2BuildDefaultTrue,
  60. "build/make/tools/sbom": Bp2BuildDefaultTrue,
  61. "build/make/tools/signapk": Bp2BuildDefaultTrue,
  62. "build/make/tools/zipalign": Bp2BuildDefaultTrueRecursively,
  63. "build/soong": Bp2BuildDefaultTrue,
  64. "build/soong/cc/libbuildversion": Bp2BuildDefaultTrue, // Skip tests subdir
  65. "build/soong/cc/ndkstubgen": Bp2BuildDefaultTrue,
  66. "build/soong/cc/symbolfile": Bp2BuildDefaultTrue,
  67. "build/soong/licenses": Bp2BuildDefaultTrue,
  68. "build/soong/linkerconfig": Bp2BuildDefaultTrueRecursively,
  69. "build/soong/scripts": Bp2BuildDefaultTrueRecursively,
  70. "cts/common/device-side/nativetesthelper/jni": Bp2BuildDefaultTrueRecursively,
  71. "dalvik/tools/dexdeps": Bp2BuildDefaultTrueRecursively,
  72. "development/apps/DevelopmentSettings": Bp2BuildDefaultTrue,
  73. "development/apps/Fallback": Bp2BuildDefaultTrue,
  74. "development/apps/WidgetPreview": Bp2BuildDefaultTrue,
  75. "development/python-packages/adb": Bp2BuildDefaultTrueRecursively,
  76. "development/samples/BasicGLSurfaceView": Bp2BuildDefaultTrue,
  77. "development/samples/BluetoothChat": Bp2BuildDefaultTrue,
  78. "development/samples/BrokenKeyDerivation": Bp2BuildDefaultTrue,
  79. "development/samples/Compass": Bp2BuildDefaultTrue,
  80. "development/samples/ContactManager": Bp2BuildDefaultTrue,
  81. "development/samples/FixedGridLayout": Bp2BuildDefaultTrue,
  82. "development/samples/HelloEffects": Bp2BuildDefaultTrue,
  83. "development/samples/Home": Bp2BuildDefaultTrue,
  84. "development/samples/HoneycombGallery": Bp2BuildDefaultTrue,
  85. "development/samples/JetBoy": Bp2BuildDefaultTrue,
  86. "development/samples/KeyChainDemo": Bp2BuildDefaultTrue,
  87. "development/samples/LceDemo": Bp2BuildDefaultTrue,
  88. "development/samples/LunarLander": Bp2BuildDefaultTrue,
  89. "development/samples/MultiResolution": Bp2BuildDefaultTrue,
  90. "development/samples/MultiWindow": Bp2BuildDefaultTrue,
  91. "development/samples/NotePad": Bp2BuildDefaultTrue,
  92. "development/samples/Obb": Bp2BuildDefaultTrue,
  93. "development/samples/RSSReader": Bp2BuildDefaultTrue,
  94. "development/samples/ReceiveShareDemo": Bp2BuildDefaultTrue,
  95. "development/samples/SearchableDictionary": Bp2BuildDefaultTrue,
  96. "development/samples/SipDemo": Bp2BuildDefaultTrue,
  97. "development/samples/SkeletonApp": Bp2BuildDefaultTrue,
  98. "development/samples/Snake": Bp2BuildDefaultTrue,
  99. "development/samples/SpellChecker/": Bp2BuildDefaultTrueRecursively,
  100. "development/samples/ThemedNavBarKeyboard": Bp2BuildDefaultTrue,
  101. "development/samples/ToyVpn": Bp2BuildDefaultTrue,
  102. "development/samples/TtsEngine": Bp2BuildDefaultTrue,
  103. "development/samples/USB/AdbTest": Bp2BuildDefaultTrue,
  104. "development/samples/USB/MissileLauncher": Bp2BuildDefaultTrue,
  105. "development/samples/VoiceRecognitionService": Bp2BuildDefaultTrue,
  106. "development/samples/VoicemailProviderDemo": Bp2BuildDefaultTrue,
  107. "development/samples/WiFiDirectDemo": Bp2BuildDefaultTrue,
  108. "development/sdk": Bp2BuildDefaultTrueRecursively,
  109. "external/aac": Bp2BuildDefaultTrueRecursively,
  110. "external/arm-optimized-routines": Bp2BuildDefaultTrueRecursively,
  111. "external/auto": Bp2BuildDefaultTrue,
  112. "external/auto/android-annotation-stubs": Bp2BuildDefaultTrueRecursively,
  113. "external/auto/common": Bp2BuildDefaultTrueRecursively,
  114. "external/auto/service": Bp2BuildDefaultTrueRecursively,
  115. "external/boringssl": Bp2BuildDefaultTrueRecursively,
  116. "external/bouncycastle": Bp2BuildDefaultTrue,
  117. "external/brotli": Bp2BuildDefaultTrue,
  118. "external/bsdiff": Bp2BuildDefaultTrueRecursively,
  119. "external/bzip2": Bp2BuildDefaultTrueRecursively,
  120. "external/conscrypt": Bp2BuildDefaultTrue,
  121. "external/e2fsprogs": Bp2BuildDefaultTrueRecursively,
  122. "external/eigen": Bp2BuildDefaultTrueRecursively,
  123. "external/erofs-utils": Bp2BuildDefaultTrueRecursively,
  124. "external/error_prone": Bp2BuildDefaultTrueRecursively,
  125. "external/escapevelocity": Bp2BuildDefaultTrueRecursively,
  126. "external/expat": Bp2BuildDefaultTrueRecursively,
  127. "external/f2fs-tools": Bp2BuildDefaultTrue,
  128. "external/flac": Bp2BuildDefaultTrueRecursively,
  129. "external/fmtlib": Bp2BuildDefaultTrueRecursively,
  130. "external/fsverity-utils": Bp2BuildDefaultTrueRecursively,
  131. "external/guava": Bp2BuildDefaultTrueRecursively,
  132. "external/google-benchmark": Bp2BuildDefaultTrueRecursively,
  133. "external/googletest": Bp2BuildDefaultTrueRecursively,
  134. "external/gwp_asan": Bp2BuildDefaultTrueRecursively,
  135. "external/hamcrest": Bp2BuildDefaultTrueRecursively,
  136. "external/icu": Bp2BuildDefaultTrueRecursively,
  137. "external/icu/android_icu4j": Bp2BuildDefaultFalse, // java rules incomplete
  138. "external/icu/icu4j": Bp2BuildDefaultFalse, // java rules incomplete
  139. "external/jacoco": Bp2BuildDefaultTrueRecursively,
  140. "external/jarjar": Bp2BuildDefaultTrueRecursively,
  141. "external/javaparser": Bp2BuildDefaultTrueRecursively,
  142. "external/javapoet": Bp2BuildDefaultTrueRecursively,
  143. "external/javassist": Bp2BuildDefaultTrueRecursively,
  144. "external/jemalloc_new": Bp2BuildDefaultTrueRecursively,
  145. "external/jsoncpp": Bp2BuildDefaultTrueRecursively,
  146. "external/jsr305": Bp2BuildDefaultTrueRecursively,
  147. "external/jsr330": Bp2BuildDefaultTrueRecursively,
  148. "external/junit": Bp2BuildDefaultTrueRecursively,
  149. "external/kotlinc": Bp2BuildDefaultTrueRecursively,
  150. "external/libaom": Bp2BuildDefaultTrueRecursively,
  151. "external/libavc": Bp2BuildDefaultTrueRecursively,
  152. "external/libcap": Bp2BuildDefaultTrueRecursively,
  153. "external/libcxx": Bp2BuildDefaultTrueRecursively,
  154. "external/libcxxabi": Bp2BuildDefaultTrueRecursively,
  155. "external/libdivsufsort": Bp2BuildDefaultTrueRecursively,
  156. "external/libdrm": Bp2BuildDefaultTrue,
  157. "external/libevent": Bp2BuildDefaultTrueRecursively,
  158. "external/libgav1": Bp2BuildDefaultTrueRecursively,
  159. "external/libhevc": Bp2BuildDefaultTrueRecursively,
  160. "external/libjpeg-turbo": Bp2BuildDefaultTrueRecursively,
  161. "external/libmpeg2": Bp2BuildDefaultTrueRecursively,
  162. "external/libpng": Bp2BuildDefaultTrueRecursively,
  163. "external/libvpx": Bp2BuildDefaultTrueRecursively,
  164. "external/libyuv": Bp2BuildDefaultTrueRecursively,
  165. "external/lz4/lib": Bp2BuildDefaultTrue,
  166. "external/lz4/programs": Bp2BuildDefaultTrue,
  167. "external/lzma/C": Bp2BuildDefaultTrueRecursively,
  168. "external/mdnsresponder": Bp2BuildDefaultTrueRecursively,
  169. "external/minijail": Bp2BuildDefaultTrueRecursively,
  170. "external/musl": Bp2BuildDefaultTrueRecursively,
  171. "external/objenesis": Bp2BuildDefaultTrueRecursively,
  172. "external/openscreen": Bp2BuildDefaultTrueRecursively,
  173. "external/ow2-asm": Bp2BuildDefaultTrueRecursively,
  174. "external/pcre": Bp2BuildDefaultTrueRecursively,
  175. "external/protobuf": Bp2BuildDefaultTrueRecursively,
  176. "external/python/six": Bp2BuildDefaultTrueRecursively,
  177. "external/rappor": Bp2BuildDefaultTrueRecursively,
  178. "external/scudo": Bp2BuildDefaultTrueRecursively,
  179. "external/selinux/checkpolicy": Bp2BuildDefaultTrueRecursively,
  180. "external/selinux/libselinux": Bp2BuildDefaultTrueRecursively,
  181. "external/selinux/libsepol": Bp2BuildDefaultTrueRecursively,
  182. "external/speex": Bp2BuildDefaultTrueRecursively,
  183. "external/sqlite": Bp2BuildDefaultTrueRecursively,
  184. "external/tinyalsa": Bp2BuildDefaultTrueRecursively,
  185. "external/tinyalsa_new": Bp2BuildDefaultTrueRecursively,
  186. "external/toybox": Bp2BuildDefaultTrueRecursively,
  187. "external/zlib": Bp2BuildDefaultTrueRecursively,
  188. "external/zopfli": Bp2BuildDefaultTrueRecursively,
  189. "external/zstd": Bp2BuildDefaultTrueRecursively,
  190. "frameworks/av": Bp2BuildDefaultTrue,
  191. "frameworks/av/media/audioaidlconversion": Bp2BuildDefaultTrueRecursively,
  192. "frameworks/av/media/codec2/components/aom": Bp2BuildDefaultTrueRecursively,
  193. "frameworks/av/media/codecs": Bp2BuildDefaultTrueRecursively,
  194. "frameworks/av/media/liberror": Bp2BuildDefaultTrueRecursively,
  195. "frameworks/av/media/libmediahelper": Bp2BuildDefaultTrue,
  196. "frameworks/av/media/libshmem": Bp2BuildDefaultTrueRecursively,
  197. "frameworks/av/media/module/codecs": Bp2BuildDefaultTrueRecursively,
  198. "frameworks/av/media/module/foundation": Bp2BuildDefaultTrueRecursively,
  199. "frameworks/av/media/module/minijail": Bp2BuildDefaultTrueRecursively,
  200. "frameworks/av/services/minijail": Bp2BuildDefaultTrueRecursively,
  201. "frameworks/base/libs/androidfw": Bp2BuildDefaultTrue,
  202. "frameworks/base/libs/services": Bp2BuildDefaultTrue,
  203. "frameworks/base/media/tests/MediaDump": Bp2BuildDefaultTrue,
  204. "frameworks/base/proto": Bp2BuildDefaultTrue,
  205. "frameworks/base/services/tests/servicestests/aidl": Bp2BuildDefaultTrue,
  206. "frameworks/base/startop/apps/test": Bp2BuildDefaultTrue,
  207. "frameworks/base/tests/appwidgets/AppWidgetHostTest": Bp2BuildDefaultTrueRecursively,
  208. "frameworks/base/tools/aapt2": Bp2BuildDefaultTrue,
  209. "frameworks/base/tools/codegen": Bp2BuildDefaultTrueRecursively,
  210. "frameworks/base/tools/streaming_proto": Bp2BuildDefaultTrueRecursively,
  211. "frameworks/hardware/interfaces/stats/aidl": Bp2BuildDefaultTrue,
  212. "frameworks/libs/modules-utils/build": Bp2BuildDefaultTrueRecursively,
  213. "frameworks/libs/net/common/native": Bp2BuildDefaultTrueRecursively,
  214. "frameworks/native/libs/adbd_auth": Bp2BuildDefaultTrueRecursively,
  215. "frameworks/native/libs/arect": Bp2BuildDefaultTrueRecursively,
  216. "frameworks/native/libs/gui": Bp2BuildDefaultTrue,
  217. "frameworks/native/libs/math": Bp2BuildDefaultTrueRecursively,
  218. "frameworks/native/libs/nativebase": Bp2BuildDefaultTrueRecursively,
  219. "frameworks/native/libs/permission": Bp2BuildDefaultTrueRecursively,
  220. "frameworks/native/libs/vr": Bp2BuildDefaultTrueRecursively,
  221. "frameworks/native/opengl/tests/gl2_cameraeye": Bp2BuildDefaultTrue,
  222. "frameworks/native/opengl/tests/gl2_java": Bp2BuildDefaultTrue,
  223. "frameworks/native/opengl/tests/testLatency": Bp2BuildDefaultTrue,
  224. "frameworks/native/opengl/tests/testPauseResume": Bp2BuildDefaultTrue,
  225. "frameworks/native/opengl/tests/testViewport": Bp2BuildDefaultTrue,
  226. "frameworks/native/services/batteryservice": Bp2BuildDefaultTrue,
  227. "frameworks/proto_logging/stats": Bp2BuildDefaultTrueRecursively,
  228. "hardware/interfaces": Bp2BuildDefaultTrue,
  229. "hardware/interfaces/audio/aidl": Bp2BuildDefaultTrue,
  230. "hardware/interfaces/audio/aidl/common": Bp2BuildDefaultTrue,
  231. "hardware/interfaces/audio/aidl/default": Bp2BuildDefaultTrue,
  232. "hardware/interfaces/audio/aidl/sounddose": Bp2BuildDefaultTrue,
  233. "hardware/interfaces/common/aidl": Bp2BuildDefaultTrue,
  234. "hardware/interfaces/common/fmq/aidl": Bp2BuildDefaultTrue,
  235. "hardware/interfaces/common/support": Bp2BuildDefaultTrue,
  236. "hardware/interfaces/configstore/1.0": Bp2BuildDefaultTrue,
  237. "hardware/interfaces/configstore/1.1": Bp2BuildDefaultTrue,
  238. "hardware/interfaces/configstore/utils": Bp2BuildDefaultTrue,
  239. "hardware/interfaces/graphics/allocator/2.0": Bp2BuildDefaultTrue,
  240. "hardware/interfaces/graphics/allocator/3.0": Bp2BuildDefaultTrue,
  241. "hardware/interfaces/graphics/allocator/4.0": Bp2BuildDefaultTrue,
  242. "hardware/interfaces/graphics/allocator/aidl": Bp2BuildDefaultTrue,
  243. "hardware/interfaces/graphics/bufferqueue/1.0": Bp2BuildDefaultTrue,
  244. "hardware/interfaces/graphics/bufferqueue/2.0": Bp2BuildDefaultTrue,
  245. "hardware/interfaces/graphics/common/1.0": Bp2BuildDefaultTrue,
  246. "hardware/interfaces/graphics/common/1.1": Bp2BuildDefaultTrue,
  247. "hardware/interfaces/graphics/common/1.2": Bp2BuildDefaultTrue,
  248. "hardware/interfaces/graphics/common/aidl": Bp2BuildDefaultTrue,
  249. "hardware/interfaces/graphics/mapper/2.0": Bp2BuildDefaultTrue,
  250. "hardware/interfaces/graphics/mapper/2.1": Bp2BuildDefaultTrue,
  251. "hardware/interfaces/graphics/mapper/3.0": Bp2BuildDefaultTrue,
  252. "hardware/interfaces/graphics/mapper/4.0": Bp2BuildDefaultTrue,
  253. "hardware/interfaces/health/1.0": Bp2BuildDefaultTrue,
  254. "hardware/interfaces/health/1.0/default": Bp2BuildDefaultTrue,
  255. "hardware/interfaces/health/2.0": Bp2BuildDefaultTrue,
  256. "hardware/interfaces/health/2.0/default": Bp2BuildDefaultTrue,
  257. "hardware/interfaces/health/2.0/utils": Bp2BuildDefaultTrueRecursively,
  258. "hardware/interfaces/health/2.1": Bp2BuildDefaultTrue,
  259. "hardware/interfaces/health/aidl": Bp2BuildDefaultTrue,
  260. "hardware/interfaces/health/utils": Bp2BuildDefaultTrueRecursively,
  261. "hardware/interfaces/media/1.0": Bp2BuildDefaultTrue,
  262. "hardware/interfaces/media/bufferpool": Bp2BuildDefaultTrueRecursively,
  263. "hardware/interfaces/media/bufferpool/aidl/default/tests": Bp2BuildDefaultFalseRecursively,
  264. "hardware/interfaces/media/c2/1.0": Bp2BuildDefaultTrue,
  265. "hardware/interfaces/media/c2/1.1": Bp2BuildDefaultTrue,
  266. "hardware/interfaces/media/c2/1.2": Bp2BuildDefaultTrue,
  267. "hardware/interfaces/media/omx/1.0": Bp2BuildDefaultTrue,
  268. "hardware/interfaces/neuralnetworks": Bp2BuildDefaultTrueRecursively,
  269. "hardware/interfaces/neuralnetworks/aidl/vts": Bp2BuildDefaultFalseRecursively,
  270. "hardware/interfaces/neuralnetworks/1.0/vts": Bp2BuildDefaultFalseRecursively,
  271. "hardware/interfaces/neuralnetworks/1.1/vts": Bp2BuildDefaultFalseRecursively,
  272. "hardware/interfaces/neuralnetworks/1.2/vts": Bp2BuildDefaultFalseRecursively,
  273. "hardware/interfaces/neuralnetworks/1.3/vts": Bp2BuildDefaultFalseRecursively,
  274. "hardware/interfaces/neuralnetworks/1.4/vts": Bp2BuildDefaultFalseRecursively,
  275. "libnativehelper": Bp2BuildDefaultTrueRecursively,
  276. "packages/apps/DevCamera": Bp2BuildDefaultTrue,
  277. "packages/apps/HTMLViewer": Bp2BuildDefaultTrue,
  278. "packages/apps/Protips": Bp2BuildDefaultTrue,
  279. "packages/apps/SafetyRegulatoryInfo": Bp2BuildDefaultTrue,
  280. "packages/apps/WallpaperPicker": Bp2BuildDefaultTrue,
  281. "packages/modules/NeuralNetworks/driver/cache": Bp2BuildDefaultTrueRecursively,
  282. "packages/modules/StatsD/lib/libstatssocket": Bp2BuildDefaultTrueRecursively,
  283. "packages/modules/adb": Bp2BuildDefaultTrue,
  284. "packages/modules/adb/apex": Bp2BuildDefaultTrue,
  285. "packages/modules/adb/crypto": Bp2BuildDefaultTrueRecursively,
  286. "packages/modules/adb/libs": Bp2BuildDefaultTrueRecursively,
  287. "packages/modules/adb/pairing_auth": Bp2BuildDefaultTrueRecursively,
  288. "packages/modules/adb/pairing_connection": Bp2BuildDefaultTrueRecursively,
  289. "packages/modules/adb/proto": Bp2BuildDefaultTrueRecursively,
  290. "packages/modules/adb/tls": Bp2BuildDefaultTrueRecursively,
  291. "packages/modules/Gki/libkver": Bp2BuildDefaultTrue,
  292. "packages/modules/NetworkStack/common/captiveportal": Bp2BuildDefaultTrue,
  293. "packages/modules/NeuralNetworks/apex": Bp2BuildDefaultTrue,
  294. "packages/modules/NeuralNetworks/apex/testing": Bp2BuildDefaultTrue,
  295. "packages/providers/MediaProvider/tools/dialogs": Bp2BuildDefaultFalse, // TODO(b/242834374)
  296. "packages/screensavers/Basic": Bp2BuildDefaultTrue,
  297. "packages/services/Car/tests/SampleRearViewCamera": Bp2BuildDefaultFalse, // TODO(b/242834321)
  298. "platform_testing/tests/example": Bp2BuildDefaultTrueRecursively,
  299. "prebuilts/clang/host/linux-x86": Bp2BuildDefaultTrueRecursively,
  300. "prebuilts/gradle-plugin": Bp2BuildDefaultTrueRecursively,
  301. "prebuilts/runtime/mainline/platform/sdk": Bp2BuildDefaultTrueRecursively,
  302. "prebuilts/sdk": Bp2BuildDefaultTrue,
  303. "prebuilts/sdk/current/androidx": Bp2BuildDefaultTrue,
  304. "prebuilts/sdk/current/androidx-legacy": Bp2BuildDefaultTrue,
  305. "prebuilts/sdk/current/extras/constraint-layout-x": Bp2BuildDefaultTrue,
  306. "prebuilts/sdk/current/extras/material-design-x": Bp2BuildDefaultTrue,
  307. "prebuilts/sdk/current/extras/app-toolkit": Bp2BuildDefaultTrue,
  308. "prebuilts/sdk/current/support": Bp2BuildDefaultTrue,
  309. "prebuilts/tools": Bp2BuildDefaultTrue,
  310. "prebuilts/tools/common/m2": Bp2BuildDefaultTrue,
  311. "sdk/dumpeventlog": Bp2BuildDefaultTrue,
  312. "sdk/eventanalyzer": Bp2BuildDefaultTrue,
  313. "system/apex": Bp2BuildDefaultFalse, // TODO(b/207466993): flaky failures
  314. "system/apex/apexer": Bp2BuildDefaultTrue,
  315. "system/apex/libs": Bp2BuildDefaultTrueRecursively,
  316. "system/apex/libs/libapexsupport": Bp2BuildDefaultFalseRecursively, // TODO(b/267572288): depends on rust
  317. "system/apex/proto": Bp2BuildDefaultTrueRecursively,
  318. "system/apex/tools": Bp2BuildDefaultTrueRecursively,
  319. "system/core/debuggerd": Bp2BuildDefaultTrueRecursively,
  320. "system/core/diagnose_usb": Bp2BuildDefaultTrueRecursively,
  321. "system/core/healthd": Bp2BuildDefaultTrue,
  322. "system/core/healthd/testdata": Bp2BuildDefaultTrue,
  323. "system/core/libasyncio": Bp2BuildDefaultTrue,
  324. "system/core/libcrypto_utils": Bp2BuildDefaultTrueRecursively,
  325. "system/core/libcutils": Bp2BuildDefaultTrueRecursively,
  326. "system/core/libpackagelistparser": Bp2BuildDefaultTrueRecursively,
  327. "system/core/libprocessgroup": Bp2BuildDefaultTrue,
  328. "system/core/libprocessgroup/cgrouprc": Bp2BuildDefaultTrue,
  329. "system/core/libprocessgroup/cgrouprc_format": Bp2BuildDefaultTrue,
  330. "system/core/libsparse": Bp2BuildDefaultTrueRecursively,
  331. "system/core/libsuspend": Bp2BuildDefaultTrue,
  332. "system/core/libsystem": Bp2BuildDefaultTrueRecursively,
  333. "system/core/libsysutils": Bp2BuildDefaultTrueRecursively,
  334. "system/core/libutils": Bp2BuildDefaultTrueRecursively,
  335. "system/core/libvndksupport": Bp2BuildDefaultTrueRecursively,
  336. "system/core/mkbootfs": Bp2BuildDefaultTrueRecursively,
  337. "system/core/property_service/libpropertyinfoparser": Bp2BuildDefaultTrueRecursively,
  338. "system/core/property_service/libpropertyinfoserializer": Bp2BuildDefaultTrueRecursively,
  339. "system/extras/f2fs_utils": Bp2BuildDefaultTrueRecursively,
  340. "system/extras/toolchain-extras": Bp2BuildDefaultTrue,
  341. "system/extras/verity": Bp2BuildDefaultTrueRecursively,
  342. "system/hardware/interfaces/media": Bp2BuildDefaultTrueRecursively,
  343. "system/incremental_delivery/incfs": Bp2BuildDefaultTrue,
  344. "system/libartpalette": Bp2BuildDefaultTrueRecursively,
  345. "system/libbase": Bp2BuildDefaultTrueRecursively,
  346. "system/libfmq": Bp2BuildDefaultTrue,
  347. "system/libhidl/libhidlmemory": Bp2BuildDefaultTrue,
  348. "system/libhidl/transport": Bp2BuildDefaultTrue,
  349. "system/libhidl/transport/allocator/1.0": Bp2BuildDefaultTrue,
  350. "system/libhidl/transport/base/1.0": Bp2BuildDefaultTrue,
  351. "system/libhidl/transport/manager/1.0": Bp2BuildDefaultTrue,
  352. "system/libhidl/transport/manager/1.1": Bp2BuildDefaultTrue,
  353. "system/libhidl/transport/manager/1.2": Bp2BuildDefaultTrue,
  354. "system/libhidl/transport/memory/1.0": Bp2BuildDefaultTrue,
  355. "system/libhidl/transport/memory/token/1.0": Bp2BuildDefaultTrue,
  356. "system/libhidl/transport/safe_union/1.0": Bp2BuildDefaultTrue,
  357. "system/libhidl/transport/token/1.0": Bp2BuildDefaultTrue,
  358. "system/libhidl/transport/token/1.0/utils": Bp2BuildDefaultTrue,
  359. "system/libhwbinder": Bp2BuildDefaultTrueRecursively,
  360. "system/libprocinfo": Bp2BuildDefaultTrue,
  361. "system/libvintf": Bp2BuildDefaultTrue,
  362. "system/libziparchive": Bp2BuildDefaultTrueRecursively,
  363. "system/logging": Bp2BuildDefaultTrueRecursively,
  364. "system/media": Bp2BuildDefaultTrue,
  365. "system/media/audio": Bp2BuildDefaultTrueRecursively,
  366. "system/media/alsa_utils": Bp2BuildDefaultTrueRecursively,
  367. "system/media/audio_utils": Bp2BuildDefaultTrueRecursively,
  368. "system/memory/libion": Bp2BuildDefaultTrueRecursively,
  369. "system/memory/libmemunreachable": Bp2BuildDefaultTrueRecursively,
  370. "system/sepolicy/apex": Bp2BuildDefaultTrueRecursively,
  371. "system/security/fsverity": Bp2BuildDefaultTrueRecursively,
  372. "system/testing/gtest_extras": Bp2BuildDefaultTrueRecursively,
  373. "system/timezone/apex": Bp2BuildDefaultTrueRecursively,
  374. "system/timezone/output_data": Bp2BuildDefaultTrueRecursively,
  375. "system/timezone/testdata": Bp2BuildDefaultTrueRecursively,
  376. "system/timezone/testing": Bp2BuildDefaultTrueRecursively,
  377. "system/tools/aidl/build/tests_bp2build": Bp2BuildDefaultTrue,
  378. "system/tools/aidl/metadata": Bp2BuildDefaultTrue,
  379. "system/tools/hidl/metadata": Bp2BuildDefaultTrue,
  380. "system/tools/mkbootimg": Bp2BuildDefaultTrueRecursively,
  381. "system/tools/sysprop": Bp2BuildDefaultTrue,
  382. "system/tools/xsdc/utils": Bp2BuildDefaultTrueRecursively,
  383. "system/unwinding/libunwindstack": Bp2BuildDefaultTrueRecursively,
  384. "tools/apifinder": Bp2BuildDefaultTrue,
  385. "tools/apksig": Bp2BuildDefaultTrue,
  386. "tools/external_updater": Bp2BuildDefaultTrueRecursively,
  387. "tools/metalava": Bp2BuildDefaultTrue,
  388. "tools/platform-compat/java/android/compat": Bp2BuildDefaultTrueRecursively,
  389. "tools/tradefederation/prebuilts/filegroups": Bp2BuildDefaultTrueRecursively,
  390. }
  391. Bp2buildKeepExistingBuildFile = map[string]bool{
  392. // This is actually build/bazel/build.BAZEL symlinked to ./BUILD
  393. ".":/*recursive = */ false,
  394. "build/bazel":/* recursive = */ true,
  395. "build/make/core":/* recursive = */ false,
  396. "build/bazel_common_rules":/* recursive = */ true,
  397. "build/make/target/product/security":/* recursive = */ false,
  398. // build/make/tools/signapk BUILD file is generated, so build/make/tools is not recursive.
  399. "build/make/tools":/* recursive = */ false,
  400. "build/pesto":/* recursive = */ true,
  401. "build/soong":/* recursive = */ true,
  402. // external/bazelbuild-rules_android/... is needed by mixed builds, otherwise mixed builds analysis fails
  403. // e.g. ERROR: Analysis of target '@soong_injection//mixed_builds:buildroot' failed
  404. "external/bazelbuild-rules_android":/* recursive = */ true,
  405. "external/bazelbuild-rules_license":/* recursive = */ true,
  406. "external/bazelbuild-kotlin-rules":/* recursive = */ true,
  407. "external/bazel-skylib":/* recursive = */ true,
  408. "external/protobuf":/* recursive = */ false,
  409. "external/python/absl-py":/* recursive = */ true,
  410. "external/compiler-rt/lib/cfi":/* recursive = */ false,
  411. // this BUILD file is globbed by //external/icu/icu4c/source:icu4c_test_data's "data/**/*".
  412. "external/icu/icu4c/source/data/unidata/norm2":/* recursive = */ false,
  413. // Building manually due to b/179889880: resource files cross package boundary
  414. "packages/apps/Music":/* recursive = */ true,
  415. "prebuilts/abi-dumps/platform":/* recursive = */ true,
  416. "prebuilts/abi-dumps/ndk":/* recursive = */ true,
  417. "prebuilts/bazel":/* recursive = */ true,
  418. "prebuilts/bundletool":/* recursive = */ true,
  419. "prebuilts/clang/host/linux-x86":/* recursive = */ false,
  420. "prebuilts/clang-tools":/* recursive = */ true,
  421. "prebuilts/gcc":/* recursive = */ true,
  422. "prebuilts/build-tools":/* recursive = */ true,
  423. "prebuilts/jdk/jdk17":/* recursive = */ true,
  424. "prebuilts/misc":/* recursive = */ false, // not recursive because we need bp2build converted build files in prebuilts/misc/common/asm
  425. "prebuilts/sdk":/* recursive = */ false,
  426. "prebuilts/sdk/tools":/* recursive = */ false,
  427. "prebuilts/r8":/* recursive = */ false,
  428. "prebuilts/runtime":/* recursive = */ false,
  429. // not recursive due to conflicting workspace paths in tools/atest/bazel/rules
  430. "tools/asuite/atest":/* recursive = */ false,
  431. "tools/asuite/atest/bazel/reporter":/* recursive = */ true,
  432. // TODO(b/266459895): remove this and the placeholder BUILD file after re-enabling libunwindstack
  433. "external/rust/crates/rustc-demangle-capi":/* recursive = */ false,
  434. // Used for testing purposes only. Should not actually exist in the real source tree.
  435. "testpkg/keep_build_file":/* recursive = */ false,
  436. }
  437. Bp2buildModuleAlwaysConvertList = []string{
  438. "libidmap2_policies",
  439. "libSurfaceFlingerProp",
  440. // cc mainline modules
  441. // com.android.media.swcodec
  442. "com.android.media.swcodec",
  443. "com.android.media.swcodec-androidManifest",
  444. "com.android.media.swcodec-ld.config.txt",
  445. "com.android.media.swcodec-mediaswcodec.32rc",
  446. "com.android.media.swcodec-mediaswcodec.rc",
  447. "com.android.media.swcodec.certificate",
  448. "com.android.media.swcodec.key",
  449. "test_com.android.media.swcodec",
  450. // deps
  451. "code_coverage.policy",
  452. "code_coverage.policy.other",
  453. "codec2_soft_exports",
  454. "compatibility_matrix_schema",
  455. "flatbuffer_headers",
  456. "framework-connectivity-protos",
  457. "gemmlowp_headers",
  458. "gl_headers",
  459. "libandroid_runtime_lazy",
  460. "libandroid_runtime_vm_headers",
  461. "libaudioclient_aidl_conversion_util",
  462. "libbinder",
  463. "libbinder_device_interface_sources",
  464. "libbinder_aidl",
  465. "libbinder_headers",
  466. "libbinder_headers_platform_shared",
  467. "libbinderthreadstateutils",
  468. "libbluetooth-types-header",
  469. "libcodec2",
  470. "libcodec2_headers",
  471. "libcodec2_internal",
  472. "libdmabufheap",
  473. "libgsm",
  474. "libgrallocusage",
  475. "libgralloctypes",
  476. "libnativewindow",
  477. "libneuralnetworks",
  478. "libneuralnetworks_static",
  479. "libgraphicsenv",
  480. "libhardware",
  481. "libhardware_headers",
  482. "libnativeloader-headers",
  483. "libnativewindow_headers",
  484. "libneuralnetworks_headers",
  485. "libneuralnetworks_packageinfo",
  486. "libopus",
  487. "libprocpartition",
  488. "libruy_static",
  489. "libandroidio",
  490. "libandroidio_srcs",
  491. "libserviceutils",
  492. "libsurfaceflinger_headers",
  493. "libsync",
  494. "libtextclassifier_hash_headers",
  495. "libtextclassifier_hash_static",
  496. "libtflite_kernel_utils",
  497. "libtinyxml2",
  498. "libui",
  499. "libui-types",
  500. "libui_headers",
  501. "libvorbisidec",
  502. "media_ndk_headers",
  503. "media_plugin_headers",
  504. "mediaswcodec.policy",
  505. "mediaswcodec.xml",
  506. "neuralnetworks_types",
  507. "libneuralnetworks_common",
  508. // packagemanager_aidl_interface is created implicitly in packagemanager_aidl module
  509. "packagemanager_aidl_interface",
  510. "philox_random",
  511. "philox_random_headers",
  512. "server_configurable_flags",
  513. "service-permission-streaming-proto-sources",
  514. "statslog_neuralnetworks.cpp",
  515. "statslog_neuralnetworks.h",
  516. "tensorflow_headers",
  517. "libstagefright_bufferpool@2.0",
  518. "libstagefright_bufferpool@2.0.1",
  519. "libSurfaceFlingerProp",
  520. // prebuilts
  521. "prebuilt_stats-log-api-gen",
  522. // fastboot
  523. "fastboot",
  524. "libfastboot",
  525. "liblp",
  526. "libstorage_literals_headers",
  527. "PluginCoreLib",
  528. "dagger2",
  529. "dagger2-android-annotation-stubs",
  530. "dagger2-bootstrap-compiler",
  531. "dagger2-producers",
  532. "okio-lib",
  533. "setupdesign-strings",
  534. //external/avb
  535. "avbtool",
  536. "libavb",
  537. "avb_headers",
  538. //external/libxml2
  539. "xmllint",
  540. "libxml2",
  541. //external/fec
  542. "libfec_rs",
  543. //frameworks/base/core/java
  544. "IDropBoxManagerService_aidl",
  545. //system/extras/ext4_utils
  546. "libext4_utils",
  547. "mke2fs_conf",
  548. "mkuserimg_mke2fs",
  549. "blk_alloc_to_base_fs",
  550. //system/extras/libfec
  551. "libfec",
  552. //system/extras/squashfs_utils
  553. "libsquashfs_utils",
  554. //packages/apps/Car/libs/car-ui-lib/car-ui-androidx
  555. // genrule dependencies for java_imports
  556. "car-ui-androidx-annotation-nodeps",
  557. "car-ui-androidx-collection-nodeps",
  558. "car-ui-androidx-core-common-nodeps",
  559. "car-ui-androidx-lifecycle-common-nodeps",
  560. "car-ui-androidx-constraintlayout-solver-nodeps",
  561. //system/libhidl
  562. "libhidlbase", // needed by cc_hidl_library
  563. "libhidl_gtest_helper",
  564. //frameworks/native
  565. "framework_native_aidl_binder",
  566. "framework_native_aidl_gui",
  567. //frameworks/native/libs/input
  568. "inputconstants_aidl",
  569. // needed for aidl_interface's ndk backend
  570. "libbinder_ndk",
  571. "libusb",
  572. // needed by liblogd
  573. "ILogcatManagerService_aidl",
  574. "libincremental_aidl-cpp",
  575. "incremental_aidl",
  576. //frameworks/native/cmds/cmd
  577. "libcmd",
  578. //system/core/fs_mgr/libdm
  579. "libdm",
  580. //system/core/fs_mgr/libfiemap
  581. "libfiemap_headers",
  582. "libfiemap_passthrough_srcs",
  583. "libfiemap_srcs",
  584. //system/gsid
  585. "libgsi",
  586. "libgsi_headers",
  587. //system/core/libkeyutils
  588. "libkeyutils",
  589. //bootable/recovery/otautil
  590. "libotautil",
  591. //system/vold
  592. "libvold_headers",
  593. //system/extras/libfscrypt
  594. "libfscrypt",
  595. //system/core/fs_mgr
  596. "libfstab",
  597. //bootable/recovery/fuse_sideload
  598. "libfusesideload",
  599. //system/core/fs_mgr/libfs_avb
  600. "libfs_avb",
  601. //system/core/fs_mgr
  602. "libfs_mgr",
  603. "libcodec2_hidl@1.0",
  604. "libcodec2_hidl@1.1",
  605. "libcodec2_hidl@1.2",
  606. "libcodec2_hidl_plugin_stub",
  607. "libcodec2_hidl_plugin",
  608. "libstagefright_bufferqueue_helper_novndk",
  609. "libGLESv2",
  610. "libEGL",
  611. "libcodec2_vndk",
  612. "libnativeloader_lazy",
  613. "libnativeloader",
  614. "libEGL_getProcAddress",
  615. "libEGL_blobCache",
  616. "mediaswcodec",
  617. "libmedia_headers",
  618. "libmedia_codecserviceregistrant",
  619. "libsfplugin_ccodec_utils",
  620. "libcodec2_soft_aacenc",
  621. "libcodec2_soft_amrnbdec",
  622. "libcodec2_soft_amrnbenc",
  623. "libcodec2_soft_amrwbdec",
  624. "libcodec2_soft_amrwbenc",
  625. "libcodec2_soft_hevcdec",
  626. "libcodec2_soft_hevcenc",
  627. "libcodec2_soft_g711alawdec",
  628. "libcodec2_soft_g711mlawdec",
  629. "libcodec2_soft_mpeg2dec",
  630. "libcodec2_soft_h263dec",
  631. "libcodec2_soft_h263enc",
  632. "libcodec2_soft_mpeg4dec",
  633. "libcodec2_soft_mpeg4enc",
  634. "libcodec2_soft_mp3dec",
  635. "libcodec2_soft_vorbisdec",
  636. "libcodec2_soft_opusdec",
  637. "libcodec2_soft_opusenc",
  638. "libcodec2_soft_vp8dec",
  639. "libcodec2_soft_vp9dec",
  640. "libcodec2_soft_av1dec_gav1",
  641. "libcodec2_soft_vp8enc",
  642. "libcodec2_soft_vp9enc",
  643. "libcodec2_soft_rawdec",
  644. "libcodec2_soft_flacdec",
  645. "libcodec2_soft_flacenc",
  646. "libcodec2_soft_gsmdec",
  647. "libcodec2_soft_avcdec",
  648. "libcodec2_soft_avcenc",
  649. "libcodec2_soft_aacdec",
  650. "libcodec2_soft_common",
  651. // kotlin srcs in java libs
  652. "kotlinx_atomicfu",
  653. // kotlin srcs in java binary
  654. "AnalyzerKt",
  655. "trebuchet-core",
  656. // kotlin srcs in android_library
  657. "renderscript_toolkit",
  658. //kotlin srcs in android_binary
  659. "MusicKotlin",
  660. // java_library with prebuilt sdk_version
  661. "android-common",
  662. // checked in current.txt for merged_txts
  663. "non-updatable-current.txt",
  664. "non-updatable-system-current.txt",
  665. "non-updatable-module-lib-current.txt",
  666. "non-updatable-system-server-current.txt",
  667. // for api_fingerprint.txt generation
  668. "api_fingerprint",
  669. // allowlisting for kotlinx_coroutines
  670. "annotations",
  671. "kotlinx-coroutines-android-annotation-stubs",
  672. "kotlinx-coroutines-core",
  673. "kotlinx_coroutines",
  674. "kotlinx_coroutines-device",
  675. "kotlinx_coroutines-host",
  676. // for building com.android.neuralnetworks
  677. "libimapper_stablec",
  678. "libimapper_providerutils",
  679. // min_sdk_version in android_app
  680. "CtsShimUpgrade",
  681. "art_cmdlineparser_headers",
  682. // Mainline Module Apps
  683. "CaptivePortalLogin",
  684. "libstagefright_headers",
  685. // aidl
  686. "aidl",
  687. "libaidl-common",
  688. // java_resources containing only a single filegroup
  689. "libauto_value_plugin",
  690. "auto_value_plugin_resources",
  691. "auto_value_extension",
  692. // Used by xsd_config
  693. "xsdc",
  694. // cc_test that can be run by b test
  695. "binderRpcWireProtocolTest",
  696. "binderUnitTest",
  697. "cpu_features-bit_utils_test",
  698. "liblp_test",
  699. "android.hardware.audio.common.test.utility_tests",
  700. "HalAudioStreamWorkerTest",
  701. "libjavacore-unit-tests",
  702. "NeuralNetworksTest_utils",
  703. "NeuralNetworksTest_logtag",
  704. "NeuralNetworksTest_operations",
  705. "nanoapp_chqts_shared_tests",
  706. "fakeservicemanager_test",
  707. "tristate_test",
  708. "binderUtilsHostTest",
  709. "run_dex2oat_test",
  710. "bluetooth-address-unit-tests",
  711. // for platform_compat_config
  712. "process-compat-config",
  713. }
  714. Bp2buildModuleTypeAlwaysConvertList = []string{
  715. "aidl_interface_headers",
  716. "bpf",
  717. "combined_apis",
  718. "license",
  719. "linker_config",
  720. "java_import",
  721. "java_import_host",
  722. "java_sdk_library",
  723. "sysprop_library",
  724. "xsd_config",
  725. }
  726. // Add the names of modules that bp2build should never convert, if it is
  727. // in the package allowlist. An error will be thrown if a module must
  728. // not be here and in the alwaysConvert lists.
  729. //
  730. // For prebuilt modules (e.g. android_library_import), remember to add
  731. // the "prebuilt_" prefix to the name, so that it's differentiable from
  732. // the source versions within Soong's module graph.
  733. Bp2buildModuleDoNotConvertList = []string{
  734. // Depends on unconverted libandroid, libgui
  735. "dvr_buffer_queue-test",
  736. "dvr_display-test",
  737. // Depends on unconverted libchrome
  738. "pdx_benchmarks",
  739. "buffer_hub_queue-test",
  740. "buffer_hub_queue_producer-test",
  741. // cc bugs
  742. // TODO(b/198619163) module has same name as source
  743. "logtagd.rc",
  744. "libgtest_ndk_c++", "libgtest_main_ndk_c++", // TODO(b/201816222): Requires sdk_version support.
  745. // TODO(b/202876379): has arch-variant static_executable
  746. "linkerconfig",
  747. "mdnsd",
  748. "libcutils_test_static",
  749. "KernelLibcutilsTest",
  750. "linker", // TODO(b/228316882): cc_binary uses link_crt
  751. "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
  752. // requires host tools for apexer
  753. "apexer_test", "apexer_test_host_tools", "host_apex_verifier",
  754. // java bugs
  755. "libbase_ndk", // TODO(b/186826477): fails to link libctscamera2_jni for device (required for CtsCameraTestCases)
  756. "bouncycastle", // TODO(b/274474005): Need support for custom system_modules.
  757. // genrule incompatibilities
  758. "brotli-fuzzer-corpus", // TODO(b/202015218): outputs are in location incompatible with bazel genrule handling.
  759. "platform_tools_properties", "build_tools_source_properties", // TODO(b/203369847): multiple genrules in the same package creating the same file
  760. // aar support
  761. "prebuilt_car-ui-androidx-core-common", // TODO(b/224773339), genrule dependency creates an .aar, not a .jar
  762. // ERROR: The dependencies for the following 1 jar(s) are not complete.
  763. // 1.bazel-out/android_target-fastbuild/bin/prebuilts/tools/common/m2/_aar/robolectric-monitor-1.0.2-alpha1/classes_and_libs_merged.jar
  764. "prebuilt_robolectric-monitor-1.0.2-alpha1",
  765. // path property for filegroups
  766. "conscrypt", // TODO(b/210751803), we don't handle path property for filegroups
  767. "conscrypt-for-host", // TODO(b/210751803), we don't handle path property for filegroups
  768. "host-libprotobuf-java-full", // TODO(b/210751803), we don't handle path property for filegroups
  769. "libprotobuf-internal-python-srcs", // TODO(b/210751803), we don't handle path property for filegroups
  770. "libprotobuf-java-full", // TODO(b/210751803), we don't handle path property for filegroups
  771. "libprotobuf-java-util-full", // TODO(b/210751803), we don't handle path property for filegroups
  772. // go deps:
  773. "analyze_bcpf", // depends on bpmodify a blueprint_go_binary.
  774. "analyze_bcpf_test", // depends on bpmodify a blueprint_go_binary.
  775. "host_bionic_linker_asm", // depends on extract_linker, a go binary.
  776. "host_bionic_linker_script", // depends on extract_linker, a go binary.
  777. // rust support
  778. "libtombstoned_client_rust_bridge_code", "libtombstoned_client_wrapper", // rust conversions are not supported
  779. // unconverted deps
  780. "apexer_with_DCLA_preprocessing_test", // depends on unconverted modules: apexer_test_host_tools, com.android.example.apex
  781. "adb", // depends on unconverted modules: AdbWinApi, libandroidfw, libopenscreen-discovery, libopenscreen-platform-impl, libusb, bin2c_fastdeployagent, AdbWinUsbApi
  782. "android_icu4j_srcgen", // depends on unconverted modules: currysrc
  783. "android_icu4j_srcgen_binary", // depends on unconverted modules: android_icu4j_srcgen, currysrc
  784. "apex_compression_test", // depends on unconverted modules: soong_zip, com.android.example.apex
  785. "apex_manifest_proto_java", // b/210751803, depends on libprotobuf-java-full
  786. "art-script", // depends on unconverted modules: dalvikvm, dex2oat
  787. "bin2c_fastdeployagent", // depends on unconverted modules: deployagent
  788. "CarHTMLViewer", // depends on unconverted modules android.car-stubs, car-ui-lib
  789. "com.android.runtime", // depends on unconverted modules: bionic-linker-config, linkerconfig
  790. "currysrc", // depends on unconverted modules: currysrc_org.eclipse, guavalib, jopt-simple-4.9
  791. "dex2oat-script", // depends on unconverted modules: dex2oat
  792. "generated_android_icu4j_resources", // depends on unconverted modules: android_icu4j_srcgen_binary
  793. "generated_android_icu4j_test_resources", // depends on unconverted modules: android_icu4j_srcgen_binary
  794. "host-libprotobuf-java-nano", // b/220869005, depends on libprotobuf-java-nano
  795. "jacoco-stubs", // b/245767077, depends on droidstubs
  796. "libapexutil", // depends on unconverted modules: apex-info-list-tinyxml
  797. "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
  798. "libart-runtime-gtest", // depends on unconverted modules: libgtest_isolated, libart-compiler, libdexfile, libprofile, libartbase, libartbase-art-gtest
  799. "libart_headers", // depends on unconverted modules: art_libartbase_headers
  800. "libartbase-art-gtest", // depends on unconverted modules: libgtest_isolated, libart, libart-compiler, libdexfile, libprofile
  801. "libartbased-art-gtest", // depends on unconverted modules: libgtest_isolated, libartd, libartd-compiler, libdexfiled, libprofiled
  802. "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
  803. "libartd-runtime-gtest", // depends on unconverted modules: libgtest_isolated, libartd-compiler, libdexfiled, libprofiled, libartbased, libartbased-art-gtest
  804. "libdebuggerd", // depends on unconverted module: libdexfile
  805. "libdebuggerd_handler", // depends on unconverted module libdebuggerd_handler_core
  806. "libdebuggerd_handler_core", "libdebuggerd_handler_fallback", // depends on unconverted module libdebuggerd
  807. "libdexfiled", // depends on unconverted modules: dexfile_operator_srcs, libartbased, libartpalette
  808. "libfastdeploy_host", // depends on unconverted modules: libandroidfw, libusb, AdbWinApi
  809. "libgmock_main_ndk", // depends on unconverted modules: libgtest_ndk_c++
  810. "libgmock_ndk", // depends on unconverted modules: libgtest_ndk_c++
  811. "libnativehelper_lazy_mts_jni", "libnativehelper_mts_jni", // depends on unconverted modules: libnativetesthelper_jni, libgmock_ndk
  812. "libnativetesthelper_jni", // depends on unconverted modules: libgtest_ndk_c++
  813. "libstatslog", // depends on unconverted modules: libstatspull, statsd-aidl-ndk
  814. "libstatslog_art", // depends on unconverted modules: statslog_art.cpp, statslog_art.h
  815. "linker_reloc_bench_main", // depends on unconverted modules: liblinker_reloc_bench_*
  816. "malloc-rss-benchmark", // depends on unconverted modules: libmeminfo
  817. "pbtombstone", "crash_dump", // depends on libdebuggerd, libunwindstack
  818. "releasetools_test", // depends on unconverted modules: com.android.apex.compressed.v1
  819. "robolectric-sqlite4java-0.282", // depends on unconverted modules: robolectric-sqlite4java-import, robolectric-sqlite4java-native
  820. "static_crasher", // depends on unconverted modules: libdebuggerd_handler
  821. "test_fips", // depends on unconverted modules: adb
  822. "timezone-host", // depends on unconverted modules: art.module.api.annotations
  823. // '//bionic/libc:libc_bp2build_cc_library_static' is duplicated in the 'deps' attribute of rule
  824. "toybox-static",
  825. // aidl files not created
  826. "overlayable_policy_aidl_interface",
  827. //prebuilts/tools/common/m2
  828. // depends on //external/okio:okio-lib, which uses kotlin
  829. "wire-runtime",
  830. // depends on adbd_system_api_recovery, which is a unconverted `phony` module type
  831. "minadbd",
  832. // depends on android.hardware.health-V2.0-java
  833. "android.hardware.health-translate-java",
  834. //system/libvintf
  835. // depends on apex-info-list-tinyxml, unconverted xsd_config Soong module type.
  836. "libvintf",
  837. "vintf",
  838. "libassemblevintf",
  839. "assemble_vintf",
  840. "libvintffm",
  841. "vintffm",
  842. "checkvintf",
  843. // depends on audio_policy_configuration_aidl_default, xsd_config module.
  844. "libaudioserviceexampleimpl",
  845. "android.hardware.audio.service-aidl.example",
  846. // depends on //system/tools/aidl/build:aidl_metadata_json, which is an aidl_interfaces_metadata custom Soong type.
  847. "aidl_metadata_in_cpp",
  848. "libaidlmetadata",
  849. "libaidlmetadata_test",
  850. // depends on //system/tools/hidl/build:hidl_metadata_json, which is an hidl_interfaces_metadata custom Soong type.
  851. "hidl_metadata_in_cpp",
  852. "libhidlmetadata",
  853. "hidl_metadata_test",
  854. // cc_test related.
  855. // b/274164834 "Could not open Configuration file test.cfg"
  856. "svcenc", "svcdec",
  857. // Failing host cc_tests
  858. "libprocinfo_test",
  859. "ziparchive-tests",
  860. "gtest_isolated_tests",
  861. "libunwindstack_unit_test",
  862. "power_tests", // failing test on server, but not on host
  863. // reflect: call of reflect.Value.NumField on interface Value
  864. // affects all cc_tests that depend on art_defaults
  865. "libnativebridge-tests",
  866. "libnativeloader_test",
  867. "art_libnativebridge_cts_tests",
  868. "art_standalone_libdexfile_external_tests",
  869. "art_standalone_libdexfile_support_tests",
  870. "libnativebridge-lazy-tests",
  871. "libnativebridge-test-case",
  872. "libnativebridge2-test-case",
  873. "libnativebridge3-test-case",
  874. "libnativebridge6-test-case",
  875. "libnativebridge6prezygotefork",
  876. "libandroidfw_tests", "aapt2_tests", // failing due to data path issues
  877. // error: overriding commands for target
  878. // `out/host/linux-x86/nativetest64/gmock_tests/gmock_tests__cc_runner_test',
  879. // previously defined at out/soong/installs-aosp_arm.mk:64919`
  880. "gmock_tests",
  881. // cc_test with unconverted deps, or are device-only (and not verified to pass yet)
  882. "AMRWBEncTest",
  883. "AmrnbDecoderTest", // depends on unconverted modules: libaudioutils, libsndfile
  884. "AmrnbEncoderTest", // depends on unconverted modules: libaudioutils, libsndfile
  885. "AmrwbDecoderTest", // depends on unconverted modules: libsndfile, libaudioutils
  886. "AmrwbEncoderTest", // depends on unconverted modules: libaudioutils, libsndfile
  887. "Mp3DecoderTest", // depends on unconverted modules: libsndfile, libaudioutils
  888. "avcdec",
  889. "avcenc",
  890. "bionic-benchmarks-tests",
  891. "bionic-fortify-runtime-asan-test",
  892. "bionic-stress-tests",
  893. "bionic-unit-tests",
  894. "bionic-unit-tests-glibc",
  895. "bionic-unit-tests-static",
  896. "boringssl_crypto_test",
  897. "boringssl_ssl_test",
  898. "cfi_test_helper",
  899. "cfi_test_helper2",
  900. "cintltst32",
  901. "cintltst64",
  902. "compare",
  903. "cpuid",
  904. "debuggerd_test", // depends on unconverted modules: libdebuggerd
  905. "elftls_dlopen_ie_error_helper",
  906. "exec_linker_helper",
  907. "fastdeploy_test", // depends on unconverted modules: AdbWinApi, libadb_host, libandroidfw, libfastdeploy_host, libopenscreen-discovery, libopenscreen-platform-impl, libusb
  908. "fdtrack_test",
  909. "google-benchmark-test",
  910. "googletest-param-test-test_ndk", // depends on unconverted modules: libgtest_ndk_c++
  911. "gtest-typed-test_test",
  912. "gtest-typed-test_test_ndk", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
  913. "gtest_ndk_tests", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
  914. "gtest_ndk_tests_no_main", // depends on unconverted modules: libgtest_ndk_c++
  915. "gtest_prod_test_ndk", // depends on unconverted modules: libgtest_ndk_c++, libgtest_main_ndk_c++
  916. "gtest_tests",
  917. "gtest_tests_no_main",
  918. "gwp_asan_unittest",
  919. "half_test",
  920. "hashcombine_test",
  921. "hevcdec",
  922. "hevcenc",
  923. "hwbinderThroughputTest", // depends on unconverted modules: android.hardware.tests.libhwbinder@1.0-impl.test, android.hardware.tests.libhwbinder@1.0
  924. "i444tonv12_eg",
  925. "icu4c_sample_break",
  926. "intltest32",
  927. "intltest64",
  928. "ion-unit-tests",
  929. "jemalloc5_integrationtests",
  930. "jemalloc5_unittests",
  931. "ld_config_test_helper",
  932. "ld_preload_test_helper",
  933. "libBionicCtsGtestMain", // depends on unconverted modules: libgtest_isolated
  934. "libBionicLoaderTests", // depends on unconverted modules: libmeminfo
  935. "libapexutil_tests", // depends on unconverted modules: apex-info-list-tinyxml, libapexutil
  936. "libcutils_sockets_test",
  937. "libhwbinder_latency",
  938. "liblog-host-test", // failing tests
  939. "libminijail_test",
  940. "libminijail_unittest_gtest",
  941. "libpackagelistparser_test",
  942. "libprotobuf_vendor_suffix_test",
  943. "libstagefright_amrnbdec_test", // depends on unconverted modules: libsndfile, libaudioutils
  944. "libstagefright_amrnbenc_test",
  945. "libstagefright_amrwbdec_test", // depends on unconverted modules: libsndfile, libaudioutils
  946. "libstagefright_m4vh263enc_test",
  947. "libstagefright_mp3dec_test", // depends on unconverted modules: libsndfile, libaudioutils
  948. "libstatssocket_test",
  949. "libvndksupport-tests",
  950. "libyuv_unittest",
  951. "linker-unit-tests",
  952. "malloc_debug_system_tests",
  953. "malloc_debug_unit_tests",
  954. "malloc_hooks_system_tests",
  955. "mat_test",
  956. "mathtest",
  957. "memunreachable_binder_test", // depends on unconverted modules: libbinder
  958. "memunreachable_test",
  959. "metadata_tests",
  960. "minijail0_cli_unittest_gtest",
  961. "mpeg2dec",
  962. "mvcdec",
  963. "ns_hidden_child_helper",
  964. "pngtest",
  965. "preinit_getauxval_test_helper",
  966. "preinit_syscall_test_helper",
  967. "psnr",
  968. "quat_test",
  969. "rappor-tests", // depends on unconverted modules: jsr305, guava
  970. "scudo_unit_tests",
  971. "stats-log-api-gen-test", // depends on unconverted modules: libstats_proto_host
  972. "syscall_filter_unittest_gtest",
  973. "thread_exit_cb_helper",
  974. "tls_properties_helper",
  975. "ulp",
  976. "vec_test",
  977. "yuvconstants",
  978. "yuvconvert",
  979. "zipalign_tests",
  980. // cc_test_library
  981. "clang_diagnostic_tests",
  982. "exec_linker_helper_lib",
  983. "fortify_disabled_for_tidy",
  984. "ld_config_test_helper_lib1",
  985. "ld_config_test_helper_lib2",
  986. "ld_config_test_helper_lib3",
  987. "ld_preload_test_helper_lib1",
  988. "ld_preload_test_helper_lib2",
  989. "libBionicElfTlsLoaderTests",
  990. "libBionicElfTlsTests",
  991. "libBionicElfTlsTests",
  992. "libBionicFramePointerTests",
  993. "libBionicFramePointerTests",
  994. "libBionicStandardTests",
  995. "libBionicStandardTests",
  996. "libBionicTests",
  997. "libart-broken",
  998. "libatest_simple_zip",
  999. "libcfi-test",
  1000. "libcfi-test-bad",
  1001. "libcrash_test",
  1002. "libcrypto_fuzz_unsafe",
  1003. "libdl_preempt_test_1",
  1004. "libdl_preempt_test_2",
  1005. "libdl_test_df_1_global",
  1006. "libdlext_test",
  1007. "libdlext_test_different_soname",
  1008. "libdlext_test_fd",
  1009. "libdlext_test_norelro",
  1010. "libdlext_test_recursive",
  1011. "libdlext_test_zip",
  1012. "libdvrcommon_test",
  1013. "libfortify1-new-tests-clang",
  1014. "libfortify1-new-tests-clang",
  1015. "libfortify1-tests-clang",
  1016. "libfortify1-tests-clang",
  1017. "libfortify2-new-tests-clang",
  1018. "libfortify2-new-tests-clang",
  1019. "libfortify2-tests-clang",
  1020. "libfortify2-tests-clang",
  1021. "libgnu-hash-table-library",
  1022. "libicutest_static",
  1023. "liblinker_reloc_bench_000",
  1024. "liblinker_reloc_bench_001",
  1025. "liblinker_reloc_bench_002",
  1026. "liblinker_reloc_bench_003",
  1027. "liblinker_reloc_bench_004",
  1028. "liblinker_reloc_bench_005",
  1029. "liblinker_reloc_bench_006",
  1030. "liblinker_reloc_bench_007",
  1031. "liblinker_reloc_bench_008",
  1032. "liblinker_reloc_bench_009",
  1033. "liblinker_reloc_bench_010",
  1034. "liblinker_reloc_bench_011",
  1035. "liblinker_reloc_bench_012",
  1036. "liblinker_reloc_bench_013",
  1037. "liblinker_reloc_bench_014",
  1038. "liblinker_reloc_bench_015",
  1039. "liblinker_reloc_bench_016",
  1040. "liblinker_reloc_bench_017",
  1041. "liblinker_reloc_bench_018",
  1042. "liblinker_reloc_bench_019",
  1043. "liblinker_reloc_bench_020",
  1044. "liblinker_reloc_bench_021",
  1045. "liblinker_reloc_bench_022",
  1046. "liblinker_reloc_bench_023",
  1047. "liblinker_reloc_bench_024",
  1048. "liblinker_reloc_bench_025",
  1049. "liblinker_reloc_bench_026",
  1050. "liblinker_reloc_bench_027",
  1051. "liblinker_reloc_bench_028",
  1052. "liblinker_reloc_bench_029",
  1053. "liblinker_reloc_bench_030",
  1054. "liblinker_reloc_bench_031",
  1055. "liblinker_reloc_bench_032",
  1056. "liblinker_reloc_bench_033",
  1057. "liblinker_reloc_bench_034",
  1058. "liblinker_reloc_bench_035",
  1059. "liblinker_reloc_bench_036",
  1060. "liblinker_reloc_bench_037",
  1061. "liblinker_reloc_bench_038",
  1062. "liblinker_reloc_bench_039",
  1063. "liblinker_reloc_bench_040",
  1064. "liblinker_reloc_bench_041",
  1065. "liblinker_reloc_bench_042",
  1066. "liblinker_reloc_bench_043",
  1067. "liblinker_reloc_bench_044",
  1068. "liblinker_reloc_bench_045",
  1069. "liblinker_reloc_bench_046",
  1070. "liblinker_reloc_bench_047",
  1071. "liblinker_reloc_bench_048",
  1072. "liblinker_reloc_bench_049",
  1073. "liblinker_reloc_bench_050",
  1074. "liblinker_reloc_bench_051",
  1075. "liblinker_reloc_bench_052",
  1076. "liblinker_reloc_bench_053",
  1077. "liblinker_reloc_bench_054",
  1078. "liblinker_reloc_bench_055",
  1079. "liblinker_reloc_bench_056",
  1080. "liblinker_reloc_bench_057",
  1081. "liblinker_reloc_bench_058",
  1082. "liblinker_reloc_bench_059",
  1083. "liblinker_reloc_bench_060",
  1084. "liblinker_reloc_bench_061",
  1085. "liblinker_reloc_bench_062",
  1086. "liblinker_reloc_bench_063",
  1087. "liblinker_reloc_bench_064",
  1088. "liblinker_reloc_bench_065",
  1089. "liblinker_reloc_bench_066",
  1090. "liblinker_reloc_bench_067",
  1091. "liblinker_reloc_bench_068",
  1092. "liblinker_reloc_bench_069",
  1093. "liblinker_reloc_bench_070",
  1094. "liblinker_reloc_bench_071",
  1095. "liblinker_reloc_bench_072",
  1096. "liblinker_reloc_bench_073",
  1097. "liblinker_reloc_bench_074",
  1098. "liblinker_reloc_bench_075",
  1099. "liblinker_reloc_bench_076",
  1100. "liblinker_reloc_bench_077",
  1101. "liblinker_reloc_bench_078",
  1102. "liblinker_reloc_bench_079",
  1103. "liblinker_reloc_bench_080",
  1104. "liblinker_reloc_bench_081",
  1105. "liblinker_reloc_bench_082",
  1106. "liblinker_reloc_bench_083",
  1107. "liblinker_reloc_bench_084",
  1108. "liblinker_reloc_bench_085",
  1109. "liblinker_reloc_bench_086",
  1110. "liblinker_reloc_bench_087",
  1111. "liblinker_reloc_bench_088",
  1112. "liblinker_reloc_bench_089",
  1113. "liblinker_reloc_bench_090",
  1114. "liblinker_reloc_bench_091",
  1115. "liblinker_reloc_bench_092",
  1116. "liblinker_reloc_bench_093",
  1117. "liblinker_reloc_bench_094",
  1118. "liblinker_reloc_bench_095",
  1119. "liblinker_reloc_bench_096",
  1120. "liblinker_reloc_bench_097",
  1121. "liblinker_reloc_bench_098",
  1122. "liblinker_reloc_bench_099",
  1123. "liblinker_reloc_bench_100",
  1124. "liblinker_reloc_bench_101",
  1125. "liblinker_reloc_bench_102",
  1126. "liblinker_reloc_bench_103",
  1127. "liblinker_reloc_bench_104",
  1128. "liblinker_reloc_bench_105",
  1129. "liblinker_reloc_bench_106",
  1130. "liblinker_reloc_bench_107",
  1131. "liblinker_reloc_bench_108",
  1132. "liblinker_reloc_bench_109",
  1133. "liblinker_reloc_bench_110",
  1134. "liblinker_reloc_bench_111",
  1135. "liblinker_reloc_bench_112",
  1136. "liblinker_reloc_bench_113",
  1137. "liblinker_reloc_bench_114",
  1138. "liblinker_reloc_bench_115",
  1139. "liblinker_reloc_bench_116",
  1140. "liblinker_reloc_bench_117",
  1141. "liblinker_reloc_bench_118",
  1142. "liblinker_reloc_bench_119",
  1143. "liblinker_reloc_bench_120",
  1144. "liblinker_reloc_bench_121",
  1145. "liblinker_reloc_bench_122",
  1146. "liblinker_reloc_bench_123",
  1147. "liblinker_reloc_bench_124",
  1148. "liblinker_reloc_bench_125",
  1149. "liblinker_reloc_bench_126",
  1150. "liblinker_reloc_bench_127",
  1151. "liblinker_reloc_bench_128",
  1152. "liblinker_reloc_bench_129",
  1153. "liblinker_reloc_bench_130",
  1154. "liblinker_reloc_bench_131",
  1155. "liblinker_reloc_bench_132",
  1156. "liblinker_reloc_bench_133",
  1157. "liblinker_reloc_bench_134",
  1158. "liblinker_reloc_bench_135",
  1159. "liblinker_reloc_bench_136",
  1160. "liblinker_reloc_bench_137",
  1161. "liblinker_reloc_bench_138",
  1162. "liblinker_reloc_bench_139",
  1163. "liblinker_reloc_bench_140",
  1164. "liblinker_reloc_bench_141",
  1165. "liblinker_reloc_bench_142",
  1166. "liblinker_reloc_bench_143",
  1167. "liblinker_reloc_bench_144",
  1168. "liblinker_reloc_bench_145",
  1169. "liblinker_reloc_bench_146",
  1170. "liblinker_reloc_bench_147",
  1171. "liblinker_reloc_bench_148",
  1172. "liblinker_reloc_bench_149",
  1173. "liblinker_reloc_bench_150",
  1174. "liblinker_reloc_bench_151",
  1175. "liblinker_reloc_bench_152",
  1176. "liblinker_reloc_bench_153",
  1177. "liblinker_reloc_bench_154",
  1178. "liblinker_reloc_bench_155",
  1179. "liblinker_reloc_bench_156",
  1180. "liblinker_reloc_bench_157",
  1181. "liblinker_reloc_bench_158",
  1182. "liblinker_reloc_bench_159",
  1183. "liblinker_reloc_bench_160",
  1184. "liblinker_reloc_bench_161",
  1185. "liblinker_reloc_bench_162",
  1186. "liblinker_reloc_bench_163",
  1187. "liblinker_reloc_bench_164",
  1188. "liblinker_reloc_bench_165",
  1189. "liblinker_reloc_bench_166",
  1190. "liblinker_reloc_bench_167",
  1191. "liblinker_reloc_bench_168",
  1192. "libns_hidden_child_app",
  1193. "libns_hidden_child_global",
  1194. "libns_hidden_child_internal",
  1195. "libns_hidden_child_public",
  1196. "libnstest_dlopened",
  1197. "libnstest_ns_a_public1",
  1198. "libnstest_ns_a_public1_internal",
  1199. "libnstest_ns_b_public2",
  1200. "libnstest_ns_b_public3",
  1201. "libnstest_private",
  1202. "libnstest_private_external",
  1203. "libnstest_public",
  1204. "libnstest_public_internal",
  1205. "libnstest_root",
  1206. "libnstest_root_not_isolated",
  1207. "librelocations-ANDROID_REL",
  1208. "librelocations-ANDROID_RELR",
  1209. "librelocations-RELR",
  1210. "librelocations-fat",
  1211. "libsegment_gap_inner",
  1212. "libsegment_gap_outer",
  1213. "libssl_fuzz_unsafe",
  1214. "libstatssocket_private",
  1215. "libsysv-hash-table-library",
  1216. "libtest_atexit",
  1217. "libtest_check_order_dlsym",
  1218. "libtest_check_order_dlsym_1_left",
  1219. "libtest_check_order_dlsym_2_right",
  1220. "libtest_check_order_dlsym_3_c",
  1221. "libtest_check_order_dlsym_a",
  1222. "libtest_check_order_dlsym_b",
  1223. "libtest_check_order_dlsym_d",
  1224. "libtest_check_order_reloc_root",
  1225. "libtest_check_order_reloc_root_1",
  1226. "libtest_check_order_reloc_root_2",
  1227. "libtest_check_order_reloc_siblings",
  1228. "libtest_check_order_reloc_siblings_1",
  1229. "libtest_check_order_reloc_siblings_2",
  1230. "libtest_check_order_reloc_siblings_3",
  1231. "libtest_check_order_reloc_siblings_a",
  1232. "libtest_check_order_reloc_siblings_b",
  1233. "libtest_check_order_reloc_siblings_c",
  1234. "libtest_check_order_reloc_siblings_c_1",
  1235. "libtest_check_order_reloc_siblings_c_2",
  1236. "libtest_check_order_reloc_siblings_d",
  1237. "libtest_check_order_reloc_siblings_e",
  1238. "libtest_check_order_reloc_siblings_f",
  1239. "libtest_check_rtld_next_from_library",
  1240. "libtest_dlopen_df_1_global",
  1241. "libtest_dlopen_from_ctor",
  1242. "libtest_dlopen_from_ctor_main",
  1243. "libtest_dlopen_weak_undefined_func",
  1244. "libtest_dlsym_df_1_global",
  1245. "libtest_dlsym_from_this",
  1246. "libtest_dlsym_from_this_child",
  1247. "libtest_dlsym_from_this_grandchild",
  1248. "libtest_dlsym_weak_func",
  1249. "libtest_dt_runpath_a",
  1250. "libtest_dt_runpath_b",
  1251. "libtest_dt_runpath_c",
  1252. "libtest_dt_runpath_d",
  1253. "libtest_dt_runpath_d_zip",
  1254. "libtest_dt_runpath_x",
  1255. "libtest_dt_runpath_y",
  1256. "libtest_elftls_dynamic",
  1257. "libtest_elftls_dynamic_filler_1",
  1258. "libtest_elftls_dynamic_filler_2",
  1259. "libtest_elftls_dynamic_filler_3",
  1260. "libtest_elftls_shared_var",
  1261. "libtest_elftls_shared_var_ie",
  1262. "libtest_elftls_tprel",
  1263. "libtest_empty",
  1264. "libtest_ifunc",
  1265. "libtest_ifunc_variable",
  1266. "libtest_ifunc_variable_impl",
  1267. "libtest_indirect_thread_local_dtor",
  1268. "libtest_init_fini_order_child",
  1269. "libtest_init_fini_order_grand_child",
  1270. "libtest_init_fini_order_root",
  1271. "libtest_init_fini_order_root2",
  1272. "libtest_missing_symbol",
  1273. "libtest_missing_symbol_child_private",
  1274. "libtest_missing_symbol_child_public",
  1275. "libtest_missing_symbol_root",
  1276. "libtest_nodelete_1",
  1277. "libtest_nodelete_2",
  1278. "libtest_nodelete_dt_flags_1",
  1279. "libtest_pthread_atfork",
  1280. "libtest_relo_check_dt_needed_order",
  1281. "libtest_relo_check_dt_needed_order_1",
  1282. "libtest_relo_check_dt_needed_order_2",
  1283. "libtest_simple",
  1284. "libtest_thread_local_dtor",
  1285. "libtest_thread_local_dtor2",
  1286. "libtest_two_parents_child",
  1287. "libtest_two_parents_parent1",
  1288. "libtest_two_parents_parent2",
  1289. "libtest_versioned_lib",
  1290. "libtest_versioned_libv1",
  1291. "libtest_versioned_libv2",
  1292. "libtest_versioned_otherlib",
  1293. "libtest_versioned_otherlib_empty",
  1294. "libtest_versioned_uselibv1",
  1295. "libtest_versioned_uselibv2",
  1296. "libtest_versioned_uselibv2_other",
  1297. "libtest_versioned_uselibv3_other",
  1298. "libtest_with_dependency",
  1299. "libtest_with_dependency_loop",
  1300. "libtest_with_dependency_loop_a",
  1301. "libtest_with_dependency_loop_b",
  1302. "libtest_with_dependency_loop_b_tmp",
  1303. "libtest_with_dependency_loop_c",
  1304. "libtestshared",
  1305. // depends on unconverted libprotobuf-java-nano
  1306. "dnsresolverprotosnano",
  1307. "launcherprotosnano",
  1308. "datastallprotosnano",
  1309. "devicepolicyprotosnano",
  1310. "ota_metadata_proto_java",
  1311. "merge_ota",
  1312. // releasetools
  1313. "verity_utils",
  1314. "check_ota_package_signature",
  1315. "check_target_files_vintf",
  1316. "releasetools_check_target_files_vintf",
  1317. "ota_from_target_files",
  1318. "releasetools_ota_from_target_files",
  1319. "add_img_to_target_files",
  1320. "releasetools_add_img_to_target_files",
  1321. "fsverity_metadata_generator",
  1322. "sign_target_files_apks",
  1323. // depends on the support of yacc file
  1324. "libapplypatch",
  1325. "libapplypatch_modes",
  1326. "applypatch",
  1327. // TODO(b/254476335): disable the following due to this bug
  1328. "libapexinfo",
  1329. "libapexinfo_tests",
  1330. // uses glob in $(locations)
  1331. "libc_musl_sysroot",
  1332. // TODO(b/266459895): depends on libunwindstack
  1333. "libutils_test",
  1334. // Has dependencies on other tools like ziptool, bp2build'd data properties don't work with these tests atm
  1335. "ziparchive_tests_large",
  1336. "mkbootimg_test",
  1337. "certify_bootimg_test",
  1338. // Despite being _host module types, these require devices to run
  1339. "logd_integration_test",
  1340. "mobly-hello-world-test",
  1341. "mobly-multidevice-test",
  1342. // TODO(b/274805756): Support core_platform and current java APIs
  1343. "fake-framework",
  1344. // TODO(b/277616982): These modules depend on private java APIs, but maybe they don't need to.
  1345. "StreamingProtoTest",
  1346. "textclassifierprotoslite",
  1347. "styleprotoslite",
  1348. "CtsPkgInstallerConstants",
  1349. "guava-android-testlib",
  1350. "MetaDataBaseUnitTest", // depends on libstagefright
  1351. "AVCUtilsUnitTest", // depends on libstagefright
  1352. "ColorUtilsTest", // depends on libmediandk
  1353. // python_test_host with test data
  1354. "sbom_writers_test",
  1355. // TODO(B/283193845): tradefed and its java_test_host dependents
  1356. "tradefed",
  1357. "permissive_mte_test",
  1358. "ICU4CTestRunner",
  1359. "DeviceLongPollingStubTest",
  1360. "HelloWorldHostTest", // TODO(b/280452825): Convert HelloWorldHostTest to b test
  1361. "libprotobuf-full-test", // TODO(b/246997908): cannot convert proto_libraries which implicitly include other srcs in the same directory
  1362. "libprotobuf-lite-test", // TODO(b/246997908): cannot convert proto_libraries which implicitly include other srcs in the same directory
  1363. "logcat", // TODO(b/246997908): cannot convert proto_libraries which implicitly include other srcs in the same directory
  1364. "expresscatalogvalidator", // TODO(b/246997908): cannot convert proto_libraries which implicitly include other srcs in the same directory
  1365. // depends on other //art modules
  1366. "libart-for-test",
  1367. "libart_generated_headers",
  1368. "libart-runtime-gtest",
  1369. "libartd-runtime-gtest",
  1370. }
  1371. MixedBuildsDisabledList = []string{
  1372. "libruy_static", "libtflite_kernel_utils", // TODO(b/237315968); Depend on prebuilt stl, not from source
  1373. "art_libdexfile_dex_instruction_list_header", // breaks libart_mterp.armng, header not found
  1374. "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
  1375. "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.
  1376. "cap_names.h", // TODO(b/204913827) runfiles need to be handled in mixed builds
  1377. "libcap", // TODO(b/204913827) runfiles need to be handled in mixed builds
  1378. "libprotobuf-cpp-full", "libprotobuf-cpp-lite", // Unsupported product&vendor suffix. b/204811222 and b/204810610.
  1379. // Depends on libprotobuf-cpp-*
  1380. "libadb_pairing_connection",
  1381. "libadb_pairing_connection_static",
  1382. "libadb_pairing_server", "libadb_pairing_server_static",
  1383. // java_import[_host] issues
  1384. // tradefed prebuilts depend on libprotobuf
  1385. "prebuilt_tradefed",
  1386. "prebuilt_tradefed-test-framework",
  1387. // handcrafted BUILD.bazel files in //prebuilts/...
  1388. "prebuilt_r8lib-prebuilt",
  1389. "prebuilt_sdk-core-lambda-stubs",
  1390. "prebuilt_android-support-collections-nodeps",
  1391. "prebuilt_android-arch-core-common-nodeps",
  1392. "prebuilt_android-arch-lifecycle-common-java8-nodeps",
  1393. "prebuilt_android-arch-lifecycle-common-nodeps",
  1394. "prebuilt_android-support-annotations-nodeps",
  1395. "prebuilt_android-arch-paging-common-nodeps",
  1396. "prebuilt_android-arch-room-common-nodeps",
  1397. // TODO(b/217750501) exclude_dirs property not supported
  1398. "prebuilt_kotlin-reflect",
  1399. "prebuilt_kotlin-stdlib",
  1400. "prebuilt_kotlin-stdlib-jdk7",
  1401. "prebuilt_kotlin-stdlib-jdk8",
  1402. "prebuilt_kotlin-test",
  1403. // TODO(b/217750501) exclude_files property not supported
  1404. "prebuilt_currysrc_org.eclipse",
  1405. // TODO(b/266459895): re-enable libunwindstack
  1406. "libunwindstack",
  1407. "libunwindstack_stdout_log",
  1408. "libunwindstack_no_dex",
  1409. "libunwindstack_utils",
  1410. "unwind_reg_info",
  1411. "libunwindstack_local",
  1412. "unwind_for_offline",
  1413. "unwind",
  1414. "unwind_info",
  1415. "unwind_symbols",
  1416. "libEGL",
  1417. "libGLESv2",
  1418. "libc_malloc_debug",
  1419. "libcodec2_hidl@1.0",
  1420. "libcodec2_hidl@1.1",
  1421. "libcodec2_hidl@1.2",
  1422. "libfdtrack",
  1423. "libgui",
  1424. "libgui_bufferqueue_static",
  1425. "libmedia_codecserviceregistrant",
  1426. "libstagefright_bufferqueue_helper_novndk",
  1427. "libutils_test",
  1428. "libutilscallstack",
  1429. "mediaswcodec",
  1430. }
  1431. // Bazel prod-mode allowlist. Modules in this list are built by Bazel
  1432. // in either prod mode or staging mode.
  1433. ProdMixedBuildsEnabledList = []string{
  1434. // M5: tzdata launch
  1435. "com.android.tzdata",
  1436. "test1_com.android.tzdata",
  1437. "test3_com.android.tzdata",
  1438. // M7: adbd launch
  1439. "com.android.adbd",
  1440. "test_com.android.adbd",
  1441. "adbd_test",
  1442. "adb_crypto_test",
  1443. "adb_pairing_auth_test",
  1444. "adb_pairing_connection_test",
  1445. "adb_tls_connection_test",
  1446. // M9: mixed builds for mainline trains launch
  1447. "api_fingerprint",
  1448. // M11: neuralnetworks launch
  1449. "com.android.neuralnetworks",
  1450. "test_com.android.neuralnetworks",
  1451. "libneuralnetworks",
  1452. "libneuralnetworks_static",
  1453. }
  1454. // Staging-mode allowlist. Modules in this list are only built
  1455. // by Bazel with --bazel-mode-staging. This list should contain modules
  1456. // which will soon be added to the prod allowlist.
  1457. // It is implicit that all modules in ProdMixedBuildsEnabledList will
  1458. // also be built - do not add them to this list.
  1459. StagingMixedBuildsEnabledList = []string{
  1460. // M13: media.swcodec launch
  1461. "com.android.media.swcodec",
  1462. "test_com.android.media.swcodec",
  1463. "libstagefright_foundation",
  1464. "libcodec2_hidl@1.0",
  1465. }
  1466. // These should be the libs that are included by the apexes in the ProdMixedBuildsEnabledList
  1467. ProdDclaMixedBuildsEnabledList = []string{
  1468. "libbase",
  1469. "libc++",
  1470. "libcrypto",
  1471. "libcutils",
  1472. }
  1473. // These should be the libs that are included by the apexes in the StagingMixedBuildsEnabledList
  1474. StagingDclaMixedBuildsEnabledList = []string{
  1475. "libstagefright_flacdec",
  1476. "libutils",
  1477. }
  1478. // TODO(b/269342245): Enable the rest of the DCLA libs
  1479. // "libssl",
  1480. // The list of module types which are expected to spend lots of build time.
  1481. // With `--ninja_weight_source=soong`, ninja builds these module types and deps first.
  1482. HugeModuleTypePrefixMap = map[string]int{
  1483. "rust_": HIGH_PRIORITIZED_WEIGHT,
  1484. "droidstubs": DEFAULT_PRIORITIZED_WEIGHT,
  1485. "art_": DEFAULT_PRIORITIZED_WEIGHT,
  1486. "ndk_library": DEFAULT_PRIORITIZED_WEIGHT,
  1487. }
  1488. )