Add <uses-library> information.
Dialer app uses non-optional "org.apache.http.legacy" library. It is
necessary to add this information to LOCAL_USES_LIBRARIES to pass
manifest_check and generate correct class loader context for dexpreopt.
Bug: 132357300
Test: m out/target/common/obj/APPS/Dialer_intermediates/enforce_uses_libraries.status
Test: lunch aosp_cf_x86_64_phone-userdebug && m && launch_cvd \
adb wait-for-device && adb root && adb logcat \
| grep -E 'ClassLoaderContext [a-z ]+ mismatch'
# no mismatch error messages related to Dialer
Change-Id: I112ed8d131f8504635c9c79540e28b46a2958639
diff --git a/Android.mk b/Android.mk
index a9fe371..c387238 100644
--- a/Android.mk
+++ b/Android.mk
@@ -176,6 +176,7 @@
LOCAL_PRODUCT_MODULE := true
LOCAL_USE_AAPT2 := true
LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.dialer
+LOCAL_USES_LIBRARIES := org.apache.http.legacy
include $(BUILD_PACKAGE)