platform_build_soong/apex
Ulya Trafimovich cc21bba967 Forbid generating boot image files for jars in updatable modules.
This is to guard against the potential situation when someone adds
updatable modules to the list of boot jars by mistake.

Test: aosp_walleye-userdebug builds.

Test: Manually break the checks and observe the errors:
  - move updatable module 'conscrypt' from
    PRODUCT_UPDATABLE_BOOT_JARS to ART_APEX_JARS:
      internal error: module 'conscrypt' from updatable apex 'com.android.conscrypt' is not allowed in the ART boot image

  - add updatable module 'conscrypt' to ART_APEX_JARS
    (but do not remove it from PRODUCT_UPDATABLE_BOOT_JARS):
      error: A jar in PRODUCT_UPDATABLE_BOOT_JARS must not be in PRODUCT_BOOT_JARS, but conscrypt is.

  - move updatable module 'framework-tethering' from
    PRODUCT_UPDATABLE_BOOT_JARS to PRODUCT_BOOT_JARS:
      internal error: module 'framework-tethering' from updatable apex 'com.android.tethering' is not allowed in the framework boot image

  - add non-updatable (in AOSP) module 'android.net.ipsec.ike'
    to PRODUCT_BOOT_JARS:
      internal error: failed to find a dex jar path for module 'com.android.ipsec.ike', note that some jars may be filtered out by module constraints

Bug: 147579140

Exempt-From-Owner-Approval: cherry-pick, approved in AOSP.

Change-Id: I25ca2f52530fcfa1f9823b2cfa3485db9c0d0db1
Merged-In: I25ca2f52530fcfa1f9823b2cfa3485db9c0d0db1
(cherry picked from commit b28cc3758c)
2020-04-09 14:50:21 +01:00
..
androidmk.go Add code coverage support to android_app JNI libs. 2020-03-27 13:06:12 +00:00
apex.go Apex: add NeverAllowRule for updatable 2020-04-08 05:20:11 +00:00
apex_test.go Forbid generating boot image files for jars in updatable modules. 2020-04-09 14:50:21 +01:00
builder.go track static deps when gatherint notices for apex 2020-03-18 12:45:50 +09:00
key.go Include partition tag in apexkeys.txt. 2020-04-02 17:15:47 +00:00
OWNERS Expand Jiyong's apex OWNERship 2019-01-31 18:57:00 +00:00
prebuilt.go Add compat symlinks for prebuilt_apex 2020-01-08 01:57:58 +09:00
TEST_MAPPING Add TEST_MAPPING for build/soong/apex 2019-08-07 17:33:24 +09:00
vndk.go Build VNDK APEX for VNDK-Lite 2020-03-27 23:23:32 +09:00
vndk_test.go Build VNDK APEX for VNDK-Lite 2020-03-27 23:23:32 +09:00