Add <uses-library> information.
Camera2 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/Camera2_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 Camera2
Change-Id: I39c1b30a59f172fb865ddde6003f9761a1889c80
1 file changed