50801e20a3
The use case for this are go apexes which are only installed in T and above, even though the base AOSP apexes might be installable on < T devices. If provided, the overridden min_sdk_version will be 1. Used as the `min_sdk_version` in the manifest file of the top-level override apex binary 2. Used to build the transitive closure of its dependency with that min_sdk_version, i.e. with a different apex variant. (2) requires some special handling. At ToT, the outgoing transition value is the base apex name (e.g. com.android.foo). Since min_sdk_version of the overridding apex can be different than the overridden apex, the base apex name is no longer sufficient. Instead, transition to the name of the overriding apex com.mycompany.android.foo. If deduping is possible, transitive deps will get deduped to `apex_<min_sdk_version>` later. Test: added a unit test Test: in internal, modified min_sdk_version of com.google.android.go.art locally, built BA and Go apexes, and used `aapt2 dump badging` to verify that BA has minSdkVersion of 31 and Go has minSdkVersion of 33 Bug: 295311875 Change-Id: Ifbe123d1517fccbc0c058042b8a6eeb3609b6787 |
||
---|---|---|
.. | ||
aconfig_test.go | ||
Android.bp | ||
androidmk.go | ||
apex.go | ||
apex_sdk_member.go | ||
apex_singleton.go | ||
apex_test.go | ||
bootclasspath_fragment_test.go | ||
builder.go | ||
classpath_element_test.go | ||
deapexer.go | ||
dexpreopt_bootjars_test.go | ||
key.go | ||
platform_bootclasspath_test.go | ||
prebuilt.go | ||
systemserver_classpath_fragment_test.go | ||
TEST_MAPPING | ||
testing.go | ||
vndk.go |