• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

tools/25-Apr-2025-464329

README.dex_preopt_check.mdD25-Apr-20251.6 KiB4431

art-host-tests.mkD25-Apr-20254.4 KiB7547

art.mkD25-Apr-20251,001 277

automotive-general-tests.mkD25-Apr-20256.1 KiB9061

automotive-sdv-tests.mkD25-Apr-20253.9 KiB6239

automotive-tests.mkD25-Apr-20253.7 KiB6239

autorepro.mkD25-Apr-20251.6 KiB4020

berberis_test.mkD25-Apr-2025880 264

build_custom_images.mkD25-Apr-20253.5 KiB8021

catbox.mkD25-Apr-2025948 248

check-abi-dump-list.mkD25-Apr-20255.3 KiB12462

csuite.mkD25-Apr-2025872 247

cts.mkD25-Apr-202516 KiB334247

cts_root.mkD25-Apr-2025924 269

device-platinum-tests.mkD25-Apr-20254.4 KiB7247

device-tests.mkD25-Apr-20254.1 KiB7146

dex_preopt_check.mkD25-Apr-2025979 209

dts.mkD25-Apr-20251.1 KiB2911

find-shareduid-violation.mkD25-Apr-20251.6 KiB4020

fontchain_lint.mkD25-Apr-20251.6 KiB4423

general-tests-shared-libs.mkD25-Apr-20252.7 KiB5328

general-tests.mkD25-Apr-20254.2 KiB7247

host-unit-tests.mkD25-Apr-20253.2 KiB6736

host_init_verifier.mkD25-Apr-20253 KiB5736

mcts.mkD25-Apr-20251.5 KiB4424

meta-lic.mkD25-Apr-202522.7 KiB231161

mke2fs-dist.mkD25-Apr-20251 KiB235

module-info.mkD25-Apr-20254.2 KiB7054

mts.mkD25-Apr-20251.1 KiB3314

multitree.mkD25-Apr-2025662 172

oem_image.mkD25-Apr-20252 KiB5025

offline-sdk-docs.mkD25-Apr-20251.1 KiB276

owners.mkD25-Apr-20251.2 KiB3615

performance-tests.mkD25-Apr-20253.1 KiB5732

platform_availability_check.mkD25-Apr-20252.4 KiB6230

prebuilt_tradefed.mkD25-Apr-2025844 237

sdk-addon.mkD25-Apr-20256.3 KiB152100

sts.mkD25-Apr-2025889 269

test_mapping.mkD25-Apr-20251.9 KiB4117

tradefed-tests-list.mkD25-Apr-20252 KiB4624

vendor_module_check.mkD25-Apr-20254.6 KiB141103

vts-core-tests.mkD25-Apr-2025940 268

with-license.mkD25-Apr-20252.4 KiB6134

wvts.mkD25-Apr-20251.2 KiB3112

README.dex_preopt_check.md

1# `dex_preopt_check`
2
3`dex_preopt_check` is a build-time check to make sure that all system server
4jars are dexpreopted. When the check fails, you will see the following error
5message:
6
7```
8FAILED:
9build/make/core/tasks/dex_preopt_check.mk:13: warning:  Missing compilation artifacts. Dexpreopting is not working for some system server jars
10Offending entries:
11```
12
13Possible causes are:
14
151.  There is an APEX/SDK mismatch. (E.g., the APEX is built from source while
16    the SDK is built from prebuilt.)
17
181.  The `systemserverclasspath_fragment` is not added as
19    `systemserverclasspath_fragments` of the corresponding `apex` module, or not
20    added as `exported_systemserverclasspath_fragments` of the corresponding
21    `prebuilt_apex`/`apex_set` module when building from prebuilt.
22
231.  The expected version of the system server java library is not preferred.
24    (E.g., the `java_import` module has `prefer: false` when building from
25    prebuilt.)
26
271.  Dexpreopting is disabled for the system server java library. This can be due
28    to various reasons including but not limited to:
29
30    - The java library has `dex_preopt: { enabled: false }` in the Android.bp
31      file.
32
33    - The java library is listed in `DEXPREOPT_DISABLED_MODULES` in a Makefile.
34
35    - The java library is missing `installable: true` in the Android.bp
36      file when building from source.
37
38    - Sanitizer is enabled.
39
401.  `PRODUCT_SYSTEM_SERVER_JARS`, `PRODUCT_APEX_SYSTEM_SERVER_JARS`,
41    `PRODUCT_STANDALONE_SYSTEM_SERVER_JARS`, or
42    `PRODUCT_APEX_STANDALONE_SYSTEM_SERVER_JARS` has an extra entry that is not
43    needed by the product.
44