platform_build/core/tasks
Bob Badour 10f5c48b23 Policy change: GPL+CE is permissive.
Bug: 210546823

Test: m cts compliance_checkshare compliancenotice_bom \
    compliancenotice_shippedlibs compliance_listshare \
    compliance_dumpgraph compliance_dumpresolutions htmlnotice \
    compliance_rtrace textnotice xmlnotice

Change-Id: I7da36972ffbb1494e33fd63db8e5ec851d47704c
2022-09-20 21:50:08 -07:00
..
tools Policy change: GPL+CE is permissive. 2022-09-20 21:50:08 -07:00
art-host-tests.mk Non-module targets. 2022-04-07 22:03:29 -07:00
build_custom_images.mk Remove PRODUCT_SUPPORTS_VERITY(_FEC) reference 2022-08-11 08:12:58 +00:00
catbox.mk Report Performance Test Metrics as JSON File 2021-08-09 09:55:04 -07:00
collect_gpl_sources.mk Introduce droidcore-unbundled target 2021-06-16 19:54:07 +00:00
csuite.mk Add App Compatibility Test Suite (C-Suite) to build 2019-10-04 17:51:16 +00:00
cts.mk Non-module targets. 2022-04-07 22:03:29 -07:00
cts_root.mk Add build task for cts_root. 2021-02-11 10:34:01 +00:00
device-tests.mk Non-module targets. 2022-04-07 22:03:29 -07:00
dex_preopt_check.mk Add a doc about dex_preopt_check. 2022-05-20 16:21:46 +01:00
find-shareduid-violation.mk Non-module targets. 2022-04-12 18:57:15 -07:00
general-tests.mk vts: split kselftests and ltp 2022-09-14 22:59:11 +00:00
host-unit-tests.mk Revert "Do not compress zip file for unit tests." 2022-05-13 19:55:25 +00:00
host_init_verifier.mk Introduce droidcore-unbundled target 2021-06-16 19:54:07 +00:00
ide.mk Remove reference to empty variable 2020-07-15 13:02:15 +01:00
module-info.mk Export the target_required property to module-info 2022-09-19 16:42:04 +08:00
mts.mk Update mts task to make mts-${MODULE} test suites 2020-11-11 14:10:45 -08:00
multitree.mk Prototype changes for multitree 2022-04-28 08:03:55 +00:00
oem_image.mk Non-module targets. 2022-04-07 22:03:29 -07:00
OWNERS Add extra owners for file core/tasks/art-host-tests.mk. 2021-07-28 10:21:56 +01:00
owners.mk Non-module targets. 2022-04-07 22:03:29 -07:00
platform_availability_check.mk Skip the platform availability check for unbundled builds. 2020-11-17 02:46:05 +00:00
README.dex_preopt_check.md Add a doc about dex_preopt_check. 2022-05-20 16:21:46 +01:00
recovery_snapshot.mk Support for recovery snapshot. 2020-12-21 08:32:44 -08:00
sdk-addon.mk emulator: enable vendor boot image 2020-05-01 20:01:40 +00:00
sts.mk
test_mapping.mk Non-module targets. 2022-04-07 22:03:29 -07:00
tradefed-tests-list.mk Non-module targets. 2022-04-07 22:03:29 -07:00
vendor_module_check.mk Add odm_dlkm partition. 2020-07-16 12:34:29 -07:00
vendor_snapshot.mk Implement fake vendor snapshot 2021-01-07 13:56:33 +09:00
vndk.mk Deprecate VNDK-Lite 2020-07-20 05:39:29 +00:00
vts-core-tests.mk vts: split kselftests and ltp 2022-09-14 22:59:11 +00:00
with-license.mk Non-module targets. 2022-04-07 22:03:29 -07:00

dex_preopt_check

dex_preopt_check is a build-time check to make sure that all system server jars are dexpreopted. When the check fails, you will see the following error message:

FAILED:
build/make/core/tasks/dex_preopt_check.mk:13: warning:  Missing compilation artifacts. Dexpreopting is not working for some system server jars
Offending entries:

Possible causes are:

  1. There is an APEX/SDK mismatch. (E.g., the APEX is built from source while the SDK is built from prebuilt.)

  2. The systemserverclasspath_fragment is not added as systemserverclasspath_fragments of the corresponding apex module, or not added as exported_systemserverclasspath_fragments of the corresponding prebuilt_apex/apex_set module when building from prebuilt.

  3. The expected version of the system server java library is not preferred. (E.g., the java_import module has prefer: false when building from prebuilt.)

  4. Dexpreopting is disabled for the system server java library. This can be due to various reasons including but not limited to:

    • The java library has dex_preopt: { enabled: false } in the Android.bp file.

    • The java library is listed in DEXPREOPT_DISABLED_MODULES in a Makefile.

    • The java library is missing installable: true in the Android.bp file when building from source.

    • Sanitizer is enabled.

  5. PRODUCT_SYSTEM_SERVER_JARS, PRODUCT_APEX_SYSTEM_SERVER_JARS, PRODUCT_STANDALONE_SYSTEM_SERVER_JARS, or PRODUCT_APEX_STANDALONE_SYSTEM_SERVER_JARS has an extra entry that is not needed by the product.