platform_build_soong/dexpreopt
Ulya Trafimovich 0aba252e15 Reimplement verify_uses_libraries.sh in manifest_check.py.
Previously there were two different scripts that did similar things:
1) build/soong/scripts/manifest_check.py
2) build/make/core/verify_uses_libraries.sh

Both scripts extracted <uses-library> tags and `targetSdkVersion` from
the manifests of Java modules, but 1) worked for XML manifests, and 2)
worked for APKs. This CL reimplements the functionality from 2) in 1),
so that one script can handle both XML manifests and APKs.

Bug: 132357300

Test: lunch cf_x86_64_phone-userdebug && m && launch_cvd \
      adb wait-for-device && adb root && adb logcat \
      | grep -E 'ClassLoaderContext [a-z ]+ mismatch'
      # empty grep output, no errors

Change-Id: Id1b66e4f3f30f307dba70cb111c7571762cb546a
2021-03-15 13:50:49 +00:00
..
dexpreopt_gen Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
Android.bp Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
OWNERS Add an owners file for dexpreopt files. 2018-12-18 20:28:06 +00:00
class_loader_context.go Preserve <uses-library> order in dexpreopt.config files. 2021-02-11 16:58:51 +00:00
class_loader_context_test.go Remove obsolete class loader context API and update unit tests. 2021-01-05 15:41:55 +00:00
config.go Use compiler filter "verify" for dexpreopt w/o class loader context. 2021-03-02 12:32:23 +00:00
dexpreopt.go Reimplement verify_uses_libraries.sh in manifest_check.py. 2021-03-15 13:50:49 +00:00
dexpreopt_test.go Add non-fatal mode for verify_uses_libraries check. 2021-02-22 15:41:03 +00:00
testing.go Support test fixtures in dexpreopt package 2021-03-10 10:13:09 +00:00