Disable <uses-library> checks for more tests (to fix MTS builds).

Bug: 132357300
Bug: 188648210
Fixes: 188907662
Test: lunch aosp_cf_x86_64_phone-userdebug && m mts && m gts
Change-Id: Iae0ecac076b351b2da929bb455f00f03ece130bd
(cherry picked from commit d5e6a7c6200c0bafad3ea5d1f6c62f37420b86db)
This commit is contained in:
Ulya Trafimovich 2021-05-19 17:59:39 +01:00 committed by Stan Rokita
parent 7ff708ad9b
commit da5c795604
1 changed files with 3 additions and 0 deletions

View File

@ -210,6 +210,9 @@ endif
ifneq (,$(filter $(LOCAL_MODULE_TAGS),tests))
LOCAL_ENFORCE_USES_LIBRARIES := false
endif
ifneq (,$(LOCAL_COMPATIBILITY_SUITE))
LOCAL_ENFORCE_USES_LIBRARIES := false
endif
# Disable the check if the app contains no java code.
ifeq (,$(strip $(built_dex)$(my_prebuilt_src_file)$(LOCAL_SOONG_DEX_JAR)))