platform_build_soong/apex
Mohammad Samiul Islam 3cd005d347 Enable soong build tool to handle APEX compression
1. Soong can now detect PRODUCT_COMPRESSED_APEX flag
     We don't want APEX to be compressed on all devices. Only those that
     have explicitely set PRODUCT_COMPRESSED_APEX flag.
2. Handle "compressible" field in soong build rule
     On devices that supports APEX compression, all APEX will be
     compressed by default. If any apex does not want to be compressed,
     they will need to state that by setting "compressible" field to
     false
3. Can use apex_compression_tool to compress APEX
     Note we compress the APEX after it has been signed. That way, when
     we decompress we will get a signed APEX.
4. Place the compressed APEX in system with .capex extension
     This makes it easy to identify. We still preserve the original
     extension so that when we decompress, we can just rename by cuttif
     off the .capex extension.

Note: with this change, we can create a system image with compressed
APEX, but we cannot boot with it since platform doesn't know how to
handle .capex files. Platform support will be added on follow up CLs.

Bug: 172911362
Test: OVERRIDE_PRODUCT_COMPRESSED_APEX=true m (apex_test.go)
Test: observed $OUT/system/apex has .capex files
Change-Id: I20ac4c4ceb521924c751a6017f979b2d808fdded
2020-12-08 13:06:25 +00:00
..
allowed_deps.txt Update apex/allowed_deps.txt 2020-11-05 21:46:26 +00:00
Android.bp rust modules can be included in apex 2020-11-30 15:40:48 +00:00
androidmk.go Enable soong build tool to handle APEX compression 2020-12-08 13:06:25 +00:00
apex.go Enable soong build tool to handle APEX compression 2020-12-08 13:06:25 +00:00
apex_singleton.go Add PHONY for apex-allowed-deps check. 2020-11-04 20:50:03 +00:00
apex_test.go Enable soong build tool to handle APEX compression 2020-12-08 13:06:25 +00:00
builder.go Enable soong build tool to handle APEX compression 2020-12-08 13:06:25 +00:00
key.go Documenting apex/builer.go 2020-11-25 09:53:46 +09:00
OWNERS Track allowed transitive deps in any updatable module. 2020-09-30 21:17:42 +00:00
prebuilt.go Support asan/hwasan versions of prebuilts. 2020-10-13 03:37:32 +00:00
TEST_MAPPING Add TEST_MAPPING for build/soong/apex 2019-08-07 17:33:24 +09:00
vndk.go Rename ART release APEX to com.android.art. 2020-10-21 15:41:02 +01:00
vndk_test.go Define product_available property 2020-11-08 23:53:22 +00:00