allowlists.go 72 KB

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