Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c89f1e10 authored by Ulya Trafimovich's avatar Ulya Trafimovich
Browse files

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
parent ff3f9e7f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -176,6 +176,7 @@ LOCAL_PRIVILEGED_MODULE := true
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)