Add <uses-library> information.

LOCAL_USES_LIBRARIES / LOCAL_OPTIONAL_USES_LIBRARIES should be added to
the app's Android.mk module and should match <uses-library> tags in the
app's manifest, so that the build knows about these libraries and
generates correct class loader context for dexpreopt.

Bug: 132357300
Test: m out/target/common/obj/APPS/Development_intermediates/enforce_uses_libraries.status
Change-Id: Ie5e36dd60040a1e7653acdf882e006de513f5367
This commit is contained in:
Ulya Trafimovich
2021-05-07 16:13:45 +01:00
parent 1d6a084cc9
commit 247d38afd5

View File

@@ -5,6 +5,9 @@ LOCAL_MODULE_TAGS := optional
LOCAL_JAVA_LIBRARIES := android.test.runner.stubs telephony-common org.apache.http.legacy LOCAL_JAVA_LIBRARIES := android.test.runner.stubs telephony-common org.apache.http.legacy
LOCAL_USES_LIBRARIES := android.test.runner
LOCAL_OPTIONAL_USES_LIBRARIES := org.apache.http.legacy android.test.base android.test.mock
LOCAL_SRC_FILES := $(call all-subdir-java-files) \ LOCAL_SRC_FILES := $(call all-subdir-java-files) \
src/com/android/development/IRemoteService.aidl \ src/com/android/development/IRemoteService.aidl \