From 247d38afd5193abaa2fd88e5d7839b44c0dc8cb1 Mon Sep 17 00:00:00 2001 From: Ulya Trafimovich Date: Fri, 7 May 2021 16:13:45 +0100 Subject: [PATCH] Add information. LOCAL_USES_LIBRARIES / LOCAL_OPTIONAL_USES_LIBRARIES should be added to the app's Android.mk module and should match 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 --- apps/Development/Android.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/Development/Android.mk b/apps/Development/Android.mk index 39498d543..3db6cc326 100644 --- a/apps/Development/Android.mk +++ b/apps/Development/Android.mk @@ -5,6 +5,9 @@ LOCAL_MODULE_TAGS := optional 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) \ src/com/android/development/IRemoteService.aidl \