• Home
Name Date Size #Lines LOC

..--

tools/03-May-2024-507337

README.dex_preopt_check.mdD03-May-20241.6 KiB4431

art-host-tests.mkD03-May-20244.9 KiB7951

automotive-general-tests.mkD03-May-20246.1 KiB9061

automotive-tests.mkD03-May-20243.7 KiB6239

build_custom_images.mkD03-May-20243.5 KiB8021

catbox.mkD03-May-2024948 248

collect_gpl_sources.mkD03-May-20241.3 KiB307

csuite.mkD03-May-2024872 247

cts.mkD03-May-202411.3 KiB237170

cts_root.mkD03-May-2024924 269

device-tests.mkD03-May-20243.5 KiB6239

dex_preopt_check.mkD03-May-2024979 209

find-shareduid-violation.mkD03-May-20241.6 KiB4020

general-tests.mkD03-May-20246.5 KiB11379

host-unit-tests.mkD03-May-20242.6 KiB5425

host_init_verifier.mkD03-May-20243 KiB5736

ide.mkD03-May-20242.3 KiB6236

module-info.mkD03-May-20243 KiB5037

mts.mkD03-May-20241.1 KiB3314

multitree.mkD03-May-2024662 172

oem_image.mkD03-May-20242 KiB5025

owners.mkD03-May-20241.2 KiB3615

platform_availability_check.mkD03-May-20242.4 KiB6230

recovery_snapshot.mkD03-May-20241.3 KiB3513

sdk-addon.mkD03-May-20246.1 KiB15199

sts-lite.mkD03-May-20241.6 KiB4222

sts.mkD03-May-2024889 269

test_mapping.mkD03-May-20241.9 KiB4117

tradefed-tests-list.mkD03-May-20241.8 KiB4120

vendor_module_check.mkD03-May-20244.6 KiB141103

vendor_snapshot.mkD03-May-20241.6 KiB4722

vndk.mkD03-May-20241.4 KiB4519

vts-core-tests.mkD03-May-20241.4 KiB3816

with-license.mkD03-May-20242.3 KiB5932

wvts.mkD03-May-20241.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