Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
tools/ | 15-Dec-2024 | - | ||||
README.dex_preopt_check.md | D | 14-Jan-2024 | 1.6 KiB | |||
art-host-tests.mk | D | 15-Dec-2024 | 4.9 KiB | |||
art.mk | D | 15-Dec-2024 | 1,001 | |||
automotive-general-tests.mk | D | 14-Jan-2024 | 6.1 KiB | |||
automotive-sdv-tests.mk | D | 15-Dec-2024 | 3.9 KiB | |||
automotive-tests.mk | D | 14-Jan-2024 | 3.7 KiB | |||
berberis_test.mk | D | 15-Dec-2024 | 880 | |||
build_custom_images.mk | D | 14-Jan-2024 | 3.5 KiB | |||
catbox.mk | D | 14-Jan-2024 | 948 | |||
csuite.mk | D | 14-Jan-2024 | 872 | |||
cts.mk | D | 15-Dec-2024 | 11.7 KiB | |||
cts_root.mk | D | 14-Jan-2024 | 924 | |||
device-platinum-tests.mk | D | 15-Dec-2024 | 4.4 KiB | |||
device-tests.mk | D | 15-Dec-2024 | 3.7 KiB | |||
dex_preopt_check.mk | D | 14-Jan-2024 | 979 | |||
find-shareduid-violation.mk | D | 14-Jan-2024 | 1.6 KiB | |||
fontchain_lint.mk | D | 15-Dec-2024 | 1.6 KiB | |||
general-tests-shared-libs.mk | D | 15-Dec-2024 | 2.7 KiB | |||
general-tests.mk | D | 15-Dec-2024 | 4.8 KiB | |||
host-unit-tests.mk | D | 14-Jan-2024 | 2.6 KiB | |||
host_init_verifier.mk | D | 14-Jan-2024 | 3 KiB | |||
mcts.mk | D | 15-Dec-2024 | 1.1 KiB | |||
meta-lic.mk | D | 15-Dec-2024 | 18.1 KiB | |||
module-info.mk | D | 15-Dec-2024 | 4.2 KiB | |||
mts.mk | D | 14-Jan-2024 | 1.1 KiB | |||
multitree.mk | D | 14-Jan-2024 | 662 | |||
oem_image.mk | D | 14-Jan-2024 | 2 KiB | |||
offline-sdk-docs.mk | D | 15-Dec-2024 | 1.1 KiB | |||
owners.mk | D | 14-Jan-2024 | 1.2 KiB | |||
performance-tests.mk | D | 15-Dec-2024 | 3.1 KiB | |||
platform_availability_check.mk | D | 14-Jan-2024 | 2.4 KiB | |||
recovery_snapshot.mk | D | 14-Jan-2024 | 1.3 KiB | |||
sdk-addon.mk | D | 15-Dec-2024 | 6.3 KiB | |||
sts-lite.mk | D | 14-Jan-2024 | 1.6 KiB | |||
sts.mk | D | 14-Jan-2024 | 889 | |||
test_mapping.mk | D | 14-Jan-2024 | 1.9 KiB | |||
tradefed-tests-list.mk | D | 14-Jan-2024 | 1.8 KiB | |||
vendor_module_check.mk | D | 14-Jan-2024 | 4.6 KiB | |||
vendor_snapshot.mk | D | 14-Jan-2024 | 1.6 KiB | |||
vts-core-tests.mk | D | 15-Dec-2024 | 1.2 KiB | |||
with-license.mk | D | 15-Dec-2024 | 2.4 KiB | |||
wvts.mk | D | 14-Jan-2024 | 1.2 KiB |
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