Enable <uses-library> check for WTS

<uses-library> checks are disabled on test suites by default. There were
changes merged in WTS that broke regular device build due to the lack of
this check in WTS.

This change adds such check to WTS.

Bug: 341311669

Test: m wts; verifies <uses-library> check is executed
Change-Id: Iafb10c15cf3569c500c46354f81325f0d834e0aa
This commit is contained in:
Yingzhe Li 2024-05-31 23:09:13 +00:00
parent 26bb2346de
commit 6f29441e37

View file

@ -202,6 +202,12 @@ ifneq (,$(filter $(LOCAL_MODULE_TAGS),tests))
endif
ifneq (,$(LOCAL_COMPATIBILITY_SUITE))
LOCAL_ENFORCE_USES_LIBRARIES := false
# Enable the check for WTS
ifneq ($(filter wts,$(LOCAL_COMPATIBILITY_SUITE)),)
LOCAL_ENFORCE_USES_LIBRARIES := true
endif
endif
# Disable the check if the app contains no java code.