Use APK CtsShim prebuilts for flattened apex.

Fix: 158036322
Test: built flame-userdebug with m OVERRIDE_TARGET_FLATTEN_APEX=true, ran
atest CtsAppSecurityHostTestCases:android.appsecurity.cts.PrivilegedUpdateTests#testDisableUpdatedSystemApp
and verified that the cts shim apex is not installed

Change-Id: Icc52500cfc0a555e11d1a467b2da0649c7f5d31f
This commit is contained in:
Dario Freni 2020-06-04 09:42:42 +00:00
parent dd26bbc350
commit e23fd86f1b
2 changed files with 4 additions and 1 deletions

View File

@ -51,7 +51,6 @@ PRODUCT_PACKAGES += \
charger \ charger \
cmd \ cmd \
com.android.adbd \ com.android.adbd \
com.android.apex.cts.shim.v1 \
com.android.appsearch \ com.android.appsearch \
com.android.conscrypt \ com.android.conscrypt \
com.android.cronet \ com.android.cronet \
@ -72,6 +71,8 @@ PRODUCT_PACKAGES += \
com.android.wifi \ com.android.wifi \
ContactsProvider \ ContactsProvider \
content \ content \
CtsShimPrebuilt \
CtsShimPrivPrebuilt \
debuggerd\ debuggerd\
device_config \ device_config \
dmctl \ dmctl \

View File

@ -17,6 +17,8 @@
# Inherit this when the target needs to support updating APEXes # Inherit this when the target needs to support updating APEXes
ifneq ($(OVERRIDE_TARGET_FLATTEN_APEX),true) ifneq ($(OVERRIDE_TARGET_FLATTEN_APEX),true)
# com.android.apex.cts.shim.v1_prebuilt overrides CtsShimPrebuilt
# and CtsShimPrivPrebuilt since they are packaged inside the APEX.
PRODUCT_PACKAGES += com.android.apex.cts.shim.v1_prebuilt PRODUCT_PACKAGES += com.android.apex.cts.shim.v1_prebuilt
PRODUCT_PROPERTY_OVERRIDES := ro.apex.updatable=true PRODUCT_PROPERTY_OVERRIDES := ro.apex.updatable=true
TARGET_FLATTEN_APEX := false TARGET_FLATTEN_APEX := false